Documentation ¶
Index ¶
- Constants
- Variables
- type CreateRoleJsonBody
- type DeleteRoleQueryParams
- type Entity
- type GetPermissionsOfRoleQueryParams
- type GetRoleQueryParams
- type GetRolesQueryParams
- type GetUsersOfRoleQueryParams
- type Info
- type Simple
- type UpdatePermissionsOfRoleJsonBody
- type UpdateRoleJsonBody
- type UpdateUsersOfRoleJsonBody
Constants ¶
View Source
const ( FieldName = "Name" FieldDescription = "Description" )
Variables ¶
View Source
var ( ColumnName = domain.ColumnName(FieldName) ColumnDescription = domain.ColumnName(FieldDescription) )
Functions ¶
This section is empty.
Types ¶
type CreateRoleJsonBody ¶
type DeleteRoleQueryParams ¶
type DeleteRoleQueryParams struct {
request.IDQueryParam
}
type Entity ¶
type Entity struct { entity.Base Name string `sqlmapping:"column:name" sqlresult:"column:name" check:"required,lte=256,when=create/update"` Description string `sqlmapping:"column:description;updateClear" sqlresult:"column:description"` UserIDs []string `sqlmapping:"-" sqlresult:"-"` PermissionIDs []string `sqlmapping:"-" sqlresult:"-"` entity.UserIDFields entity.TimeFields }
func (*Entity) DomainCNName ¶
func (*Entity) DomainCamelName ¶
func (*Entity) GetFieldMap ¶ added in v1.1.0
type GetPermissionsOfRoleQueryParams ¶
type GetPermissionsOfRoleQueryParams struct {
request.BaseQueryWithIDParams
}
type GetRoleQueryParams ¶
type GetRoleQueryParams struct {
request.IDQueryParam
}
type GetRolesQueryParams ¶
type GetRolesQueryParams struct { request.BaseQueryParams Name string `form:"name" assign:"toField:Name"` Description string `form:"description" assign:"toField:Description"` }
type GetUsersOfRoleQueryParams ¶
type GetUsersOfRoleQueryParams struct {
request.BaseQueryWithIDParams
}
type Info ¶
type Info struct { application.InfoIDField Name string `json:"name" sqlresult:"column:name"` Description string `json:"description" sqlresult:"column:description"` application.InfoUserIDFields application.InfoTimeFields }
type Simple ¶
type Simple struct { // schema Schema string // 鉴权中间件 AuthMiddleware binding.Middleware }
Simple Bind参数
type UpdatePermissionsOfRoleJsonBody ¶
type UpdatePermissionsOfRoleJsonBody struct { request.IDJsonBody PermissionIDs []string `json:"permissionIds" assign:"toField:PermissionIDs"` }
type UpdateRoleJsonBody ¶
type UpdateRoleJsonBody struct { request.IDJsonBody Name string `json:"name" assign:"toField:Name"` Description string `json:"description" assign:"toField:Description"` }
type UpdateUsersOfRoleJsonBody ¶
type UpdateUsersOfRoleJsonBody struct { request.IDJsonBody UserIDs []string `json:"userIds" assign:"toField:UserIDs"` }
Click to show internal directories.
Click to hide internal directories.