MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / AssignUserRoleRequest

Struct AssignUserRoleRequest

internal/api/req/role_req.go:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122type AssignUserRoleRequest struct {
123 UserId int `json:"user_id" binding:"required,gt=0"` // 用户ID
124 RoleIds []int `json:"role_ids"` // 角色ID列表
125 MenuIds []int `json:"menu_ids"` // 菜单ID列表
126 ApiIds []int `json:"api_ids"` // API ID列表
127}
128
129type AssignUsersRoleRequest struct {
130 UserIds []int `json:"user_ids" binding:"required,gt=0"` // 用户ID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected