Files
mayfly-go/server/internal/sys/api/form/role.go

23 lines
460 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package form
// 分配角色资源表单信息
type RoleResourceForm struct {
Id int
ResourceIds string
}
// 保存角色信息表单
type RoleForm struct {
Id int
Status int `json:"status"` // 1可用-1不可用
Name string `binding:"required"`
Code string `binding:"required"`
Remark string `json:"remark"`
}
// 账号分配角色表单
type AccountRoleForm struct {
Id int `binding:"required"`
RoleIds string
}