蛋蛋星球-客户端
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.
 
 
 
 
 

50 lines
1.7 KiB

  1. package hdl
  2. import (
  3. "applet/app/svc"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // GetRealNameAuthBase
  7. // @Summary 实名认证-基础信息
  8. // @Tags 实名认证
  9. // @Description 实名认证-分类
  10. // @Accept json
  11. // @Produce json
  12. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  13. // @Success 200 {object} md.RealNameAuthBasicData "具体数据"
  14. // @Failure 400 {object} md.Response "具体错误"
  15. // @Router /api/v1/faceRealName/base [get]
  16. func GetRealNameAuthBase(c *gin.Context) {
  17. svc.GetRealNameAuthBase(c)
  18. }
  19. // GetRealNameAuthState
  20. // @Summary 实名认证-基础信息
  21. // @Tags 实名认证
  22. // @Description 实名认证-分类
  23. // @Accept json
  24. // @Produce json
  25. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  26. // @Success 200 {object} md.RealNameAuthBasicData "具体数据"
  27. // @Failure 400 {object} md.Response "具体错误"
  28. // @Router /api/v1/faceRealName/state [get]
  29. func GetRealNameAuthState(c *gin.Context) {
  30. svc.GetRealNameAuthState(c)
  31. }
  32. // RealNameSave
  33. // @Summary 实名认证-保存
  34. // @Tags 实名认证
  35. // @Description 实名认证-保存
  36. // @Accept json
  37. // @Produce json
  38. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  39. // @Param req body md.RealNameAuthAddRequest true "参数"
  40. // @Success 200 {object} md.RealNameAuthResp "具体数据"
  41. // @Failure 400 {object} md.Response "具体错误"
  42. // @Router /api/v1/faceRealName/save [post]
  43. func RealNameSave(c *gin.Context) {
  44. svc.RealNameSave(c)
  45. }