| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- export type UserAddressEntity = {
- /**
- * ID
- */
- id?: number;
- /**
- * 用户ID
- */
- userId?: number;
- /**
- * 联系人
- */
- contact?: string;
- /**
- * 手机号
- */
- phone?: string;
- /**
- * 省
- */
- province?: string;
- /**
- * 市
- */
- city?: string;
- /**
- * 区
- */
- district?: string;
- /**
- * 地址
- */
- address?: string;
- /**
- * 是否默认
- */
- isDefault?: boolean;
- /**
- * 创建时间
- */
- createTime?: string;
- /**
- * 更新时间
- */
- updateTime?: string;
- /**
- * 任意键值
- */
- };
- export type UserInfoEntity = {
- /**
- * ID
- */
- id?: number;
- /**
- * 登录唯一ID
- */
- unionid?: string;
- /**
- * 头像
- */
- avatarUrl?: string;
- /**
- * 昵称
- */
- nickName?: string;
- /**
- * 手机号
- */
- phone?: string;
- /**
- * 性别
- */
- gender?: number;
- /**
- * 状态
- */
- status?: number;
- /**
- * 登录方式
- */
- loginType?: number;
- /**
- * 密码
- */
- password?: string;
- /**
- * 介绍
- */
- description?: string;
- /**
- * 生日
- */
- birthday?: string;
- /**
- * 省
- */
- province?: string;
- /**
- * 市
- */
- city?: string;
- /**
- * 区
- */
- district?: string;
- /**
- * 创建时间
- */
- createTime?: string;
- /**
- * 更新时间
- */
- updateTime?: string;
- /**
- * 任意键值
- */
- };
- export type json = any;
- export type PagePagination = {
- size: number;
- page: number;
- total: number;
- };
- export interface PageResponse<T> {
- pagination: PagePagination;
- list: T[];
- }
- export type UserAddressPageResponse = {
- pagination: PagePagination;
- list: UserAddressEntity[];
- };
- export type BaseComm = {
- /**
- * 文件上传模式
- */
- uploadMode(data?: any): Promise<any>;
- /**
- * 文件上传
- */
- upload(data?: any): Promise<any>;
- /**
- * 参数配置
- */
- param(data?: any): Promise<any>;
- /**
- * 实体信息与路径
- */
- eps(data?: any): Promise<any>;
- };
- export type DictInfo = {
- /**
- * 获得所有字典类型
- */
- types(data?: any): Promise<any>;
- /**
- * 获得字典数据
- */
- data(data?: any): Promise<any>;
- };
- export type UserAddress = {
- /**
- * 默认地址
- */
- default(data?: any): Promise<any>;
- /**
- * 删除
- */
- delete(data?: any): Promise<any>;
- /**
- * 修改
- */
- update(data?: any): Promise<any>;
- /**
- * 单个信息
- */
- info(data?: any): Promise<UserAddressEntity>;
- /**
- * 列表查询
- */
- list(data?: any): Promise<UserAddressEntity[]>;
- /**
- * 分页查询
- */
- page(data?: any): Promise<UserAddressPageResponse>;
- /**
- * 新增
- */
- add(data?: any): Promise<any>;
- };
- export type UserComm = {
- /**
- * 获取微信公众号配置
- */
- wxMpConfig(data?: any): Promise<any>;
- };
- export type UserInfo = {
- /**
- * 更新用户密码
- */
- updatePassword(data?: any): Promise<any>;
- /**
- * 更新用户信息
- */
- updatePerson(data?: any): Promise<any>;
- /**
- * 绑定手机号
- */
- bindPhone(data?: any): Promise<any>;
- /**
- * 绑定小程序手机号
- */
- miniPhone(data?: any): Promise<any>;
- /**
- * 获取用户信息
- */
- person(data?: any): Promise<any>;
- /**
- * 注销
- */
- logoff(data?: any): Promise<any>;
- };
- export type UserLogin = {
- /**
- * 刷新token
- */
- refreshToken(data?: any): Promise<any>;
- /**
- * 绑定小程序手机号
- */
- miniPhone(data?: any): Promise<any>;
- /**
- * 一键手机号登录
- */
- uniPhone(data?: any): Promise<any>;
- /**
- * 密码登录
- */
- password(data?: any): Promise<any>;
- /**
- * 图片验证码
- */
- captcha(data?: any): Promise<any>;
- /**
- * 验证码
- */
- smsCode(data?: any): Promise<any>;
- /**
- * 微信APP授权登录
- */
- wxApp(data?: any): Promise<any>;
- /**
- * 手机号登录
- */
- phone(data?: any): Promise<any>;
- /**
- * 小程序登录
- */
- mini(data?: any): Promise<any>;
- /**
- * 公众号登录
- */
- mp(data?: any): Promise<any>;
- };
- export type DictKey = "brand" | "occupation";
- export type BaseInterface = { comm: BaseComm };
- export type DictInterface = { info: DictInfo };
- export type UserInterface = {
- address: UserAddress;
- comm: UserComm;
- info: UserInfo;
- login: UserLogin;
- };
- export type Service = { base: BaseInterface; dict: DictInterface; user: UserInterface };
|