Commit 73318583 by hanjixin

模板新接口

parent d49c02e8
import user from './users' import user from './users'
import common from './common' import common from './common'
import tempalte from './template'
import files from './files' import files from './files'
export default { export default {
user, user,
common, common,
files files,
tempalte
} }
import { ApiClient } from './client'
export interface TeplateList {}
class TeplateApi extends ApiClient {
/**
*
* @param typeId
* @param tagId
* 获取查看当前筛选条件下横屏、竖屏、异形屏的个数
*/
getTypeListCount(typeId: string = '', tagId: string = '') {
return this.request({
method: 'post',
url: `/template/get/show/count`,
data: {
typeId,
tagId
}
})
}
getHomeList(page: number = 1, limit: number = 20) {
return this.request({
method: 'post',
url: `/template/get/type/template/list?p=${page}&c=${limit}`,
data: {}
})
}
getTempalteList(page: number = 1, limit: number = 20) {
return this.request({
method: 'post',
url: `/template/get/template/list?p=${page}&c=${limit}`,
data: {
typeId: '',
tagId: '',
templateShow: ''
}
})
}
getTagList(typeId: string = '') {
return this.request({
method: 'GET',
url: `/template/get/tag/list/${typeId}`
})
}
getTypeTagList(page: number = 1, limit: number = 20) {
return this.request({
method: 'GET',
url: `/template/get/type/tag/list?p=${page}&c=${limit}`
})
}
}
export default new TeplateApi()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment