mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-13 04:33:42 +08:00
feat(ui): 函数管理
This commit is contained in:
41
gpt-vue/projects/vue-admin/src/views/Functions/api.ts
Normal file
41
gpt-vue/projects/vue-admin/src/views/Functions/api.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import http from "@/http/config";
|
||||
|
||||
export const getList = (params) => {
|
||||
return http({
|
||||
url: "/api/admin/function/list",
|
||||
method: "get",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const save = (data) => {
|
||||
return http({
|
||||
url: "/api/admin/function/save",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const remove = (params) => {
|
||||
return http({
|
||||
url: "/api/admin/function/remove",
|
||||
method: "get",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const setStatus = (data) => {
|
||||
return http({
|
||||
url: "/api/admin/function/set",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export const token = (data) => {
|
||||
return http({
|
||||
url: "/api/admin/function/token",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user