34 lines
849 B
TypeScript
34 lines
849 B
TypeScript
/**
|
||
* 模板名称 API(uniapp)
|
||
* 粘贴后路径:pages-sub/my-gen/dashCase/api/index.ts
|
||
* 必须兼容微信小程序 + App + H5
|
||
*/
|
||
import { get, post } from '@/utils/request'
|
||
|
||
const prefix = 'dashCase/'
|
||
|
||
/** 分页列表 */
|
||
export function getupperCamelCaseList(params: Record<string, any> = {}) {
|
||
return get<any>(`${prefix}list`, params)
|
||
}
|
||
|
||
/** 详情 */
|
||
export function getupperCamelCaseInfo(id: number) {
|
||
return get<any>(`${prefix}detail`, { id })
|
||
}
|
||
|
||
/** 新增 */
|
||
export function createupperCamelCase(data: Record<string, any>) {
|
||
return post<any>(`${prefix}create`, data)
|
||
}
|
||
|
||
/** 更新 */
|
||
export function updateupperCamelCase(data: Record<string, any>) {
|
||
return post<any>(`${prefix}update`, data)
|
||
}
|
||
|
||
/** 删除 */
|
||
export function deleteupperCamelCase(data: Record<string, any>) {
|
||
return post<any>(`${prefix}delete`, data)
|
||
}
|