增加版本管理页面,修改店铺添加地图组件使用

This commit is contained in:
2025-02-14 09:17:34 +08:00
parent 0e3759b34d
commit dda2f32ccc
36 changed files with 2486 additions and 318 deletions

View File

@@ -230,7 +230,7 @@ export interface UserInfo {
roles: string[];
/** 权限 */
perms: string[];
promissionList: string[];
/** 店铺id */
shopId: number;

52
src/api/system/version.ts Normal file
View File

@@ -0,0 +1,52 @@
import request from "@/utils/request";
import { System_BaseUrl } from "@/api/config";
const baseURL = System_BaseUrl + "/admin/version";
const VersionApi = {
getList() {
return request<any, getListResponse>({
url: `${baseURL}/list`,
method: "get",
});
},
delete(id: string) {
return request<any>({
url: `${baseURL}/id`,
method: "delete",
});
},
};
export default VersionApi;
export interface getListResponse {
/**
* 版本 id
*/
id?: string;
/**
* 是否强制升级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;
}