data.d.ts 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. declare namespace API {
  2. type RoleListItem = {
  3. roleId: number
  4. roleName: string
  5. roleCode: string
  6. roleDesc: string
  7. dataScopeType: string
  8. scopeIds?: any
  9. delFlag: string
  10. createdBy: string
  11. modifiedBy: string
  12. createdTime: string
  13. modifiedTime: string
  14. }
  15. /** 角色列表结果 */
  16. type RoleListResult = RoleListItem[]
  17. /** 角色分页结果 */
  18. type RolesPageResult = RoleListItem[]
  19. /** 编辑角色入参 */
  20. type UpdateRolesParams = {
  21. createdBy: string
  22. createdTime: string
  23. dsScope: string
  24. dataScopeType: string
  25. id: number
  26. modifiedBy: string
  27. modifiedTime: string
  28. optFlag: string
  29. roleCode: string
  30. roleDesc: string
  31. roleName: string
  32. scopeIds?: any
  33. }
  34. /** 新增角色入参 */
  35. type AddRolesParams = Pick<UpdateRolesParams, 'dsType' | 'roleCode' | 'roleDesc' | 'roleName'>
  36. }