Documentation
¶
Index ¶
- Variables
- func Log(c *gin.Context)
- func TimeCost(start time.Time, body *ResponseBody)
- type ResponseBody
- func CancelExpire(id string) *ResponseBody
- func CreateUser(username string, password string) *ResponseBody
- func DelUser(id string) *ResponseBody
- func PageUserList(curPage int, pageSize int) *ResponseBody
- func Restart() *ResponseBody
- func SetExpire(id string, useDays uint) *ResponseBody
- func Start() *ResponseBody
- func Stop() *ResponseBody
- func UpdateUser(id string, username string, password string) *ResponseBody
- func UserList(findUser string) *ResponseBody
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDbPath = viper.GetString("main.db.sqlite.path")
DefaultDbPath 数据库地址
Functions ¶
Types ¶
type ResponseBody ¶
ResponseBody 结构体
func PageUserList ¶
func PageUserList(curPage int, pageSize int) *ResponseBody
PageUserList 分页查询获取用户列表
func UpdateUser ¶
func UpdateUser(id string, username string, password string) *ResponseBody
UpdateUser 更新用户
Click to show internal directories.
Click to hide internal directories.