feat:完善信息

This commit is contained in:
henry
2021-09-29 16:43:40 +08:00
parent c556053feb
commit 3d84af2e0c
6 changed files with 68 additions and 4 deletions

20
app/basic/api/sms.go Normal file
View File

@ -0,0 +1,20 @@
package api
import (
"SciencesServer/app/basic/controller"
"github.com/gin-gonic/gin"
)
type Sms struct{}
func (a *Sms) sCaptcha(c *gin.Context) {
form := &struct {
Mobile string `json:"mobile" form:"mobile" binding:"required"`
}{}
if err := Bind(form)(c); err != nil {
APIFailure(err.(error))(c)
return
}
err := controller.NewSms()().Captcha(form.Mobile)
APIResponse(err)
}