service

package
v0.0.0-...-7ac2355 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(r *http.Request) (*models.UserModel, error)

func AuthLogin

func AuthLogin(w http.ResponseWriter, r *http.Request)

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 IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler 计数器接口

func NewResponseJson

func NewResponseJson(w http.ResponseWriter) *responseJson

func Parse

func Parse(timeStr, layout string) (time.Time, error)

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

type ResultData struct {
	Code int         `json:"code"`
	Msg  string      `json:"message"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL