system_permission.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package v1
  2. import (
  3. "property-management-gateway/param/base"
  4. "property-management-gateway/pb/v1"
  5. )
  6. type SystemPermissionAddBody struct {
  7. // 父code,第一级节点父code为空
  8. Pcode string `form:"pcode" json:"pcode"`
  9. // 权限名字
  10. Name string `form:"name" json:"name"`
  11. // 组件路径
  12. Path string `form:"path" json:"path"`
  13. // 小程序组件路径
  14. AppletePath string `form:"applete_path" json:"applete_path"`
  15. // 路由
  16. Router string `form:"router" json:"router"`
  17. // 1 发布 2 下架或不发布
  18. Enable int32 `form:"enable" json:"enable"`
  19. }
  20. type SystemPermissionAddRequest struct {
  21. base.Header
  22. SystemPermissionAddBody
  23. }
  24. type SystemPermissionAddResponse struct {
  25. base.Result
  26. Data v1.SystemPermissionAddReply `json:"data"`
  27. }
  28. type SystemPermissionUpdateBody struct {
  29. // 权限节点code
  30. Code string `form:"code" json:"code"`
  31. // 权限名字
  32. Name string `form:"name" json:"name"`
  33. // 组件路径
  34. Path string `form:"path" json:"path"`
  35. // 小程序组件路径
  36. AppletePath string `form:"applete_path" json:"applete_path"`
  37. // 路由
  38. Router string `form:"router" json:"router"`
  39. }
  40. type SystemPermissionUpdateRequest struct {
  41. base.Header
  42. SystemPermissionUpdateBody
  43. }
  44. type SystemPermissionUpdateResponse struct {
  45. base.Result
  46. }
  47. type SystemPermissionDelQuery struct {
  48. Code string `form:"code" json:"code"`
  49. }
  50. type SystemPermissionDelRequest struct {
  51. base.Header
  52. SystemPermissionDelQuery
  53. }
  54. type SystemPermissionDelResponse struct {
  55. base.Result
  56. }
  57. type SystemPermissionListRequest struct {
  58. base.Header
  59. }
  60. type SystemPermissionListResponse struct {
  61. base.Result
  62. Data v1.SystemPermissionListReply `json:"data"`
  63. }
  64. type SystemPermissionEnableBody struct {
  65. // 权限节点code
  66. Code string `form:"code" json:"code"`
  67. // 1 发布 2 下架或不发布
  68. Enable int32 `form:"enable" json:"enable"`
  69. }
  70. type SystemPermissionEnableRequest struct {
  71. base.Header
  72. SystemPermissionEnableBody
  73. }
  74. type SystemPermissionEnableResponse struct {
  75. base.Result
  76. }