Documentation
¶
Index ¶
- func AddAuthor(c *engine.Context) (interface{}, error)
- func GetAuthorList(c *engine.Context) (interface{}, error)
- func GetBotList(c *engine.Context) (interface{}, error)
- func GetDynamicList(c *engine.Context) (interface{}, error)
- func GetTaskStatus(c *engine.Context) (interface{}, error)
- func Login(c *engine.Context) (interface{}, error)
- func NewTask(c *engine.Context) (interface{}, error)
- func RefreshToken(c *engine.Context) (interface{}, error)
- func Register(c *engine.Context) (interface{}, error)
- func SetTaskStatus(c *engine.Context) (interface{}, error)
- func UpdateSettings(c *engine.Context) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthor ¶
AddAuthor godoc @Summary 添加up主 @Description 需先添加up主之后才能监听动态 @Tags web @Accept json @Produce json @Security ApiKeyAuth @Param object body api.AuthorInfo true "up主id和BotID" @Router /web/author/add [post]
func GetAuthorList ¶
GetAuthorList godoc @Summary 获取 up 主列表 @Description @Tags web @Produce json @Security ApiKeyAuth @Param bot_id query string true "BotID" @Success 200 {array} model.Author @Router /web/author/list [get]
func GetBotList ¶
GetBotList godoc @Summary 获取 Bot 列表 @Description 根据 Token 获取 Bot 列表 @Tags web @Produce json @Security ApiKeyAuth @Success 200 {array} model.Bot @Router /web/bot/list [get]
func GetDynamicList ¶
GetDynamicList godoc @Summary 获取 up 主的动态列表 @Description @Tags web @Produce json @Security ApiKeyAuth @Param bot_id query string true "BotID" @Param mid query string true "up主ID" @Success 200 {array} model.Dynamic @Router /web/dynamic/list [get]
func GetTaskStatus ¶
GetTaskStatus godoc @Summary 获取任务状态 @Description @Tags web @Accept json @Produce json @Security ApiKeyAuth @Param task query string true "任务名称" @Router /web/task/status [get]
func Login ¶
Login godoc @Summary 站点用户登录 @Description @Tags web @Accept json @Produce json @Param 用户信息 body api.UserInfo true "用户信息" @Success 200 {object} api.RegisteredToken @Router /web/login [post]
func RefreshToken ¶
RefreshToken godoc @Summary 刷新 AccessToken @Description @Tags web @Produce json @Param Authorization header string true "Bearer 刷新令牌" @Success 200 {object} api.RegisteredToken @Router /web/refreshToken [get]
func Register ¶
Register godoc @Summary 站点用户注册 @Description @Tags web @Accept json @Produce json @Param information body api.UserInfo true "用户信息" @Router /web/register [post]
func SetTaskStatus ¶
SetTaskStatus godoc @Summary 更新任务状态 @Description @Tags web @Accept json @Produce json @Security ApiKeyAuth @Param task query string true "任务名称" @Param status query string true "任务状态" @Router /web/task/update [post]
func UpdateSettings ¶
UpdateSettings godoc @Summary 更新设置 @Description @Tags web @Accept json @Produce json @Security ApiKeyAuth @Param object body model.Email true "邮件相关设置" @Router /web/setting/update [post]
Types ¶
This section is empty.