http

package
v0.0.0-...-7705b48 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailSend

func EmailSend(c *gin.Context)

*

  • @api {post} /api/email/send 发送邮件
  • @apiName send
  • @apiGroup Email *
  • @apiParam {string} title 邮件标题
  • @apiParam {string} content 邮件内容
  • @apiParam {string} sender_name 发件人昵称
  • @apiParam {string} receiver 收件人邮箱,多个以英文逗号隔开
  • @apiParam {string} receiver_name 收件人昵称,可不填,多个以英文逗号隔开
  • @apiParam {file} attachment[] 多个附件请使用相同变量名.请使用 form-data 进行传输 *
  • @apiHeaderExample {json} Header-Example:
  • {
  • "Content-Type": "multipart/form-data"
  • } *
  • @apiDescription 发送邮件 *
  • @apiVersion 1.0.0
  • @apiSuccessExample Success-Response:
  • {
  • "code": 200,
  • "message": "success",
  • "data": null
  • }
  • @apiErrorExample Error-Response:
  • {
  • "code": 400,
  • "message": "Param is invalid",
  • "data": null
  • }

func Init

func Init(e *gin.Engine, srvInjection *service.Service) *gin.Engine

Types

This section is empty.

Jump to

Keyboard shortcuts

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