eps.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. export type UserAddressEntity = {
  2. /**
  3. * ID
  4. */
  5. id?: number;
  6. /**
  7. * 用户ID
  8. */
  9. userId?: number;
  10. /**
  11. * 联系人
  12. */
  13. contact?: string;
  14. /**
  15. * 手机号
  16. */
  17. phone?: string;
  18. /**
  19. * 省
  20. */
  21. province?: string;
  22. /**
  23. * 市
  24. */
  25. city?: string;
  26. /**
  27. * 区
  28. */
  29. district?: string;
  30. /**
  31. * 地址
  32. */
  33. address?: string;
  34. /**
  35. * 是否默认
  36. */
  37. isDefault?: boolean;
  38. /**
  39. * 创建时间
  40. */
  41. createTime?: string;
  42. /**
  43. * 更新时间
  44. */
  45. updateTime?: string;
  46. /**
  47. * 任意键值
  48. */
  49. };
  50. export type UserInfoEntity = {
  51. /**
  52. * ID
  53. */
  54. id?: number;
  55. /**
  56. * 登录唯一ID
  57. */
  58. unionid?: string;
  59. /**
  60. * 头像
  61. */
  62. avatarUrl?: string;
  63. /**
  64. * 昵称
  65. */
  66. nickName?: string;
  67. /**
  68. * 手机号
  69. */
  70. phone?: string;
  71. /**
  72. * 性别
  73. */
  74. gender?: number;
  75. /**
  76. * 状态
  77. */
  78. status?: number;
  79. /**
  80. * 登录方式
  81. */
  82. loginType?: number;
  83. /**
  84. * 密码
  85. */
  86. password?: string;
  87. /**
  88. * 介绍
  89. */
  90. description?: string;
  91. /**
  92. * 生日
  93. */
  94. birthday?: string;
  95. /**
  96. * 省
  97. */
  98. province?: string;
  99. /**
  100. * 市
  101. */
  102. city?: string;
  103. /**
  104. * 区
  105. */
  106. district?: string;
  107. /**
  108. * 创建时间
  109. */
  110. createTime?: string;
  111. /**
  112. * 更新时间
  113. */
  114. updateTime?: string;
  115. /**
  116. * 任意键值
  117. */
  118. };
  119. export type json = any;
  120. export type PagePagination = {
  121. size: number;
  122. page: number;
  123. total: number;
  124. };
  125. export interface PageResponse<T> {
  126. pagination: PagePagination;
  127. list: T[];
  128. }
  129. export type UserAddressPageResponse = {
  130. pagination: PagePagination;
  131. list: UserAddressEntity[];
  132. };
  133. export type BaseComm = {
  134. /**
  135. * 文件上传模式
  136. */
  137. uploadMode(data?: any): Promise<any>;
  138. /**
  139. * 文件上传
  140. */
  141. upload(data?: any): Promise<any>;
  142. /**
  143. * 参数配置
  144. */
  145. param(data?: any): Promise<any>;
  146. /**
  147. * 实体信息与路径
  148. */
  149. eps(data?: any): Promise<any>;
  150. };
  151. export type DictInfo = {
  152. /**
  153. * 获得所有字典类型
  154. */
  155. types(data?: any): Promise<any>;
  156. /**
  157. * 获得字典数据
  158. */
  159. data(data?: any): Promise<any>;
  160. };
  161. export type UserAddress = {
  162. /**
  163. * 默认地址
  164. */
  165. default(data?: any): Promise<any>;
  166. /**
  167. * 删除
  168. */
  169. delete(data?: any): Promise<any>;
  170. /**
  171. * 修改
  172. */
  173. update(data?: any): Promise<any>;
  174. /**
  175. * 单个信息
  176. */
  177. info(data?: any): Promise<UserAddressEntity>;
  178. /**
  179. * 列表查询
  180. */
  181. list(data?: any): Promise<UserAddressEntity[]>;
  182. /**
  183. * 分页查询
  184. */
  185. page(data?: any): Promise<UserAddressPageResponse>;
  186. /**
  187. * 新增
  188. */
  189. add(data?: any): Promise<any>;
  190. };
  191. export type UserComm = {
  192. /**
  193. * 获取微信公众号配置
  194. */
  195. wxMpConfig(data?: any): Promise<any>;
  196. };
  197. export type UserInfo = {
  198. /**
  199. * 更新用户密码
  200. */
  201. updatePassword(data?: any): Promise<any>;
  202. /**
  203. * 更新用户信息
  204. */
  205. updatePerson(data?: any): Promise<any>;
  206. /**
  207. * 绑定手机号
  208. */
  209. bindPhone(data?: any): Promise<any>;
  210. /**
  211. * 绑定小程序手机号
  212. */
  213. miniPhone(data?: any): Promise<any>;
  214. /**
  215. * 获取用户信息
  216. */
  217. person(data?: any): Promise<any>;
  218. /**
  219. * 注销
  220. */
  221. logoff(data?: any): Promise<any>;
  222. };
  223. export type UserLogin = {
  224. /**
  225. * 刷新token
  226. */
  227. refreshToken(data?: any): Promise<any>;
  228. /**
  229. * 绑定小程序手机号
  230. */
  231. miniPhone(data?: any): Promise<any>;
  232. /**
  233. * 一键手机号登录
  234. */
  235. uniPhone(data?: any): Promise<any>;
  236. /**
  237. * 密码登录
  238. */
  239. password(data?: any): Promise<any>;
  240. /**
  241. * 图片验证码
  242. */
  243. captcha(data?: any): Promise<any>;
  244. /**
  245. * 验证码
  246. */
  247. smsCode(data?: any): Promise<any>;
  248. /**
  249. * 微信APP授权登录
  250. */
  251. wxApp(data?: any): Promise<any>;
  252. /**
  253. * 手机号登录
  254. */
  255. phone(data?: any): Promise<any>;
  256. /**
  257. * 小程序登录
  258. */
  259. mini(data?: any): Promise<any>;
  260. /**
  261. * 公众号登录
  262. */
  263. mp(data?: any): Promise<any>;
  264. };
  265. export type DictKey = "brand" | "occupation" | "refund" | "ccc";
  266. export type UserInterface = {
  267. address: UserAddress;
  268. comm: UserComm;
  269. info: UserInfo;
  270. login: UserLogin;
  271. };
  272. export type DictInterface = { info: DictInfo };
  273. export type BaseInterface = { comm: BaseComm };
  274. export type Service = { user: UserInterface; dict: DictInterface; base: BaseInterface };