@@ -11,6 +11,7 @@ export * from './error-code.data.ts' | |||||
export * from './redis.data.ts' | export * from './redis.data.ts' | ||||
export * from './api-log.data.ts' | export * from './api-log.data.ts' | ||||
export * from './oauth2.data.ts' | export * from './oauth2.data.ts' | ||||
export * from './platform.data.ts' | |||||
export interface ResponseDTO<T>{ | export interface ResponseDTO<T>{ | ||||
code: number; | code: number; | ||||
@@ -0,0 +1,82 @@ | |||||
/** | |||||
* ShopCreateReqDTO,管理后台 - 平台店铺创建 Request DTO | |||||
*/ | |||||
export interface PlatformShop { | |||||
/** | |||||
* 授权过期时间 | |||||
*/ | |||||
expiresTime?: Date; | |||||
/** | |||||
* 调用参数_动态_空值 | |||||
*/ | |||||
paramDynamicJson?: string; | |||||
/** | |||||
* 调用参数_静态_空值 | |||||
*/ | |||||
paramStaticJson?: string; | |||||
/** | |||||
* 密码(AES加密 CBC模式) | |||||
*/ | |||||
password?: string; | |||||
/** | |||||
* 平台ID | |||||
*/ | |||||
platformId: number; | |||||
/** | |||||
* 平台店铺id | |||||
*/ | |||||
platformShopId?: string; | |||||
shopConfig: PlatformShopConfig; | |||||
/** | |||||
* 店铺名称 | |||||
*/ | |||||
shopName: string; | |||||
/** | |||||
* 状态: 1:开启,2,停用 | |||||
*/ | |||||
shopStatus: number; | |||||
/** | |||||
* 授权状态,1:成功, 2:失败,0:未授权 | |||||
*/ | |||||
tokenFlag: number; | |||||
/** | |||||
* 用户账号 | |||||
*/ | |||||
userName?: string; | |||||
} | |||||
/** | |||||
* ShopConfigCreateReqDTO,管理后台 - 平台店铺配置创建 Request DTO | |||||
*/ | |||||
export interface PlatformShopConfig { | |||||
/** | |||||
* 每天最大刊登量 | |||||
*/ | |||||
dayMaxPublishNumber?: number; | |||||
/** | |||||
* ioss税号(欧盟税号) | |||||
*/ | |||||
iossNo?: string; | |||||
/** | |||||
* 语言 | |||||
*/ | |||||
language?: string; | |||||
/** | |||||
* 店铺_id | |||||
*/ | |||||
shopId: number; | |||||
/** | |||||
* vat税号 | |||||
*/ | |||||
vatNum?: string; | |||||
} | |||||
export interface PlatformShopPageReqVO extends PageParam { | |||||
shopName?: string, | |||||
shopStatus?: number, | |||||
tokenFlag?: number, | |||||
platformId?: number, | |||||
shopManagerId?: number, | |||||
shopStaffId?: number | |||||
} |
@@ -0,0 +1,26 @@ | |||||
import request from '@/request'; | |||||
import { PlatformShop, PlatformShopPageReqVO, PageData } from '@/models'; | |||||
const BASE_URL = '/admin-api/platform/shop'; | |||||
export default { | |||||
// 查询平台店铺列表 | |||||
getPlatformShopList: (params: PlatformShopPageReqVO) => { | |||||
return request.get<PageData<PlatformShop>>(`${BASE_URL}/page`, {params}); | |||||
}, | |||||
// 创建平台店铺 | |||||
createRole: (data: PlatformShop) => { | |||||
return request.post(`${BASE_URL}/create`, data); | |||||
}, | |||||
// 修改平台店铺 | |||||
updateRole: (data: PlatformShop) => { | |||||
return request.put(`${BASE_URL}/update`, data); | |||||
}, | |||||
// 删除平台店铺 | |||||
deleteRole: (id: number) => { | |||||
return request.delete(`${BASE_URL}/delete?id=${id}`); | |||||
}, | |||||
}; |