refactor: 项目简化

Former-commit-id: 73a4a6c9c41e013928e6205dd7c078d0e955f487
This commit is contained in:
horizons
2022-09-13 07:44:55 +08:00
parent 90c6059f3f
commit 81d7880ebc
64 changed files with 204 additions and 5279 deletions

View File

@@ -1,4 +1,4 @@
import { PageQueryParam, PageResult } from '../base';
import { PageQueryParam, PageResult } from './base';
/**
*

View File

@@ -1,56 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 订单查询参数类型声明
*/
export interface OrderQueryParam extends PageQueryParam {
orderSn: string | undefined;
status: number | undefined;
}
/**
* 订单分页列表项声明
*/
export interface Order {
id: string;
orderSn: string;
totalAmount: string;
payAmount: string;
payType: number;
status: number;
totalQuantity: number;
createTime: string;
memberId: string;
sourceType: number;
orderItems: OrderItem[];
}
export interface OrderItem {
id: string;
orderId: string;
skuId: string;
skuName: string;
picUrl: string;
price: string;
count: number;
totalAmount: number;
}
/**
* 订单分页项类型声明
*/
export type OrderPageResult = PageResult<Order[]>;
/**
* 订单表单类型声明
*/
export interface OrderDetail {
id: number | undefined;
title: string;
picUrl: string;
beginTime: string;
endTime: string;
status: number;
sort: number;
url: string;
remark: string;
}

View File

@@ -1,4 +1,4 @@
import { PageQueryParam, PageResult } from '../base';
import { PageQueryParam, PageResult } from './base';
/**
*

View File

@@ -1,33 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 品牌查询参数类型声明
*/
export interface BrandQueryParam extends PageQueryParam {
name?: string;
}
/**
* 品牌分页列表项声明
*/
export interface BrandItem {
id: string;
name: string;
logoUrl: string;
sort: number;
}
/**
* 品牌分页项类型声明
*/
export type BrandPageResult = PageResult<BrandItem[]>;
/**
* 品牌表单类型声明
*/
export interface BrandFormData {
id: number | undefined;
name: string;
logoUrl: string;
sort: number;
}

View File

@@ -1,70 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 商品查询参数类型声明
*/
export interface GoodsQueryParam extends PageQueryParam {
name?: stirng;
categoryId?: number;
}
/**
* 商品列表项类型声明
*/
export interface GoodsItem {
id: string;
name: string;
categoryId?: any;
brandId?: any;
originPrice: string;
price: string;
sales: number;
picUrl?: any;
album?: any;
unit?: any;
description: string;
detail: string;
status?: any;
categoryName: string;
brandName: string;
skuList: SkuItem[];
}
/**
* 商品规格项类型声明
*/
export interface SkuItem {
id: string;
skuSn?: any;
name: string;
spuId?: any;
specIds: string;
price: string;
stockNum: number;
lockedStockNum?: any;
picUrl?: any;
}
/**
* 商品分页项类型声明
*/
export type GoodsPageResult = PageResult<GoodsItem[]>;
/**
* 商品表单数据类型声明
*/
export interface GoodsDetail {
id?: string;
name?: string;
categoryId?: string;
brandId?: string;
originPrice?: number;
price?: number;
picUrl?: string;
album: string[];
description?: string;
detail?: string;
attrList: any[];
specList: any[];
skuList: any[];
}

View File

@@ -1,5 +1,4 @@
import { StringMap } from 'i18next';
import { PageQueryParam, PageResult } from '../base';
import { PageQueryParam, PageResult } from './base';
/**
*

View File

@@ -1,38 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 广告查询参数类型
*/
export interface AdvertQueryParam extends PageQueryParam {
keywords: string;
}
/**
* 广告分页列表项
*/
export interface AdvertItem {
id: string;
name: string;
logoUrl: string;
sort: number;
}
/**
* 广告分页项类型
*/
export type AdvertPageResult = PageResult<AdvertItem[]>;
/**
* 广告表单类型
*/
export interface AdvertFormData {
id?: number;
title: string;
picUrl: string;
beginTime: string;
endTime: string;
status: number;
sort: number;
url: string;
remark: string;
}

