index.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. /**
  2. * API接口类型定义文件
  3. * 包含所有接口请求和响应的类型定义
  4. */
  5. // 基础响应接口:包含状态码和消息
  6. export interface Result {
  7. code: string; // 响应状态码
  8. msg: string; // 响应消息
  9. }
  10. // 带数据的响应接口:继承基础响应接口,增加data字段
  11. export interface ResultData<T = any> extends Result {
  12. data: T; // 响应数据,泛型类型
  13. }
  14. // 分页响应接口:用于列表数据的分页返回
  15. export interface ResPage<T> {
  16. list: T[]; // 数据列表
  17. pageNum: number; // 当前页码
  18. pageSize: number; // 每页条数
  19. total: number; // 总条数
  20. }
  21. // 分页请求接口:用于列表数据的分页请求
  22. export interface ReqPage {
  23. pageNum: number; // 当前页码
  24. pageSize: number; // 每页条数
  25. }
  26. // 文件上传模块接口定义
  27. export namespace Upload {
  28. // 文件上传响应接口
  29. export interface ResFileUrl {
  30. fileUrl: string; // 文件访问地址
  31. }
  32. }
  33. // 登录模块接口定义
  34. export namespace Login {
  35. // 登录请求参数接口
  36. export interface ReqLoginForm {
  37. username: string; // 用户名
  38. password: string; // 密码
  39. }
  40. // 注册请求参数接口
  41. export interface ReqRegisterForm {
  42. username: string; // 用户名
  43. password: string; // 密码
  44. }
  45. // 登录响应接口
  46. export interface ResLogin {
  47. token: string; // 登录令牌
  48. result: boolean; // 登录结果
  49. roleId: string; // 角色ID
  50. }
  51. // 注册响应接口
  52. export interface ResRegister {
  53. result: boolean; // 注册结果
  54. token?: string; // 可选的登录令牌
  55. }
  56. // 权限按钮响应接口
  57. export interface ResAuthButtons {
  58. [key: string]: string[]; // 权限按钮列表,key为页面名称,value为按钮权限数组
  59. }
  60. }
  61. // 用户管理模块接口定义
  62. export namespace User {
  63. // 用户列表请求参数接口
  64. export interface ReqUserParams extends ReqPage {
  65. id: any; // 用户ID
  66. userId: any; // 用户ID(备用)
  67. username: string; // 用户名
  68. gender: number; // 性别
  69. idCard: string; // 身份证号
  70. email: string; // 邮箱
  71. address: string; // 地址
  72. createTime: string[]; // 创建时间范围
  73. status: number; // 状态
  74. }
  75. // 用户列表响应接口
  76. export interface ResUserList {
  77. id: string; // 用户ID
  78. username: string; // 用户名
  79. realName?: string; // 真实姓名
  80. gender: number; // 性别
  81. user: { detail: { age: number } }; // 用户详细信息
  82. userPhone?: string; // 联系电话
  83. loginAccount?: string; // 登录账号
  84. loginPassword?: string; // 登录密码
  85. idCard: string; // 身份证号
  86. email: string; // 邮箱
  87. address: string; // 地址
  88. createTime: string; // 创建时间
  89. status: number; // 状态
  90. roleId?: string; // 关联律所ID
  91. roleName?: string; // 角色名称
  92. remark?: string; // 备注
  93. avatar: string; // 头像
  94. photo: any[]; // 照片列表
  95. children?: ResUserList[]; // 子级用户列表
  96. }
  97. // 用户状态响应接口
  98. export interface ResStatus {
  99. userLabel: string; // 状态标签
  100. userValue: number; // 状态值
  101. }
  102. // 用户性别响应接口
  103. export interface ResGender {
  104. genderLabel: string; // 性别标签
  105. genderValue: number; // 性别值
  106. }
  107. // 部门响应接口
  108. export interface ResDepartment {
  109. id: string; // 部门ID
  110. name: string; // 部门名称
  111. children?: ResDepartment[]; // 子部门列表
  112. }
  113. // 角色响应接口
  114. export interface ResRole {
  115. id: string; // 角色ID
  116. name: string; // 角色名称
  117. children?: ResDepartment[]; // 角色权限列表
  118. }
  119. }
  120. // 商铺用户管理模块接口定义
  121. export namespace StoreUser {
  122. // 商铺用户列表请求参数接口
  123. export interface ReqUserParams extends ReqPage {
  124. storeName: string; // 商铺名称
  125. storePhone: string; // 商铺电话
  126. storeType: string; // 商铺类型
  127. password: string; // 密码
  128. phone: number; // 联系电话
  129. createTime: string[]; // 创建时间范围
  130. status: number; // 状态
  131. addressName: string; // 地址名称
  132. adCode: string; // 行政区域编码
  133. }
  134. // 用户账号接口
  135. export interface StoreUserAccount {
  136. userAccount: string; // 用户账号
  137. }
  138. // 用户选项接口
  139. export interface UserOptions {
  140. id: number; // 用户ID
  141. name: string; // 用户名称
  142. }
  143. // 经营板块接口
  144. export interface StoreSection {
  145. sectionName: string; // 板块名称
  146. types: string[]; // 类型列表
  147. }
  148. // 字典接口
  149. export interface Dict {
  150. typeName: string; // 类型名称
  151. typeDetail: string; // 类型详情
  152. parentId: number; // 父级ID
  153. dictId: string; // 字典ID
  154. dictDetail: string; // 字典详情
  155. }
  156. // 商铺用户列表响应接口
  157. export interface ResStoreUserList {
  158. id: string; // 商铺ID
  159. storeName: string; // 商铺名称
  160. name: string; // 联系人姓名
  161. nickName: string; // 联系人姓名
  162. phone: string; // 联系电话
  163. payPassword: string; // 支付密码
  164. storePhone: string; // 商铺电话
  165. storeContact: string; // 商铺联系人
  166. storeTypeStr: string[]; // 商铺类型字符串数组
  167. storeTypeList: string[]; // 商铺类型列表
  168. password: string; // 密码
  169. isChain: number; // 是否连锁
  170. storeTel: string; // 商铺电话
  171. storeCapacity: number; // 商铺容量
  172. storeArea: string; // 商铺面积
  173. storeAddress: string; // 商铺地址
  174. storeBlurb: string; // 商铺简介
  175. storeStatus: string; // 商铺状态
  176. businessStatus: string; // 营业状态
  177. idCard: string; // 身份证号
  178. storePositionLongitude: string; // 经度
  179. storePositionLatitude: string; // 纬度
  180. storePass: string; // 商铺密码
  181. expirationTime: string; // 过期时间
  182. avatar: string; // 头像
  183. photo: any[]; // 照片列表
  184. status: string; // 状态
  185. switchStatus: boolean; // 开关状态
  186. children?: ResStoreUserList[]; // 子级商铺列表
  187. storeInfoModel: string; // 商铺信息模型
  188. businessTypes: []; // 经营类型
  189. fileList: []; // 文件列表
  190. contractImage: []; // 合同图片
  191. expiredState: string; // 过期状态
  192. latitude: string; // 纬度
  193. longitude: string; // 经度
  194. }
  195. // 状态响应接口
  196. export interface ResStatus {
  197. userLabel: string; // 状态标签
  198. userValue: number; // 状态值
  199. }
  200. // 性别响应接口
  201. export interface ResGender {
  202. genderLabel: string; // 性别标签
  203. genderValue: number; // 性别值
  204. }
  205. // 部门响应接口
  206. export interface ResDepartment {
  207. id: string; // 部门ID
  208. name: string; // 部门名称
  209. children?: ResDepartment[]; // 子部门列表
  210. }
  211. // 角色响应接口
  212. export interface ResRole {
  213. id: string; // 角色ID
  214. name: string; // 角色名称
  215. children?: ResDepartment[]; // 角色权限列表
  216. }
  217. }
  218. // 课程管理模块接口定义
  219. export declare namespace Course {
  220. // 课程请求参数接口
  221. interface ReqCourseParams {
  222. id?: number; // 课程ID
  223. className: string; // 课程名称
  224. classState: number; // 课程状态
  225. page: number | string; // 页码
  226. size: number | string; // 每页条数
  227. classBigType: number | string; // 课程大类
  228. classSmallType: number | string; // 课程小类
  229. classTeacher: number | string; // 课程教师
  230. classVideoUrl: string; // 课程视频地址
  231. }
  232. // 课程列表响应接口
  233. export interface ResCourseList {
  234. id: string; // ID
  235. couponId: string; // 优惠券ID
  236. className: string; // 课程名称
  237. classBigType: string; // 课程大类
  238. classSmallType: string; // 课程小类
  239. classTeacher: string; // 课程教师
  240. classPrice: string; // 课程价格
  241. classStatus: string; // 课程状态
  242. playCount: string; // 播放次数
  243. }
  244. }
  245. export namespace Discount {
  246. export interface ReqPlatformCouponLogParams extends ReqPage {
  247. userName: string; // 用户名
  248. phone: string; // 手机号
  249. couponId: string; // 优惠券ID
  250. }
  251. export interface ResPlatformCouponLogList {
  252. id: string; // ID
  253. userName: string; // 用户名
  254. phone: string; // 手机号
  255. }
  256. }
  257. // 申诉管理模块接口定义
  258. export namespace StoreCommentAppeal {
  259. // 申诉列表请求参数接口
  260. export interface ReqStoreCommentAppealParams extends ReqPage {
  261. storeName: string; // 商铺名称
  262. storePhone: string; // 商铺电话
  263. storeType: string; // 商铺类型
  264. password: string; // 密码
  265. phone: number; // 联系电话
  266. createTime: string[]; // 创建时间范围
  267. status: number; // 状态
  268. }
  269. // 申诉列表响应接口
  270. export interface ResStoreCommentAppealList {
  271. id: string; // 申诉ID
  272. storeName: string; // 商铺名称
  273. storePhone: string; // 商铺电话
  274. storeContact: string; // 商铺联系人
  275. storeTypeStr: string[]; // 商铺类型字符串数组
  276. storeTypeList: string[]; // 商铺类型列表
  277. appealType: string; // 申诉类型
  278. appealImage: any; // 申诉图片
  279. password: string; // 密码
  280. isChain: number; // 是否连锁
  281. photo: any[]; // 照片列表
  282. children?: ResStoreCommentAppealList[]; // 子级申诉列表
  283. }
  284. }
  285. // 套餐管理模块接口定义
  286. export namespace GroupPackage {
  287. // 套餐列表请求参数接口
  288. export interface GroupPackageParams extends ReqPage {
  289. storeName: string; // 商铺名称
  290. phone: number; // 联系电话
  291. createTime: string; // 创建时间
  292. type: string; // 类型
  293. }
  294. // 套餐列表响应接口
  295. export interface GroupPackageList {
  296. id: string; // 套餐ID
  297. storeName: string; // 商铺名称
  298. phone: string; // 联系电话
  299. createdTime: string; // 创建时间
  300. statusName: string; // 状态名称
  301. status: string; // 状态
  302. }
  303. }
  304. // 操作日志
  305. export namespace OptionLog {
  306. export interface ReqOptionLogParams extends ReqPage {
  307. optionName: string;
  308. optionType: string;
  309. startTime?: string;
  310. endTime?: string;
  311. }
  312. export interface ResOptionLogList {
  313. id: string;
  314. optionName: string;
  315. optionType: string;
  316. optionTime: string;
  317. optionIndex: number;
  318. }
  319. }
  320. // 联名卡管理
  321. export namespace CoBrandedCard {
  322. export interface CoBrandedCardParams extends ReqPage {
  323. name: string;
  324. status: string;
  325. }
  326. export interface CoBrandedCardList {
  327. id: string;
  328. name: string;
  329. totalQty: string;
  330. storeQty: string;
  331. onTime: string;
  332. status: string;
  333. }
  334. export interface ResCoBrandedCard {
  335. id: string;
  336. name: string;
  337. images: string;
  338. imageUrlList: any[];
  339. totalQty: number;
  340. originalCost: string;
  341. currentPrice: number;
  342. storeName: any[];
  343. dataform: any[];
  344. storeNameList: any[];
  345. tickNameList: any[];
  346. quanIds: string;
  347. detailsImages: any[];
  348. detailsImagesStr: String;
  349. onTime: string;
  350. endTime: string;
  351. storeQty: string;
  352. remainQty: string;
  353. children?: ResCoBrandedCard[];
  354. }
  355. }
  356. export namespace Order {
  357. // 订单列表请求参数接口
  358. export interface OrderParams extends ReqPage {
  359. storeId: string; // 店铺ID
  360. userId: string;
  361. storeName: string; // 商铺名称
  362. phone: number; // 联系电话
  363. createTime: string; // 创建时间
  364. }
  365. // 订单列表响应接口
  366. export interface OrderList {
  367. id: string; // 订单ID
  368. storeId: string; // 店铺ID
  369. userId: string;
  370. storeName: string; // 商铺名称
  371. phone: string; // 联系电话
  372. createdTime: string; // 创建时间
  373. statusName: string; // 状态名称
  374. status: string; // 状态
  375. }
  376. }
  377. //AI智能客服
  378. export namespace AiCustomerService {
  379. // 订单列表请求参数接口
  380. export interface AiCustomerServiceParams extends ReqPage {
  381. storeId: string; // 店铺ID
  382. userId: string;
  383. storeName: string; // 商铺名称
  384. phone: number; // 联系电话
  385. createTime: string; // 创建时间
  386. }
  387. // 订单列表响应接口
  388. export interface AiCustomerServiceList {
  389. id: string; // 订单ID
  390. storeId: string; // 店铺ID
  391. userId: string;
  392. storeName: string; // 商铺名称
  393. phone: string; // 联系电话
  394. createdTime: string; // 创建时间
  395. statusName: string; // 状态名称
  396. status: string; // 状态
  397. }
  398. }
  399. // 员工管理
  400. export namespace StaffConfig {
  401. export interface StaffConfigParams extends ReqPage {
  402. id: string;
  403. status: string;
  404. rejectionReason: string;
  405. }
  406. export interface StaffConfigList {
  407. id: string;
  408. storeName: string;
  409. phone: string;
  410. createdTime: string;
  411. statusName: string;
  412. status: string;
  413. name: string;
  414. rejectionReason: string;
  415. }
  416. }
  417. // 对账结算
  418. export namespace Reconciliation {
  419. export interface ReconciliationParams extends ReqPage {
  420. storeName: string;
  421. }
  422. // 列表table
  423. export interface ReconciliationList {
  424. storeId: string;
  425. storeName: string;
  426. mealOrderCount: string;
  427. mealOrderAmount: string;
  428. mealIncomeCount: string;
  429. mealIncomeMoney: string;
  430. couponOrderCount: string;
  431. couponOrderAmount: string;
  432. couponIncomeCount: string;
  433. couponIncomeMoney: string;
  434. cashoutMoney: string;
  435. accountFrozen: string;
  436. }
  437. export interface ResReconciliation {
  438. totalTransactionAmount: string;
  439. amountPaid: string;
  440. amountWrittenOff: string;
  441. transactionNumber: string;
  442. unwithdrawnAmountsFrozen: string;
  443. amountNotWrittenOff: string;
  444. billingRanking: any[];
  445. }
  446. // 详情table
  447. export interface ResDetailList {
  448. userId: string;
  449. userName: string;
  450. buyTime: string;
  451. buyCount: string;
  452. buyAmount: string;
  453. name: string;
  454. typeName: string;
  455. statusName: string;
  456. refundTime: string;
  457. usedTime: string;
  458. }
  459. export interface WithdrawalList {
  460. storeName: string;
  461. storeId: string;
  462. cashOutTypeName: string;
  463. money: string;
  464. createdTime: string;
  465. paymentDate: string;
  466. }
  467. }
  468. // 达人管理
  469. export namespace Talent {
  470. export interface ReqTalentParams extends ReqPage {
  471. name: string;
  472. }
  473. export interface ResTalentList {
  474. id: string;
  475. name: string;
  476. phone: string;
  477. createTime: string;
  478. }
  479. }
  480. // 工作台
  481. export namespace Audit {
  482. export interface ReqAuditParams extends ReqPage {
  483. status: string;
  484. }
  485. export interface ResAuditList {
  486. id: string;
  487. name: string;
  488. status: string;
  489. createTime: string;
  490. }
  491. }
  492. // 会员管理
  493. export namespace Vip {
  494. export interface ReqVipParams extends ReqPage {
  495. name: string;
  496. }
  497. export interface ResVipList {
  498. id: string;
  499. name: string;
  500. phone: string;
  501. createTime: string;
  502. }
  503. }
  504. // 过滤条件模块
  505. export namespace EssentialModuleInformation {
  506. export interface ReqInformationParams extends ReqPage {
  507. informationKey: string;
  508. informationValue: string;
  509. label: string;
  510. dataType: string;
  511. paramType: string;
  512. parentId: number;
  513. }
  514. export interface ResInformationList {
  515. informationKey: string;
  516. informationValue: string;
  517. label: string;
  518. dataType: string;
  519. paramType: string;
  520. parentId: number;
  521. children?: ResInformationList[];
  522. }
  523. }
  524. // 字典库管理
  525. export namespace StoreDictionary {
  526. export interface ReqDictionaryParams extends ReqPage {
  527. label: string;
  528. dataType: string;
  529. paramType: string;
  530. parentId: number;
  531. typeName: string;
  532. typeDetail: string;
  533. dictId: string;
  534. dictDetail: string;
  535. }
  536. export interface ResDictionaryList {
  537. informationKey: string;
  538. informationValue: string;
  539. label: string;
  540. dataType: string;
  541. paramType: string;
  542. parentId: number;
  543. typeName: string;
  544. typeDetail: string;
  545. dictId: string;
  546. dictDetail: string;
  547. children?: ResDictionaryList[];
  548. }
  549. }
  550. // 申诉管理
  551. export namespace lifeUserViolation {
  552. export interface lifeUserViolationParam extends ReqPage {
  553. id: number;
  554. reportedUserType: string;
  555. reportedUserId: string;
  556. reportingUserType: string;
  557. reportingUserId: string;
  558. reportContextType: string;
  559. violationType: string;
  560. otherReasonContent: string;
  561. reportEvidenceImg: any;
  562. processingStatus: string;
  563. processingTime: string;
  564. deleteFlag: number;
  565. createdTime: string;
  566. createdUserId: number;
  567. updatedTime: string;
  568. updatedUserId: number;
  569. commentId: string;
  570. dynamicsId: string;
  571. image: string;
  572. }
  573. }
  574. // 过滤条件模块
  575. export namespace EssentialModuleClassification {
  576. export interface ResClassificationList {
  577. id: string;
  578. tagLevel: number;
  579. label: string;
  580. parentTagId: string;
  581. children?: ResClassificationList[];
  582. }
  583. }
  584. // banner管理
  585. export declare namespace Banner {
  586. interface ReqBannerParams extends ReqPage {
  587. bannerTitle: string;
  588. page: number;
  589. size: number;
  590. }
  591. interface ResBannerList {
  592. bannerImg?: string;
  593. bannerIntroduce?: string;
  594. bannerSort?: number;
  595. bannerTitle?: string;
  596. createdTime?: string;
  597. createdUserId?: number;
  598. deleteFlag?: number;
  599. id?: number;
  600. playCount?: number;
  601. playFlag?: number;
  602. updatedTime?: string;
  603. updatedUserId?: number;
  604. }
  605. }
  606. // 二手交易管理模块接口定义
  607. export namespace SecondHandTrading {
  608. // 商品管理列表请求参数接口
  609. export interface SecondHandTradingParams extends ReqPage {
  610. storeName: string; // 商铺名称
  611. phone: number; // 联系电话
  612. createTime: string; // 创建时间
  613. type: string; // 类型
  614. }
  615. // 商品管理列表响应接口
  616. export interface SecondHandTradingList {
  617. id: string; // 套餐ID
  618. storeName: string; // 商铺名称
  619. phone: string; // 联系电话
  620. createdTime: string; // 创建时间
  621. statusName: string; // 状态名称
  622. status: string; // 状态
  623. }
  624. // 交易管理列表请求参数接口
  625. export interface SecondHandTradingTransactionParams extends ReqPage {
  626. tradeNo: string; // 订单编号
  627. goodsId: number; // 商品ID
  628. tradeStatus: string; // 交易状态
  629. }
  630. // 交易管理列表响应接口
  631. export interface SecondHandTradingTransactionList {
  632. id: string; // 套餐ID
  633. tradeNo: string; // 订单编号
  634. goodsId: string; // 商品ID
  635. createdTime: string; // 商品名称
  636. statusName: string; // 交易价格(¥)
  637. tradeStatus: string; // 交易状态
  638. }
  639. // 分类管理列表请求参数接口
  640. export interface SecondHandTradingCategoryParams extends ReqPage {}
  641. // 分类管理列表响应接口
  642. export interface SecondHandTradingCategoryList {}
  643. // 举报管理列表请求参数接口
  644. export interface SecondHandTradingReportParams extends ReqPage {
  645. reportingUserName: string; // 举报用户名称
  646. createdTime: string; // 举报时间
  647. processingStatus: string; // 处理状态
  648. reportingUserId: string; // 举报用户ID
  649. }
  650. // 举报管理列表响应接口
  651. export interface SecondHandTradingReportList {
  652. businessId: number;
  653. dictDetail: string;
  654. id: number;
  655. pageNum: string;
  656. pageSize: string;
  657. processingContext: string;
  658. processingStatus: number;
  659. processingTime: string;
  660. reportContext: string;
  661. reportContextType: number;
  662. reportResult: string;
  663. reportedUserName: string;
  664. reportedUserPhone: string;
  665. reportingDate: string;
  666. reportingUserName: string;
  667. reportingUserPhone: string;
  668. createdTime: string;
  669. }
  670. }