dengbiao 3 giorni fa
parent
commit
e09fd4167b
13 ha cambiato i file con 1143 aggiunte e 26 eliminazioni
  1. +35
    -0
      app/hdl/user_real_name/hdl_base.go
  2. +36
    -0
      app/hdl/user_real_name/hdl_list.go
  3. +2
    -0
      app/md/md_article.go
  4. +1
    -0
      app/md/md_cloud_bundle.go
  5. +33
    -0
      app/md/md_user_real_name.go
  6. +10
    -2
      app/router/router.go
  7. +14
    -0
      app/svc/article/svc_list.go
  8. +31
    -0
      app/svc/user_real_name/svc_base.go
  9. +82
    -0
      app/svc/user_real_name/svc_list.go
  10. +339
    -9
      docs/docs.go
  11. +337
    -6
      docs/swagger.json
  12. +218
    -6
      docs/swagger.yaml
  13. +5
    -3
      go.mod

+ 35
- 0
app/hdl/user_real_name/hdl_base.go Vedi File

@@ -0,0 +1,35 @@
package user_real_name

import (
"applet/app/svc/user_real_name"
"github.com/gin-gonic/gin"
)

// Base
// @Summary 基本设置-实名认证-基本配置
// @Tags 基本设置
// @Description 基本设置-实名认证
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Success 200 {object} md.UserRealNameBaseResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/userRealName/base [get]
func Base(c *gin.Context) {
user_real_name.Base(c)
}

// BaseSave
// @Summary 基本设置-实名认证-基本配置保存
// @Tags 基本设置
// @Description 基本设置-实名认证-基本配置保存
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserRealNameBaseResp true "(分页信息必填)"
// @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/userRealName/base/save [post]
func BaseSave(c *gin.Context) {
user_real_name.BaseSave(c)
}

+ 36
- 0
app/hdl/user_real_name/hdl_list.go Vedi File

@@ -0,0 +1,36 @@
package user_real_name

import (
"applet/app/svc/user_real_name"
"github.com/gin-gonic/gin"
)

// List
// @Summary 基本设置-实名认证列表
// @Tags 基本设置
// @Description 基本设置-实名认证列表
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserRealNameReq true "(分页信息必填)"
// @Success 200 {object} md.UserRealNameResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/userRealName/list [post]
func List(c *gin.Context) {
user_real_name.List(c)
}

// Save
// @Summary 基本设置-实名认证-修改认证状态
// @Tags 基本设置
// @Description 基本设置-修改认证状态
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserRealNameSaveReq true "(分页信息必填)"
// @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/userRealName/save [post]
func Save(c *gin.Context) {
user_real_name.Save(c)
}

+ 2
- 0
app/md/md_article.go Vedi File

