permission.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type AllPermissionRequest struct {
  7. base.Header
  8. }
  9. type AllPermissionResponse struct {
  10. base.Result
  11. Data v1.SystemPermissionListReply `json:"data"`
  12. }
  13. type GroupAddBody struct {
  14. PermissionCodes []string `form:"permission_codes" json:"permission_codes"`
  15. GroupName string `form:"group_name" json:"group_name"`
  16. GroupDesc string `form:"group_desc" json:"group_desc"`
  17. }
  18. type GroupAddRequest struct {
  19. base.Header
  20. GroupAddBody
  21. }
  22. type GroupAddResponse struct {
  23. base.Result
  24. Data v1.GroupAddReply `json:"data"`
  25. }
  26. type GroupUpdateBody struct {
  27. Id int64 `form:"id"`
  28. PermissionCodes []string `form:"permission_codes" json:"permission_codes"`
  29. GroupName string `form:"group_name" json:"group_name"`
  30. GroupDesc string `form:"group_desc" json:"group_desc"`
  31. }
  32. type GroupUpdateRequest struct {
  33. base.Header
  34. GroupUpdateBody
  35. }
  36. type GroupUpdateResponse struct {
  37. base.Result
  38. }
  39. type GroupDelQuery struct {
  40. Id int64 `form:"id"`
  41. }
  42. type GroupDelRequest struct {
  43. base.Header
  44. GroupDelQuery
  45. }
  46. type GroupDelResponse struct {
  47. base.Result
  48. }
  49. type GroupListRequest struct {
  50. base.Header
  51. }
  52. type GroupListResponse struct {
  53. base.Result
  54. Data v1.GroupListReply `json:"data"`
  55. }
  56. type GroupInfoQuery struct {
  57. Id int64 `form:"id"`
  58. }
  59. type GroupInfoRequest struct {
  60. base.Header
  61. GroupInfoQuery
  62. }
  63. type GroupInfoResponse struct {
  64. base.Result
  65. Data v1.GroupInfoReply `json:"data"`
  66. }