Documentation ¶
Index ¶
- func Auth(r *http.Request) (*models.UserModel, error)
- func AuthLogin(w http.ResponseWriter, r *http.Request)
- func Benediction(w http.ResponseWriter, r *http.Request)
- func CounterHandler(w http.ResponseWriter, r *http.Request)
- func GetCategoryList(w http.ResponseWriter, r *http.Request)
- func GetTallyMainInfo(w http.ResponseWriter, r *http.Request)
- func GetTallyMainList(w http.ResponseWriter, r *http.Request)
- func GetTallyMainTotal(w http.ResponseWriter, r *http.Request)
- func GetTallySta(w http.ResponseWriter, r *http.Request)
- func GetUserBookInfo(w http.ResponseWriter, r *http.Request)
- func GetUserBooks(w http.ResponseWriter, r *http.Request)
- func GetUserInfo(w http.ResponseWriter, r *http.Request)
- func GetWeather(w http.ResponseWriter, r *http.Request)
- func IndexHandler(w http.ResponseWriter, r *http.Request)
- func NewResponseJson(w http.ResponseWriter) *responseJson
- func Parse(timeStr, layout string) (time.Time, error)
- func RandomNickname() string
- func SetBookEdit(w http.ResponseWriter, r *http.Request)
- func SetCategoryEdit(w http.ResponseWriter, r *http.Request)
- func SetTallyMainEdit(w http.ResponseWriter, r *http.Request)
- func SetUserInfo(w http.ResponseWriter, r *http.Request)
- type JsonResult
- type ResultData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Benediction ¶
func Benediction(w http.ResponseWriter, r *http.Request)
func CounterHandler ¶
func CounterHandler(w http.ResponseWriter, r *http.Request)
CounterHandler 计数器接口
func GetCategoryList ¶
func GetCategoryList(w http.ResponseWriter, r *http.Request)
func GetTallyMainInfo ¶
func GetTallyMainInfo(w http.ResponseWriter, r *http.Request)
func GetTallyMainList ¶
func GetTallyMainList(w http.ResponseWriter, r *http.Request)
func GetTallyMainTotal ¶
func GetTallyMainTotal(w http.ResponseWriter, r *http.Request)
func GetTallySta ¶
func GetTallySta(w http.ResponseWriter, r *http.Request)
func GetUserBookInfo ¶
func GetUserBookInfo(w http.ResponseWriter, r *http.Request)
func GetUserBooks ¶
func GetUserBooks(w http.ResponseWriter, r *http.Request)
func GetUserInfo ¶
func GetUserInfo(w http.ResponseWriter, r *http.Request)
func GetWeather ¶
func GetWeather(w http.ResponseWriter, r *http.Request)
func NewResponseJson ¶
func NewResponseJson(w http.ResponseWriter) *responseJson
func RandomNickname ¶
func RandomNickname() string
func SetBookEdit ¶
func SetBookEdit(w http.ResponseWriter, r *http.Request)
func SetCategoryEdit ¶
func SetCategoryEdit(w http.ResponseWriter, r *http.Request)
func SetTallyMainEdit ¶
func SetTallyMainEdit(w http.ResponseWriter, r *http.Request)
func SetUserInfo ¶
func SetUserInfo(w http.ResponseWriter, r *http.Request)
Types ¶
type JsonResult ¶
type JsonResult struct { Code int `json:"code"` ErrorMsg string `json:"errorMsg,omitempty"` Data interface{} `json:"data"` }
JsonResult 返回结构
type ResultData ¶
Click to show internal directories.
Click to hide internal directories.