rw_verfy.go 425 B

123456789101112131415161718192021222324
  1. package admin
  2. import (
  3. "app/commons/constant"
  4. "app/commons/services"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // 提现审核
  8. func (s *Server) WithdrawVerify(ctx *gin.Context) {
  9. c := s.FromContext(ctx)
  10. req := new(services.TransferParam)
  11. if err := c.ShouldBindJSON(&req); err != nil {
  12. c.Resp(constant.ErrorParams)
  13. return
  14. }
  15. err := s.VerifyWithdrawApply(req)
  16. if err != nil {
  17. c.Resp(err.Error())
  18. return
  19. }
  20. c.Resp(nil)
  21. }