Documentation ¶
Index ¶
- func Log(c *gin.Context)
- func TimeCost(start time.Time, body *ResponseBody)
- type ResponseBody
- func CleanData(id uint) *ResponseBody
- func CreateUser(username string, password string) *ResponseBody
- func DelUser(id uint) *ResponseBody
- func GetLogLevel() *ResponseBody
- func PageUserList(curPage int, pageSize int) *ResponseBody
- func Restart() *ResponseBody
- func ServerInfo() *ResponseBody
- func SetData(id uint, quota int) *ResponseBody
- func SetDomain(domain string) *ResponseBody
- func SetLogLevel(level int) *ResponseBody
- func SetLoginInfo(title string) *ResponseBody
- func SetTrojanType(tType string) *ResponseBody
- func Start() *ResponseBody
- func Stop() *ResponseBody
- func Update() *ResponseBody
- func UpdateUser(id uint, username string, password string) *ResponseBody
- func UserList(findUser string) *ResponseBody
- func Version() *ResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseBody ¶
ResponseBody 结构体
func PageUserList ¶
func PageUserList(curPage int, pageSize int) *ResponseBody
PageUserList 分页查询获取用户列表
func UpdateUser ¶
func UpdateUser(id uint, username string, password string) *ResponseBody
UpdateUser 更新用户
Click to show internal directories.
Click to hide internal directories.