controller

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(c *gin.Context, options ...*Option)

Error Error

func GetMailTypes

func GetMailTypes(c *gin.Context)

GetMailTypes 获取邮件类型 @Title 获取邮件类型 @Author l.jiang.1024@gmail.com @Description 获取邮件类型 @Tags mail @Param Authorization header string true "Bearer 31a165baebe6dec616b1f8f3207b4273" @Router /api/v1/mail-types [get]

func Ok

func Ok(c *gin.Context, options ...*Option)

Ok Ok

func PushMail

func PushMail(c *gin.Context)

PushMail 发送邮件 @Title 发送邮件 @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]

Types

type Option

type Option struct {
	Code *int
	Msg  *string
	Data *interface{}
}

Option option

func WithCode

func WithCode(code int) *Option

WithCode With Code

func WithData

func WithData(data interface{}) *Option

WithData With Data

func WithMsg

func WithMsg(msg string) *Option

WithMsg With Msg

Jump to

Keyboard shortcuts

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