mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-29 03:17:11 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
68
web/src/api/test/index.ts
Normal file
68
web/src/api/test/index.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
import { http, jumpExport } from '@/utils/http/axios';
|
||||
|
||||
// 列表
|
||||
export function List(params) {
|
||||
return http.request({
|
||||
url: '/test/list',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除/批量删除
|
||||
export function Delete(params) {
|
||||
return http.request({
|
||||
url: '/test/delete',
|
||||
method: 'POST',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 新建/编辑
|
||||
export function Edit(params) {
|
||||
return http.request({
|
||||
url: '/test/edit',
|
||||
method: 'POST',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改状态
|
||||
export function Status(params) {
|
||||
return http.request({
|
||||
url: '/test/status',
|
||||
method: 'POST',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 操作开关
|
||||
export function Switch(params) {
|
||||
return http.request({
|
||||
url: '/test/switch',
|
||||
method: 'POST',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function View(params) {
|
||||
return http.request({
|
||||
url: '/test/view',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取最大排序
|
||||
export function MaxSort() {
|
||||
return http.request({
|
||||
url: '/test/maxSort',
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
// 导出
|
||||
export function Export(params) {
|
||||
jumpExport('/test/export', params);
|
||||
}
|
Reference in New Issue
Block a user