Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRole = []Role{ RoleAdmin, RoleUser, }
Functions ¶
This section is empty.
Types ¶
type LogInInput ¶
type NewTodoInput ¶
type NewTodoInput struct {
Text string `json:"text"`
}
type NewUserInput ¶
type PagingInput ¶
type Todo ¶
type UpdatePasswordInput ¶
type UpdateTodoInput ¶
type UpdateTodoInput struct {
Text string `json:"text"`
}
type UpdateUserInput ¶
type User ¶
type User struct { Id int64 `xorm:"pk autoincr" json:"id"` Name string `xorm:"varchar(10) notnull unique" json:"name"` Mobile string `xorm:"varchar(11) notnull unique" json:"mobile"` Password string `xorm:"text notnull" json:"-"` Role Role `xorm:"notnull" json:"role"` CreatedAt time.Time `xorm:"notnull created" json:"createdAt"` }
Click to show internal directories.
Click to hide internal directories.