| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package role
- import "git.sxidc.com/go-framework/baize/framework/core/api/request"
- type (
- CreateRoleJsonBody struct {
- Name string `json:"name" binding:"required" assign:"toField:Name"`
- Description string `json:"description" assign:"toField:Description"`
- request.CreateUserIDJsonBody
- }
- DeleteRoleQueryParams struct {
- request.IDQueryParam
- }
- UpdateRoleJsonBody struct {
- request.IDJsonBody
- Name string `json:"name" binding:"required" assign:"toField:Name"`
- Description string `json:"description" assign:"toField:Description"`
- request.UpdateUserIDJsonBody
- }
- GetRolesQueryParams struct {
- request.BaseQueryParams
- Name string `form:"name" assign:"toField:Name"`
- Description string `form:"description" assign:"toField:Description"`
- }
- GetRoleQueryParams struct {
- request.IDQueryParam
- }
- UpdateUsersOfRoleJsonBody struct {
- request.IDJsonBody
- UserIDs []string `json:"userIds" assign:"toField:UserIDs"`
- }
- GetUsersOfRoleQueryParams struct {
- request.BaseQueryWithIDParams
- }
- UpdatePermissionsOfRoleJsonBody struct {
- request.IDJsonBody
- PermissionIDs []string `json:"permissionIds" assign:"toField:PermissionIDs"`
- }
- GetPermissionsOfRoleQueryParams struct {
- request.BaseQueryWithIDParams
- }
- )
|