Documentation ¶
Index ¶
- func GenerateToken(c *gin.Context)
- func GetMailTypes(c *gin.Context)
- func GetMails(c *gin.Context)
- func GetUserInfo(c *gin.Context)
- func JSON(c *gin.Context, options ...*Option)
- func LoadAPIServer(detached bool)
- func PushWeComText(c *gin.Context)
- func SendEmail(c *gin.Context)
- func SignIn(c *gin.Context)
- func SignUp(c *gin.Context)
- type Option
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶ added in v0.0.4
GenerateToken 生成Token @Summary 生成Token @Author l.jiang.1024@gmail.com @Description 生成Token @Tags Token @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Param body body request.NewToken true "JSON数据" @Success 200 {object} response.TokenDetail @Router /api/v1/tokens [post]
func GetMailTypes ¶
GetMailTypes 获取邮件类型 @Summary 获取邮件类型 @Author l.jiang.1024@gmail.com @Description 获取邮件类型 @Tags mail @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Router /api/v1/mail-types [get]
func GetMails ¶ added in v0.0.7
GetMails 查看邮件列表 @Title 查看邮件列表 @Author l.jiang.1024@gmail.com @Description 查看邮件列表 @Tags Mail @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Param body body request. true "JSON数据" @Success 200 {object} response. @Router /api/v1/mails [get]
func GetUserInfo ¶ added in v0.0.4
GetUserInfo 用户信息 @Summary 用户信息 @Author l.jiang.1024@gmail.com @Description 用户信息 @Tags Auth @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Param body body request. true "JSON数据" @Success 200 {object} response. @Router /api/v1/user/info [get]
func PushWeComText ¶ added in v0.0.4
PushWeComText 推送企业微信机器人消息 @Summary 推送企业微信机器人消息 @Author l.jiang.1024@gmail.com @Description 推送企业微信机器人消息 @Tags WeCom @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Router /api/v1/wecom-text-messages [post]
func SendEmail ¶ added in v0.0.4
SendEmail 发送邮件 @Summary 发送邮件 @Author l.jiang.1024@gmail.com @Description 发送邮件 @Tags Mail @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Param body body request.PushMailRequest true "JSON数据" @Router /api/v1/mails [post]