View File

@@ -1,113 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 优惠券查询参数类型
*/
export interface CouponQueryParam extends PageQueryParam {
status?: number;
keywords?: string;
}
/**
* 优惠券分页列表项
*/
export interface CouponItem {
id: string;
name: string;
code: string;
platformLabel: string;
typeLabel: string;
faceValueLabel: string;
validityPeriodLabel: string;
}
/**
*优惠券分页
*/
export type CouponPageResult = PageResult<CouponItem[]>;
/**
* 优惠券表单类型
*/
export interface CouponFormData {
/**
* ID
*/
id?: number;
/**
* 优惠券名称
*/
name: string;
/**
* 优惠券码
*/
code: string;
/**
* 使用平台(0:全平台;1:移动端;2:PC;)
*/
platform: number;
/**
* 优惠券类型(1:满减券;2:直减券;3:折扣券)
*/
type: number;
/**
* 优惠券面值类型
*/
faceValueType: number;
/**
* 优惠券面值
*/
faceValue: number;
/**
* 优惠券折扣
*/
discount: number;
/**
* 发行量
*/
circulation: number;
/**
* 使用门槛(0:无门槛)
*/
minPoint: number;
/**
* 每人限领张数(-1:无限制)
*/
perLimit: number;
/**
* 有效期类型(1:日期范围;2:固定天数)
*/
validityPeriodType: number;
/**
* 自领取之日起有效天数
*/
validityDays: number;
/**
* 有效期起始时间
*/
validityBeginTime: string;
/**
* 有效期截止时间
*/
validityEndTime: string;
/**
* 应用范围(0:全场通用;1:指定商品分类;2:指定商品)
*/
applicationScope: number;
/**
* 使用类型:指定商品分类
*/
spuCategoryIds: number[];
/**
* 使用类型:指定商品
*/
spuIds: number[];
/**
* 使用说明
*/
remark: string;
}

View File

@@ -1,46 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 客户端查询参数类型
*/
export interface ClientQueryParam extends PageQueryParam {
keywords?: string;
}
/**
* 客户端分页列表项
*/
export interface ClientItem {
clientId: string;
clientSecret: string;
resourceIds: string;
scope: string;
authorizedGrantTypes: string;
webServerRedirectUri?: any;
authorities?: any;
accessTokenValidity: number;
refreshTokenValidity: number;
additionalInformation?: any;
autoapprove: string;
}
/**
* 客户端分页项类型
*/
export type ClientPageResult = PageResult<ClientItem[]>;
/**
* 客户端表单类型
*/
export interface ClientFormData {
authorizedGrantTypes: string;
clientId: string;
clientSecret: string;
accessTokenValidity: string;
refreshTokenValidity: string;
webServerRedirectUri: string;
authorities: string;
additionalInformation: string;
autoapprove: string;
scope: string;
}

View File

@@ -1,64 +0,0 @@
import { PageQueryParam, PageResult } from '../base';
/**
* 会员查询参数类型声明
*/
export interface MemberQueryParam extends PageQueryParam {
nickName?: string;
}
/**
* 会员分页列表项声明
*/
export interface MemberItem {
id: string;
gender: number;
nickName: string;
mobile: string;
birthday?: any;
avatarUrl: string;
openid: string;
sessionKey?: any;
city: string;
country: string;
language: string;
province: string;
status: number;
balance: string;
deleted: number;
point: number;
addressList: AddressItem[];
}
export interface AddressItem {
id: string;
memberId: string;
consigneeName: string;
consigneeMobile: string;
province: string;
city: string;
area: string;
detailAddress: string;
zipCode?: any;
defaulted: number;
}
/**
* 会员分页项类型声明
*/
export type MemberPageResult = PageResult<MemberItem[]>;
/**
* 会员表单类型声明
*/
export interface MemberFormData {
id: number | undefined;
title: string;
picUrl: string;
beginTime: string;
endTime: string;
status: number;
sort: number;
url: string;
remark: string;
}

View File

@@ -1,4 +1,4 @@
import { PageQueryParam, PageResult } from '../base';
import { PageQueryParam, PageResult } from './base';
/**
*