refactor: 接口路径变更和删除依赖包
Former-commit-id: 528a17fec4091a54ae63c7cc612c7671d0ed56ae
This commit is contained in:
2
src/types/api/oms/order.d.ts
vendored
2
src/types/api/oms/order.d.ts
vendored
@@ -19,7 +19,7 @@ export interface Order {
|
||||
payType: number;
|
||||
status: number;
|
||||
totalQuantity: number;
|
||||
gmtCreate: string;
|
||||
createTime: string;
|
||||
memberId: string;
|
||||
sourceType: number;
|
||||
orderItems: OrderItem[];
|
||||
|
||||
10
src/types/api/sms/advert.d.ts
vendored
10
src/types/api/sms/advert.d.ts
vendored
@@ -1,14 +1,14 @@
|
||||
import { PageQueryParam, PageResult } from '../base';
|
||||
|
||||
/**
|
||||
* 广告查询参数类型声明
|
||||
* 广告查询参数类型
|
||||
*/
|
||||
export interface AdvertQueryParam extends PageQueryParam {
|
||||
title?: string;
|
||||
keywords: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 广告分页列表项声明
|
||||
* 广告分页列表项
|
||||
*/
|
||||
export interface AdvertItem {
|
||||
id: string;
|
||||
@@ -18,12 +18,12 @@ export interface AdvertItem {
|
||||
}
|
||||
|
||||
/**
|
||||
* 广告分页项类型声明
|
||||
* 广告分页项类型
|
||||
*/
|
||||
export type AdvertPageResult = PageResult<AdvertItem[]>;
|
||||
|
||||
/**
|
||||
* 广告表单类型声明
|
||||
* 广告表单类型
|
||||
*/
|
||||
export interface AdvertFormData {
|
||||
id?: number;
|
||||
|
||||
@@ -1,33 +1,121 @@
|
||||
import { PageQueryParam ,PageResult} from '../base';
|
||||
import { PageQueryParam, PageResult } from '../base';
|
||||
import { Option } from '@/types/common';
|
||||
|
||||
/**
|
||||
* 优惠券查询参数类型
|
||||
*/
|
||||
export interface CouponQueryParam extends PageQueryParam {
|
||||
status?: number;
|
||||
keywords?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 优惠券分页列表项
|
||||
*/
|
||||
export interface CouponItem {
|
||||
export interface CouponItem {
|
||||
id: string;
|
||||
name: string;
|
||||
type: string;
|
||||
code: string;
|
||||
platformLabel: string;
|
||||
typeLabel: string;
|
||||
faceValueLabel: string;
|
||||
validityPeriodLabel: string;
|
||||
}
|
||||
|
||||
/**
|
||||
*优惠券分页项类型
|
||||
*优惠券分页
|
||||
*/
|
||||
export type CouponPageResult = PageResult<CouponItem[]>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 广告表单类型声明
|
||||
* 优惠券表单类型
|
||||
*/
|
||||
export interface CouponFormData {
|
||||
export interface CouponFormData {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 优惠券名称
|
||||
*/
|
||||
name: string;
|
||||
type: string;
|
||||
/**
|
||||
* 优惠券码
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* 使用平台(0:全平台;1:移动端;2:PC;)
|
||||
*/
|
||||
platform: number;
|
||||
/**
|
||||
* 优惠券类型(1:满减券;2:直减券;3:折扣券)
|
||||
*/
|
||||
type: number;
|
||||
/**
|
||||
* 优惠券面值
|
||||
*/
|
||||
faceValue: number;
|
||||
/**
|
||||
* 优惠券折扣
|
||||
*/
|
||||
discount: number;
|
||||
/**
|
||||
* 发放数量
|
||||
*/
|
||||
issueCount: number;
|
||||
/**
|
||||
* 使用门槛(0:无门槛)
|
||||
*/
|
||||
minPoint: number;
|
||||
/**
|
||||
* 每人限领张数(-1:无限制)
|
||||
*/
|
||||
perLimit: number;
|
||||
/**
|
||||
* 有效期类型(1:自领取之日起有效天数;2:有效起止时间)
|
||||
*/
|
||||
validityPeriodType: number;
|
||||
/**
|
||||
* 自领取之日起有效天数
|
||||
*/
|
||||
validityDays: number;
|
||||
/**
|
||||
* 有效期起始时间
|
||||
*/
|
||||
validityBeginTime: string;
|
||||
/**
|
||||
* 有效期截止时间
|
||||
*/
|
||||
validityEndTime: string;
|
||||
/**
|
||||
* 使用类型(0:全场通用;1:指定商品分类;2:指定商品)
|
||||
*/
|
||||
useType: number;
|
||||
|
||||
/**
|
||||
* 使用类型:指定商品分类
|
||||
*/
|
||||
spuCategoryList: CouponSpuCategory[];
|
||||
|
||||
/**
|
||||
* 使用类型:指定商品
|
||||
*/
|
||||
spuList: CouponSpu[];
|
||||
|
||||
/**
|
||||
* 使用说明
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CouponSpuCategory {
|
||||
id: number;
|
||||
categoryId: number;
|
||||
categoryName: string;
|
||||
}
|
||||
|
||||
export interface CouponSpu {
|
||||
id: number;
|
||||
spuId: number;
|
||||
spuName: string;
|
||||
}
|
||||
|
||||
6
src/types/api/system/menu.d.ts
vendored
6
src/types/api/system/menu.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
* 菜单查询参数类型声明
|
||||
*/
|
||||
export interface MenuQueryParam {
|
||||
name?: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12,8 +12,8 @@ export interface MenuQueryParam {
|
||||
export interface MenuItem {
|
||||
id: number;
|
||||
parentId: number;
|
||||
gmtCreate: string;
|
||||
gmtModified: string;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
name: string;
|
||||
icon: string;
|
||||
component: string;
|
||||
|
||||
2
src/types/api/system/user.d.ts
vendored
2
src/types/api/system/user.d.ts
vendored
@@ -33,7 +33,7 @@ export interface UserItem {
|
||||
status: number;
|
||||
deptName: string;
|
||||
roleNames: string;
|
||||
gmtCreate: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user