web

package
v0.0.0-...-35d01cd Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthor

func AddAuthor(c *engine.Context) (interface{}, error)

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

func GetAuthorList(c *engine.Context) (interface{}, error)

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

func GetBotList(c *engine.Context) (interface{}, error)

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

func GetDynamicList(c *engine.Context) (interface{}, error)

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

func GetTaskStatus(c *engine.Context) (interface{}, error)

GetTaskStatus godoc @Summary 获取任务状态 @Description @Tags web @Accept json @Produce json @Security ApiKeyAuth @Param task query string true "任务名称" @Router /web/task/status [get]

func Login

func Login(c *engine.Context) (interface{}, error)

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 NewTask

func NewTask(c *engine.Context) (interface{}, error)

func RefreshToken

func RefreshToken(c *engine.Context) (interface{}, error)

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

func Register(c *engine.Context) (interface{}, error)

Register godoc @Summary 站点用户注册 @Description @Tags web @Accept json @Produce json @Param information body api.UserInfo true "用户信息" @Router /web/register [post]

func SetTaskStatus

func SetTaskStatus(c *engine.Context) (interface{}, error)

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

func UpdateSettings(c *engine.Context) (interface{}, error)

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.

Jump to

Keyboard shortcuts

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