修改crud代码,增加textarea类型支持。修改版本管理展示

This commit is contained in:
2025-02-14 13:56:17 +08:00
parent 12c5677a84
commit 3cd59b4cd7
11 changed files with 257 additions and 336 deletions

View File

@@ -4,14 +4,28 @@ const baseURL = System_BaseUrl + "/admin/version";
const VersionApi = {
getList() {
return request<any, getListResponse>({
return request<any>({
url: `${baseURL}/list`,
method: "get",
});
},
add(data: addRequest) {
return request<any>({
url: `${baseURL}`,
method: "post",
data,
});
},
edit(data: editRequest) {
return request<any>({
url: `${baseURL}`,
method: "put",
data,
});
},
delete(id: string) {
return request<any>({
url: `${baseURL}/id`,
url: `${baseURL}/` + id,
method: "delete",
});
},
@@ -19,7 +33,7 @@ const VersionApi = {
export default VersionApi;
export interface getListResponse {
export interface versionForm {
/**
* 版本 id
*/
@@ -50,3 +64,62 @@ export interface getListResponse {
version?: string;
[property: string]: any;
}
export interface addRequest {
/**
* 是否强制更新0不强制更新1强制更新
*/
isForce: number;
/**
* 更新内容
*/
message: string;
/**
* 渠道pc 桌面端, manager_app 管理端, phone_book 电话机点餐
*/
source: string;
/**
* 类型0 windows1 安卓2 iOS
*/
type: string;
/**
* 下载地址
*/
url: string;
/**
* 版本号
*/
version: string;
[property: string]: any;
}
export interface editRequest {
/**
* 版本idID 编号
*/
id: number;
/**
* 是否强制升级0不强制更新1强制更新
*/
isForce: number;
/**
* 更新内容
*/
message: string;
/**
* 渠道pc 桌面端, manager_app 管理端, phone_book 电话机点餐
*/
source: string;
/**
* 类型0 windows1 安卓2 iOS
*/
type: string;
/**
* 下载地址
*/
url: string;
/**
* 版本号
*/
version: string;
[property: string]: any;
}