222
schangxiang@126.com
2025-05-02 8472b30bf3ee867a226cc4345c13599d4d027a4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Base } from '@/libs/Base/Base'
const request = Base.request
 
/**
 * 添加
 * @returns
 */
export const addMyEntityName = (data: any) => {
  return request.post('/api/v1/myPluginName/myEntityName', data)
}
 
/**
 * 获取详情
 * @returns
 */
export const getMyEntityName = (id: string) => {
  return request.get(`/api/v1/myPluginName/myEntityName/${id}`)
}
 
/**
 * 更新
 * @returns
 */
export const updateMyEntityName = (id: string, data: Record<string, any>) => {
  return request.put(`/api/v1/myPluginName/myEntityName/${id}`, data)
}