劲创营---任务项目
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.
 
 
 

24 lines
391 B

  1. package hdl
  2. import (
  3. "applet/app/comm/e"
  4. "applet/app/operator/md"
  5. "applet/app/operator/svc"
  6. "github.com/gin-gonic/gin"
  7. )
  8. func Login(c *gin.Context) {
  9. svc.Login(c)
  10. }
  11. func FastLogin(c *gin.Context) {
  12. var args md.RegisterReq
  13. if err := c.ShouldBindJSON(&args); err != nil {
  14. e.OutErr(c, e.ERR_INVALID_ARGS)
  15. return
  16. }
  17. svc.Register(c, args)
  18. }
  19. func Sms(c *gin.Context) {
  20. svc.Sms(c)
  21. }