request_params.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package permission_group
  2. import "git.sxidc.com/go-framework/baize/framework/core/api/request"
  3. type (
  4. CreatePermissionGroupJsonBody struct {
  5. Name string `json:"name" binding:"required" assign:"toField:Name"`
  6. Description string `json:"description" assign:"toField:Description"`
  7. }
  8. DeletePermissionGroupQueryParams struct {
  9. request.IDQueryParam
  10. }
  11. UpdatePermissionGroupJsonBody struct {
  12. request.IDJsonBody
  13. Name string `json:"name" assign:"toField:Name"`
  14. Description string `json:"description" assign:"toField:Description"`
  15. }
  16. GetPermissionGroupsQueryParams struct {
  17. request.BaseQueryParams
  18. Name string `form:"name" assign:"toField:Name"`
  19. Description string `form:"description" assign:"toField:Description"`
  20. }
  21. GetPermissionGroupQueryParams struct {
  22. request.IDQueryParam
  23. }
  24. UpdatePermissionsOfPermissionGroupJsonBody struct {
  25. request.IDJsonBody
  26. PermissionIDs []string `json:"permissionIds" assign:"toField:PermissionIDs"`
  27. }
  28. GetPermissionsOfPermissionGroupQueryParams struct {
  29. request.BaseQueryWithIDParams
  30. }
  31. )