pwd.go 371 B

1234567891011121314151617
  1. package http
  2. import (
  3. "go-common/app/service/main/passport/model"
  4. "go-common/library/ecode"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. func historyPwdCheck(c *bm.Context) {
  8. param := new(model.HistoryPwdCheckParam)
  9. c.Bind(param)
  10. if param.Mid <= 0 || param.Pwd == "" {
  11. c.JSON(nil, ecode.RequestErr)
  12. return
  13. }
  14. c.JSON(passportSvc.HistoryPwdCheck(c, param))
  15. }