Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationResult ¶
type AggregationResult struct { Data []Response `bson:"data" json:"data"` TotalCount int64 `bson:"total_count" json:"total_count"` }
func (*AggregationResult) GetData ¶
func (r *AggregationResult) GetData() interface{}
func (*AggregationResult) GetTotal ¶
func (r *AggregationResult) GetTotal() int64
type EditRequest ¶
type EditRequest struct { Duration *datetime.DurationWithUnit `json:"duration"` Description string `json:"description" binding:"max=500"` }
type ListRequest ¶
type ListRequest struct { pagination.Query Search string `form:"search"` Sort string `form:"sort" binding:"oneoforempty=asc desc"` SortBy string `json:"sort_by" form:"sort_by" binding:"oneoforempty=user.name description created accessed expired"` }
type Response ¶
type Response struct { ID string `bson:"_id" json:"_id"` Value string `bson:"value" json:"value"` User *author.Author `bson:"user" json:"user"` Roles []author.Role `bson:"roles" json:"roles"` Description string `bson:"description" json:"description"` Created datetime.CpsTime `bson:"created" json:"created" swaggertype:"integer"` Accessed datetime.CpsTime `bson:"accessed" json:"accessed" swaggertype:"integer"` Expired *datetime.CpsTime `bson:"expired" json:"expired" swaggertype:"integer"` }
Click to show internal directories.
Click to hide internal directories.