@@ -34,6 +34,7 @@ type ArticleListReq struct {
type ArticleListResp struct {
Total int64 `json:"total"`
SelectData []map[string]interface{} `json:"select_data"`
CateData []map[string]interface{} `json:"cate_data"`
List []ArticleList `json:"list"`
}
type ArticleList struct {
@@ -46,6 +47,7 @@ type ArticleList struct {
CoverUrl string `json:"cover_url"`
IsShow string `json:"is_show"`
Sort string `json:"sort"`
Url string `json:"url"`
}
type ArticleSaveReq struct {
Id string `json:"id"`


+ 1
- 0
app/md/md_cloud_bundle.go Vedi File

@@ -89,6 +89,7 @@ type CloudBundleVersion struct {
type CloudBundleVersionMap struct {
Type string `json:"type"`
Name string `json:"name"`
Img string `json:"img"`
}
type CloudBundleVersionResp struct {
Version []CloudBundleVersion `json:"version"`


+ 33
- 0
app/md/md_user_real_name.go Vedi File

@@ -0,0 +1,33 @@
package md

type UserRealNameReq struct {
Uid string `json:"uid"`
Phone string `json:"phone"`
Name string `json:"name"`
IdNo string `json:"id_no"`
Page string `json:"page"`
Limit string `json:"limit"`
State string `json:"state"`
}
type UserRealNameResp struct {
Total int64 `json:"total"`
List []UserRealName `json:"list"`
SelectData []map[string]string `json:"select_data"`
}
type UserRealName struct {
Id string `json:"id"`
Uid string `json:"uid"`
Phone string `json:"phone"`
Name string `json:"name"`
IdNo string `json:"id_no"`
PayState string `json:"pay_state" example:"0未支付 1已支付"`
State string `json:"state" example:"0未申请 1申请通过 3申请失败"`
}
type UserRealNameSaveReq struct {
Id string `json:"id"`
State string `json:"state"`
}

type UserRealNameBaseResp struct {
UserRealNameMoney string `json:"user_real_name_money" example:"实名认证费用" `
}

+ 10
- 2
app/router/router.go Vedi File

@@ -17,6 +17,7 @@ import (
"applet/app/hdl/notice"
"applet/app/hdl/setCenter/oss/aliyun"
"applet/app/hdl/user_feedback"
"applet/app/hdl/user_real_name"
"applet/app/mw"
_ "applet/docs"
"github.com/gin-gonic/gin"
@@ -83,7 +84,8 @@ func route(r *gin.RouterGroup) {
rNotice(r.Group("/notice"))
rArticle(r.Group("/article"))
rUserFeedback(r.Group("/userFeedback"))
rCloudBundle(r.Group("/cloudBundle")) //云打包
rCloudBundle(r.Group("/cloudBundle")) //云打包
rUserRealName(r.Group("/userRealName")) //实名认证
}

func rSettCenter(r *gin.RouterGroup) { //设置中心
@@ -175,6 +177,12 @@ func rCloudBundle(r *gin.RouterGroup) { //云打包
r.GET("/version/base", cloud_bundle.VersionBase)
r.POST("/version/base/save", cloud_bundle.VersionBaseSave)
}
func rUserRealName(r *gin.RouterGroup) { //实名认证
r.POST("/list", user_real_name.List)
r.POST("/save", user_real_name.Save)
r.GET("/base", user_real_name.Base)
r.POST("/base/save", user_real_name.BaseSave)
}
func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
rPublicPlatoon := r.Group("/publicPlatoon") //公排设置
{
@@ -322,7 +330,7 @@ func rFinancialCenter(r *gin.RouterGroup) {
{
rWithdraw.GET("/setting", financial_center.GetWithdrawSetting)
rWithdraw.POST("/updateWithdrawSetting", financial_center.UpdateWithdrawSetting)
rWithdraw.GET("/applyList", financial_center.GetWithdrawApplyList)
rWithdraw.POST("/applyList", financial_center.GetWithdrawApplyList)
}
}



+ 14
- 0
app/svc/article/svc_list.go Vedi File

@@ -8,6 +8,7 @@ import (
"applet/app/utils"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"fmt"
"github.com/gin-gonic/gin"
"time"
)
@@ -40,10 +41,22 @@ func List(c *gin.Context) {
}
list = append(list, tmp1)
}
tmp["list"] = list
}
resp.SelectData = append(resp.SelectData, tmp)
}
}
resp.CateData = make([]map[string]interface{}, 0)
cate, _, _ := NewArticleCateDb.FindArticleCateAndTotalPid("1", "100")
if cate != nil {
for _, v := range *cate {
list := make([]map[string]string, 0)
tmp := map[string]interface{}{
"name": v.Name, "value": utils.IntToStr(v.Id), "list": list,
}
resp.CateData = append(resp.CateData, tmp)
}
}
if notice != nil {
for _, v := range *notice {
tmp := md.ArticleList{
@@ -56,6 +69,7 @@ func List(c *gin.Context) {
Sort: utils.IntToStr(v.Sort),
IsShow: utils.IntToStr(v.IsShow),
Pid: utils.IntToStr(v.Pid),
Url: fmt.Sprintf("%s%s?id=%s&is_hide=0", svc.GetSysCfgStr("wap_host"), "/#/pages/course-detail-page/course-detail-page", utils.AnyToString(v.Id)),
}
noticeList = append(noticeList, tmp)
}


+ 31
- 0
app/svc/user_real_name/svc_base.go Vedi File

@@ -0,0 +1,31 @@
package user_real_name

import (
"applet/app/db"
"applet/app/e"
"applet/app/md"
"applet/app/svc"
"applet/app/utils/cache"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"github.com/gin-gonic/gin"
)

func Base(c *gin.Context) {
res := md.UserRealNameBaseResp{
UserRealNameMoney: svc.GetSysCfgStr("user_real_name_money"),
}
e.OutSuc(c, res, nil)
return
}
func BaseSave(c *gin.Context) {
var req md.UserRealNameBaseResp
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err)
return
}
conn := cache.GetPool().Get()
cfgDb := implement.NewSysCfgDb(db.Db, conn)
cfgDb.SysCfgUpdate("user_real_name_money", req.UserRealNameMoney)
e.OutSuc(c, "success", nil)
return
}

+ 82
- 0
app/svc/user_real_name/svc_list.go Vedi File

@@ -0,0 +1,82 @@
package user_real_name

import (
"applet/app/db"
"applet/app/e"
"applet/app/md"
"applet/app/utils"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"github.com/gin-gonic/gin"
)

func List(c *gin.Context) {
var req *md.UserRealNameReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err)
return
}
if req.Phone != "" {
req.Uid = "-1"
NewUserDb := implement.NewUserDb(db.Db)
user, _ := NewUserDb.UserGetOneByParams(map[string]interface{}{
"key": "phone",
"value": req.Phone,
})
if user != nil {
req.Uid = utils.Int64ToStr(user.Id)
}
}
var resp md.UserRealNameResp
noticeList := make([]md.UserRealName, 0)
NewCloudBundleDb := implement.NewUserRealNameAuthDb(db.Db)
notice, total, _ := NewCloudBundleDb.FindRealNameAndTotal(req.Page, req.Limit, req.Uid, req.Name, req.IdNo, req.State)
resp.Total = total
if notice != nil {
NewUserDb := implement.NewUserDb(db.Db)
for _, v := range *notice {
phone := ""
user, _ := NewUserDb.UserGetOneByParams(map[string]interface{}{
"key": "id",
"value": v.Uid,
})
if user != nil {
phone = user.Phone
}
tmp := md.UserRealName{
Id: utils.IntToStr(v.Id),
Uid: utils.IntToStr(v.Uid),
Phone: phone,
Name: v.RealName,
IdNo: v.CardNo,
PayState: utils.IntToStr(v.IsPay),
State: utils.IntToStr(v.State),
}
noticeList = append(noticeList, tmp)
}
}
resp.List = noticeList
resp.SelectData = []map[string]string{
{"value": "0", "name": "未认证"},
{"value": "1", "name": "认证成功"},
{"value": "2", "name": "认证失败"},
}
e.OutSuc(c, resp, nil)
return
}
func Save(c *gin.Context) {
var req *md.UserRealNameSaveReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err)
return
}
NewUserRealNameAuthDb := implement.NewUserRealNameAuthDb(db.Db)
data, _ := NewUserRealNameAuthDb.GetRealNameAuthById(req.Id)
if data == nil {
e.OutErr(c, 400, e.NewErr(400, "记录不存在"))
return
}
data.State = utils.StrToInt(req.State)
db.Db.Where("id=?", data.Id).Cols("state").Update(data)
e.OutSuc(c, "success", nil)
return
}

