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

Struct CreateRoleRequest

internal/api/req/role_req.go:77–84  ·  view source on GitHub ↗

角色相关

Source from the content-addressed store, hash-verified

75
76// 角色相关
77type CreateRoleRequest struct {
78 Name string `json:"name" binding:"required"` // 角色名称
79 Description string `json:"description"` // 角色描述
80 RoleType int `json:"role_type" binding:"required"` // 角色类型
81 IsDefault int `json:"is_default" binding:"oneof=0 1"` // 是否默认角色
82 MenuIds []int `json:"menu_ids"` // 菜单ID列表
83 ApiIds []int `json:"api_ids"` // API ID列表
84}
85
86type GetRoleRequest struct {
87 Id int `json:"id" binding:"required,gt=0"` // 角色ID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected