Files
2026-08-11 09:39:41 +08:00

34 lines
849 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 模板名称 APIuniapp
* 粘贴后路径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)
}