Documentation
¶
Index ¶
- func AddRoutes(m *mux.Router)
- func Captcha(w http.ResponseWriter, r *http.Request)
- func CurrentUser(w http.ResponseWriter, r *http.Request)
- func E400(w http.ResponseWriter, r *http.Request)
- func E401(w http.ResponseWriter, r *http.Request)
- func E403(w http.ResponseWriter, r *http.Request)
- func E500(w http.ResponseWriter, r *http.Request)
- func GetNotice(w http.ResponseWriter, r *http.Request)
- func GetRule(w http.ResponseWriter, r *http.Request)
- func ListUsers(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Register(w http.ResponseWriter, r *http.Request)
- type Error
- type Geographic
- type LoginRequest
- type Notice
- type RuleList
- type RuleListItem
- type Tag
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
func CurrentUser(w http.ResponseWriter, r *http.Request)
Types ¶
type Geographic ¶
type LoginRequest ¶
type Notice ¶
type Notice struct { ID string `json:"id"` Avatar string `json:"avatar"` Description string `json:"description"` Extra string `json:"extra"` Status string `json:"status"` Datetime string `json:"datetime"` Type string `json:"type"` Title string `json:"title"` Read bool `json:"read"` ClickClose bool `json:"ClickClose"` }
type RuleList ¶
type RuleList struct { Data []RuleListItem `json:"data"` Total int `json:"total"` Success bool `json:"success"` }
type RuleListItem ¶
type RuleListItem struct { Key int `json:"key"` Disabled bool `json:"disabled"` Href string `json:"href"` Avatar string `json:"avatar"` Name string `json:"name"` Owner string `json:"owner"` Desc string `json:"desc"` CallNo int `json:"callNo"` Status int `json:"status"` UpdatedAt string `json:"updatedAt"` CreatedAt string `json:"createdAt"` Progress int `json:"progress"` }
type User ¶
type User struct { Name string `json:"name"` Avatar string `json:"avatar"` UserID string `json:"userid"` Email string `json:"email"` Signature string `json:"signature"` Title string `json:"title"` Group string `json:"group"` Tags []Tag `json:"tags"` NotifyCount int `json:"notifyCount"` UnreadCount int `json:"unreadCount"` Country string `json:"country"` Access string `json:"access"` Geographic Geographic `json:"geographic"` Address string `json:"address"` Phone string `json:"phone"` }
Click to show internal directories.
Click to hide internal directories.