sms.go 790 B

1234567891011121314151617181920212223242526272829303132333435
  1. package controllers
  2. import (
  3. "hongze/hongze_robot/models"
  4. "hongze/hongze_robot/utils"
  5. )
  6. //短信管理
  7. type SmsController struct {
  8. BaseCommonController
  9. }
  10. // @Title 短信转发接口
  11. // @Description 短信转发接口
  12. // @Param request body company.CompanyApplyApproveReq true "type json string"
  13. // @Success Ret=200 转发成功
  14. // @router /send [post]
  15. func (this *SmsController) SmsSend() {
  16. br := new(models.BaseResponse).Init()
  17. defer func() {
  18. this.Data["json"] = br
  19. this.ServeJSON()
  20. }()
  21. sign:=this.GetString("Sign")
  22. address:=this.GetString("Address")
  23. body:=this.GetString("Body")
  24. name:=this.GetString("Name")
  25. date:=this.GetString("Date")
  26. utils.FileLog.Info(" %s; %s; %s; %s; %s",sign,address,body,name,date)
  27. br.Ret = 200
  28. br.Success = true
  29. br.Msg = "发送成功"
  30. }