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.

18 lines
469 B

3 years ago
3 years ago
  1. package system
  2. import (
  3. v1 "github.com/flipped-aurora/gin-vue-admin/api/v1"
  4. "github.com/flipped-aurora/gin-vue-admin/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type EmailRouter struct {
  8. }
  9. func (s *EmailRouter) InitEmailRouter(Router *gin.RouterGroup) {
  10. emailRouter := Router.Group("email").Use(middleware.OperationRecord())
  11. var systemApi = v1.ApiGroupApp.SystemApiGroup.SystemApi
  12. {
  13. emailRouter.POST("emailTest", systemApi.EmailTest) // 发送测试邮件
  14. }
  15. }