Browse Source

实名认证

master
huangjiajun 5 days ago
parent
commit
268b1aa10c
5 changed files with 15 additions and 11 deletions
  1. +1
    -1
      app/md/realname_auth_base.go
  2. +1
    -1
      app/svc/svc_user_real_name.go
  3. +6
    -5
      docs/docs.go
  4. +4
    -2
      docs/swagger.json
  5. +3
    -2
      docs/swagger.yaml

+ 1
- 1
app/md/realname_auth_base.go View File

@@ -1,7 +1,7 @@
package md

type RealNameAuthBasicData struct {
AuthState string `json:"auth_state" example:"0未申请 1申请中 2申请通过 3申请失败"`
AuthState string `json:"auth_state" example:"0未申请 1申请通过 3申请失败"`
}
type RealNameAuthAddRequest struct {
RealName string `json:"real_name"`


+ 1
- 1
app/svc/svc_user_real_name.go View File

@@ -33,7 +33,7 @@ func GetRealNameAuthBase(c *gin.Context) {
list.State = state
}
}
res.AuthState = utils.IntToStr(list.State + 1)
res.AuthState = utils.IntToStr(list.State)
if list.State == 0 { //人脸识别 支付了但是没扫脸的情况 设置成没审核状态
res.AuthState = "0"
}


+ 6
- 5
docs/docs.go View File

@@ -1,4 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.

package docs

import "github.com/swaggo/swag"
@@ -2304,7 +2305,9 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -4248,7 +4251,7 @@ const docTemplate = `{
"properties": {
"auth_state": {
"type": "string",
"example": "0未审核 1通过 2拒绝"
"example": "0未申请 1申请通过 3申请失败"
}
}
},
@@ -4997,8 +5000,6 @@ var SwaggerInfo = &swag.Spec{
Description: "APP客户端-Api接口",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 4
- 2
docs/swagger.json View File

@@ -2298,7 +2298,9 @@
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -4242,7 +4244,7 @@
"properties": {
"auth_state": {
"type": "string",
"example": "0未审核 1通过 2拒绝"
"example": "0未申请 1申请通过 3申请失败"
}
}
},


+ 3
- 2
docs/swagger.yaml View File

@@ -897,7 +897,7 @@ definitions:
md.RealNameAuthBasicData:
properties:
auth_state:
example: 0未审核 1通过 2拒绝
example: 0未申请 1申请通过 3申请失败
type: string
type: object
md.RealNameAuthResp:
@@ -2916,7 +2916,8 @@ paths:
in: body
name: req
required: true
schema: {}
schema:
type: object
produces:
- application/json
responses:


Loading…
Cancel
Save