You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
385 B

package sys
import (
"pure-admin/global"
"pure-admin/model/response"
"pure-admin/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
)
func EmailTest(c *gin.Context) {
if err := service.EmailTest(); err != nil {
global.MG_LOG.Error("发送失败!", zap.Any("err", err))
response.FailWithMessage("发送失败", c)
} else {
response.OkWithData("发送成功", c)
}
}