import request from '@/utils/request';
import { AxiosPromise } from 'axios';
/**
 * 查询H5自定义模版列表
 * @param query
 * @returns {*}
 */

export const h5TplList = (query?: any): AxiosPromise<any[]> => {
    return request({
        url: '/smarttrace/h5Tpl/list',
        method: 'get',
        params: query
    });
};
/**
 * 管理员H5模板审批
 * @param query
 * @returns {*}
 */
export const h5TplApprove = (query: any): AxiosPromise<any> => {
    return request({
        url: '/smarttrace/h5Tpl/approvalH5',
        method: 'post',
        data: query
    });
};
