typings.d.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // @ts-ignore
  2. /* eslint-disable */
  3. declare namespace API {
  4. type BasicPageParams = {
  5. /** 页码 */
  6. current: number
  7. /** 页数 */
  8. pageSize: number
  9. }
  10. type BasicFetchResult<T> = {
  11. items: T[]
  12. total: number
  13. }
  14. type ProjectList = BasicFetchResult<ProjectListItem>
  15. type ProjectListItem = {
  16. createdTime: string
  17. name: string
  18. created: string
  19. createdID: string
  20. projectType: ProjectTypeListItem
  21. ID: string
  22. }
  23. type ProjectListParams = BasicPageParams & {
  24. search?: string
  25. projectTypeID?: string
  26. }
  27. type ProjectDelParams = {
  28. ID: string
  29. }
  30. type ProjectUpdateParams = {
  31. ID: string
  32. name: string
  33. projectTypeID: string
  34. }
  35. type ProjectAddParams = Omit<ProjectUpdateParams, 'ID'>
  36. type ProjectTypeList = ProjectTypeListItem[]
  37. type ProjectTypeListItem = {
  38. name: string
  39. ID: string
  40. updatedTime: string
  41. createdTime: string
  42. }
  43. /** 事业单位列表 */
  44. type InstitutionList = BasicFetchResult<InstitutionListItem>
  45. type InstitutionListItem = {
  46. name: string
  47. /** @name 简称 */
  48. acronym: string
  49. /** @name 企业代码 */
  50. enterpriseCode: string
  51. /** @name 组织结构代码 */
  52. organizationCode: string
  53. /** @name 人员账号数量 */
  54. institutionAccountTotal: number
  55. bank: string
  56. bankAccount: string
  57. phone: string
  58. address: string
  59. fax: string
  60. legalPerson: string
  61. idCard: string
  62. createdTime: string
  63. updatedTime: string
  64. ID: string
  65. }
  66. type InstitutionListParams = BasicPageParams & {
  67. search?: string
  68. institutionTypeId?: string
  69. }
  70. type InstitutionAddParams = Omit<InstitutionListItem, 'createdTime' | 'updatedTime' | 'ID'>
  71. type InstitutionUpdateParams = Omit<InstitutionListItem, 'createdTime' | 'updatedTime'>
  72. /** 账号列表 */
  73. type AccountList = BasicFetchResult<AccountListItem>
  74. type AccountListItem = {
  75. ID: string
  76. createdTime: number
  77. accountType: string
  78. account: string
  79. name: string
  80. phone: string
  81. institution: {
  82. ID: string
  83. name: string
  84. }
  85. created: string
  86. createdID: string
  87. id: string
  88. dataID: string
  89. gender: string
  90. }
  91. type AccountListParams = BasicPageParams & {
  92. search?: string
  93. /** @name 账号类型(1-企事业账号) ... */
  94. accountType: number
  95. }
  96. type AcountAddParams = {
  97. /** @name 企事业ID */
  98. institutionID: string
  99. /** @name 账号类型(1-企事业账号) ... */
  100. accountType: string
  101. account: string
  102. password: string
  103. name: string
  104. phone?: string
  105. gender: number
  106. }
  107. type AcountUpdateParams = Omit<AcountAddParams, 'account' | 'accountType' | 'password'> & {
  108. ID: string
  109. }
  110. type AccountType = {
  111. value: number
  112. name: string
  113. }
  114. type OrganizationalStructureListParams = {
  115. structureType: string
  116. dataID: string
  117. }
  118. type OrganizationalStructureListItem = {
  119. structureType: number
  120. dataID: string
  121. name: string
  122. parentID: string
  123. ID: string
  124. accountTotal: number
  125. sort: number
  126. id: string
  127. children: OrganizationalStructureListItem[]
  128. isLeaf: boolean
  129. }
  130. type OrganizationalStructureAddParams = {
  131. structureType: string
  132. dataID: string
  133. name: string
  134. parentID: string
  135. }
  136. type OrganizationalStructureUpdateParams = {
  137. ID: string
  138. name: string
  139. }
  140. type OrganizationalStructureMoveSortParams = {
  141. ID: string
  142. operation: string
  143. }
  144. type OrganizationalStructureMoveParams = {
  145. ID: string
  146. moveID: string
  147. }
  148. type OrganizationalStructureDelParams = {
  149. ID: string
  150. }
  151. type Schema = {
  152. ID: string
  153. columnType: number
  154. schema: string
  155. }
  156. type SchemaParams = {
  157. columnType: number
  158. }
  159. type ApprovalListParams = {
  160. ID: string
  161. name: string
  162. created: string
  163. createdID: string
  164. createdTime: number
  165. id: string
  166. }
  167. type ApprovalSetParams = {
  168. ID: string
  169. accountID: string
  170. approvalID: string
  171. }
  172. }