+ 339
- 9
docs/docs.go Vedi 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"
@@ -1352,7 +1353,9 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -6242,6 +6245,185 @@ const docTemplate = `{
}
}
},
"/api/userRealName/base": {
"get": {
"description": "基本设置-实名认证",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-基本配置",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserRealNameBaseResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/base/save": {
"post": {
"description": "基本设置-实名认证-基本配置保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-基本配置保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameBaseResp"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/list": {
"post": {
"description": "基本设置-实名认证列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserRealNameResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/save": {
"post": {
"description": "基本设置-修改认证状态",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-修改认证状态",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/user_feedback/cate/del": {
"post": {
"description": "分类列表-分类删除",
@@ -7287,6 +7469,9 @@ const docTemplate = `{
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
@@ -7306,6 +7491,13 @@ const docTemplate = `{
"md.ArticleListResp": {
"type": "object",
"properties": {
"cate_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"list": {
"type": "array",
"items": {
@@ -7757,6 +7949,9 @@ const docTemplate = `{
"md.CloudBundleVersionMap": {
"type": "object",
"properties": {
"img": {
"type": "string"
},
"name": {
"type": "string"
},
@@ -9215,7 +9410,11 @@ const docTemplate = `{
},
"withdraw_fee_set": {
"description": "提现手续费设置",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawFeeSetStruct"
}
]
},
"withdraw_multiple_limit": {
"description": "提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )",
@@ -9227,7 +9426,11 @@ const docTemplate = `{
},
"withdraw_time_interval": {
"description": "提现时段",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawTimeIntervalStruct"
}
]
},
"withdraw_type": {
"description": "提现方式(1:支付宝 2:微信)",
@@ -11106,7 +11309,11 @@ const docTemplate = `{
},
"withdraw_fee_set": {
"description": "提现手续费设置",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawFeeSetStruct"
}
]
},
"withdraw_multiple_limit": {
"description": "提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )",
@@ -11117,8 +11324,12 @@ const docTemplate = `{
"type": "integer"
},
"withdraw_time_interval": {
"description": "提现时段",
"type": "string"
"description": "提现时段(startAt xx:xx endAt xx:xx)",
"allOf": [
{
"$ref": "#/definitions/md.WithdrawTimeIntervalStruct"
}
]
},
"withdraw_type": {
"description": "提现方式(1:支付宝 2:微信)",
@@ -12058,6 +12269,103 @@ const docTemplate = `{
}
}
},
"md.UserRealName": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"id_no": {
"type": "string"
},
"name": {
"type": "string"
},
"pay_state": {
"type": "string",
"example": "0未支付 1已支付"
},
"phone": {
"type": "string"
},
"state": {
"type": "string",
"example": "0未申请 1申请通过 3申请失败"
},
"uid": {
"type": "string"
}
}
},
"md.UserRealNameBaseResp": {
"type": "object",
"properties": {
"user_real_name_money": {
"type": "string",
"example": "实名认证费用"
}
}
},
"md.UserRealNameReq": {
"type": "object",
"properties": {
"id_no": {
"type": "string"
},
"limit": {
"type": "string"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"phone": {
"type": "string"
},
"state": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"md.UserRealNameResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.UserRealName"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
},
"md.UserRealNameSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"md.UserVirtualCoinFlow": {
"type": "object",
"properties": {
@@ -12238,6 +12546,19 @@ const docTemplate = `{
}
}
},
"md.WithdrawFeeSetStruct": {
"type": "object",
"properties": {
"duration": {
"description": "类型 (1.固定金额 2.固定比例)",
"type": "integer"
},
"value": {
"description": "具体值",
"type": "integer"
}
}
},
"md.WithdrawFrequencySettingStruct": {
"type": "object",
"properties": {
@@ -12254,6 +12575,17 @@ const docTemplate = `{
}
}
},
"md.WithdrawTimeIntervalStruct": {
"type": "object",
"properties": {
"end_at": {
"type": "string"
},
"start_at": {
"type": "string"
}
}
},
"model.EggEnergyUserEggIndexWeight": {
"type": "object",
"properties": {
@@ -12385,8 +12717,6 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 337
- 6
docs/swagger.json Vedi File

@@ -1345,7 +1345,9 @@
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -6235,6 +6237,185 @@
}
}
},
"/api/userRealName/base": {
"get": {
"description": "基本设置-实名认证",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-基本配置",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserRealNameBaseResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/base/save": {
"post": {
"description": "基本设置-实名认证-基本配置保存",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-基本配置保存",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameBaseResp"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/list": {
"post": {
"description": "基本设置-实名认证列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserRealNameResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/userRealName/save": {
"post": {
"description": "基本设置-修改认证状态",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"基本设置"
],
"summary": "基本设置-实名认证-修改认证状态",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "(分页信息必填)",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.UserRealNameSaveReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/user_feedback/cate/del": {
"post": {
"description": "分类列表-分类删除",
@@ -7280,6 +7461,9 @@
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
@@ -7299,6 +7483,13 @@
"md.ArticleListResp": {
"type": "object",
"properties": {
"cate_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"list": {
"type": "array",
"items": {
@@ -7750,6 +7941,9 @@
"md.CloudBundleVersionMap": {
"type": "object",
"properties": {
"img": {
"type": "string"
},
"name": {
"type": "string"
},
@@ -9208,7 +9402,11 @@
},
"withdraw_fee_set": {
"description": "提现手续费设置",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawFeeSetStruct"
}
]
},
"withdraw_multiple_limit": {
"description": "提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )",
@@ -9220,7 +9418,11 @@
},
"withdraw_time_interval": {
"description": "提现时段",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawTimeIntervalStruct"
}
]
},
"withdraw_type": {
"description": "提现方式(1:支付宝 2:微信)",
@@ -11099,7 +11301,11 @@
},
"withdraw_fee_set": {
"description": "提现手续费设置",
"type": "string"
"allOf": [
{
"$ref": "#/definitions/md.WithdrawFeeSetStruct"
}
]
},
"withdraw_multiple_limit": {
"description": "提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )",
@@ -11110,8 +11316,12 @@
"type": "integer"
},
"withdraw_time_interval": {
"description": "提现时段",
"type": "string"
"description": "提现时段(startAt xx:xx endAt xx:xx)",
"allOf": [
{
"$ref": "#/definitions/md.WithdrawTimeIntervalStruct"
}
]
},
"withdraw_type": {
"description": "提现方式(1:支付宝 2:微信)",
@@ -12051,6 +12261,103 @@
}
}
},
"md.UserRealName": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"id_no": {
"type": "string"
},
"name": {
"type": "string"
},
"pay_state": {
"type": "string",
"example": "0未支付 1已支付"
},
"phone": {
"type": "string"
},
"state": {
"type": "string",
"example": "0未申请 1申请通过 3申请失败"
},
"uid": {
"type": "string"
}
}
},
"md.UserRealNameBaseResp": {
"type": "object",
"properties": {
"user_real_name_money": {
"type": "string",
"example": "实名认证费用"
}
}
},
"md.UserRealNameReq": {
"type": "object",
"properties": {
"id_no": {
"type": "string"
},
"limit": {
"type": "string"
},
"name": {
"type": "string"
},
"page": {
"type": "string"
},
"phone": {
"type": "string"
},
"state": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"md.UserRealNameResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.UserRealName"
}
},
"select_data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"total": {
"type": "integer"
}
}
},
"md.UserRealNameSaveReq": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"md.UserVirtualCoinFlow": {
"type": "object",
"properties": {
@@ -12231,6 +12538,19 @@
}
}
},
"md.WithdrawFeeSetStruct": {
"type": "object",
"properties": {
"duration": {
"description": "类型 (1.固定金额 2.固定比例)",
"type": "integer"
},
"value": {
"description": "具体值",
"type": "integer"
}
}
},
"md.WithdrawFrequencySettingStruct": {
"type": "object",
"properties": {
@@ -12247,6 +12567,17 @@
}
}
},
"md.WithdrawTimeIntervalStruct": {
"type": "object",
"properties": {
"end_at": {
"type": "string"
},
"start_at": {
"type": "string"
}
}
},
"model.EggEnergyUserEggIndexWeight": {
"type": "object",
"properties": {


+ 218
- 6
docs/swagger.yaml Vedi File

@@ -658,6 +658,8 @@ definitions:
type: string
title:
type: string
url:
type: string
type: object
md.ArticleListReq:
properties:
@@ -670,6 +672,11 @@ definitions:
type: object
md.ArticleListResp:
properties:
cate_data:
items:
additionalProperties: true
type: object
type: array
list:
items:
$ref: '#/definitions/md.ArticleList'
@@ -978,6 +985,8 @@ definitions:
type: object
md.CloudBundleVersionMap:
properties:
img:
type: string
name:
type: string
type:
@@ -1990,8 +1999,9 @@ definitions:
description: 提现金额限制(0为不限制,大于等于该金额才可以申请提现 )
type: string
withdraw_fee_set:
allOf:
- $ref: '#/definitions/md.WithdrawFeeSetStruct'
description: 提现手续费设置
type: string
withdraw_multiple_limit:
description: 提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )
type: string
@@ -1999,8 +2009,9 @@ definitions:
description: 提现次数限制(对应上方设置周期,0为不限制,失败、驳回不计数 )
type: integer
withdraw_time_interval:
allOf:
- $ref: '#/definitions/md.WithdrawTimeIntervalStruct'
description: 提现时段
type: string
withdraw_type:
description: 提现方式(1:支付宝 2:微信)
type: integer
@@ -3313,8 +3324,9 @@ definitions:
description: 提现金额限制(0为不限制,大于等于该金额才可以申请提现 )
type: string
withdraw_fee_set:
allOf:
- $ref: '#/definitions/md.WithdrawFeeSetStruct'
description: 提现手续费设置
type: string
withdraw_multiple_limit:
description: 提现倍数限制(0为不限制,金额限制倍数才可以申请提现 )
type: string
@@ -3322,8 +3334,9 @@ definitions:
description: 提现次数限制(对应上方设置周期,0为不限制,失败、驳回不计数 )
type: integer
withdraw_time_interval:
description: 提现时段
type: string
allOf:
- $ref: '#/definitions/md.WithdrawTimeIntervalStruct'
description: 提现时段(startAt xx:xx endAt xx:xx)
withdraw_type:
description: 提现方式(1:支付宝 2:微信)
type: integer
@@ -3980,6 +3993,70 @@ definitions:
description: 微信号
type: string
type: object
md.UserRealName:
properties:
id:
type: string
id_no:
type: string
name:
type: string
pay_state:
example: 0未支付 1已支付
type: string
phone:
type: string
state:
example: 0未申请 1申请通过 3申请失败
type: string
uid:
type: string
type: object
md.UserRealNameBaseResp:
properties:
user_real_name_money:
example: 实名认证费用
type: string
type: object
md.UserRealNameReq:
properties:
id_no:
type: string
limit:
type: string
name:
type: string
page:
type: string
phone:
type: string
state:
type: string
uid:
type: string
type: object
md.UserRealNameResp:
properties:
list:
items:
$ref: '#/definitions/md.UserRealName'
type: array
select_data:
items:
additionalProperties:
type: string
type: object
type: array
total:
type: integer
type: object
md.UserRealNameSaveReq:
properties:
id:
type: string
state:
type: string
type: object
md.UserVirtualCoinFlow:
properties:
after_amount:
@@ -4107,6 +4184,15 @@ definitions:
example: 货币类型名称
type: string
type: object
md.WithdrawFeeSetStruct:
properties:
duration:
description: 类型 (1.固定金额 2.固定比例)
type: integer
value:
description: 具体值
type: integer
type: object
md.WithdrawFrequencySettingStruct:
properties:
duration:
@@ -4118,6 +4204,13 @@ definitions:
type: string
type: array
type: object
md.WithdrawTimeIntervalStruct:
properties:
end_at:
type: string
start_at:
type: string
type: object
model.EggEnergyUserEggIndexWeight:
properties:
account_balance_exchange_egg_energy_nums:
@@ -5078,7 +5171,8 @@ paths:
in: body
name: req
required: true
schema: {}
schema:
type: object
produces:
- application/json
responses:
@@ -8375,6 +8469,124 @@ paths:
summary: 用户反馈-反馈列表-沟通发送
tags:
- 消息中心
/api/userRealName/base:
get:
consumes:
- application/json
description: 基本设置-实名认证
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.UserRealNameBaseResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 基本设置-实名认证-基本配置
tags:
- 基本设置
/api/userRealName/base/save:
post:
consumes:
- application/json
description: 基本设置-实名认证-基本配置保存
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: (分页信息必填)
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.UserRealNameBaseResp'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 基本设置-实名认证-基本配置保存
tags:
- 基本设置
/api/userRealName/list:
post:
consumes:
- application/json
description: 基本设置-实名认证列表
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: (分页信息必填)
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.UserRealNameReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.UserRealNameResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 基本设置-实名认证列表
tags:
- 基本设置
/api/userRealName/save:
post:
consumes:
- application/json
description: 基本设置-修改认证状态
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: (分页信息必填)
in: body
name: req
required: true
schema:
$ref: '#/definitions/md.UserRealNameSaveReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 基本设置-实名认证-修改认证状态
tags:
- 基本设置
securityDefinitions:
MasterID:
in: header


+ 5
- 3
go.mod Vedi File

@@ -1,6 +1,8 @@
module applet

go 1.19
go 1.21

toolchain go1.21.13

// replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models

@@ -32,8 +34,8 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241128102555-fc839292d728
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241128115447-7e6ca58dd32a
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241129055230-e9cbd65b0bfb
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241129035757-6f22c03e842e
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5
github.com/360EntSecGroup-Skylar/excelize v1.4.1


Caricamento…
Annulla
Salva