shenjiachi 1 settimana fa
parent
commit
69607f4299
6 ha cambiato i file con 29 aggiunte e 1 eliminazioni
  1. +4
    -0
      app/hdl/financial_center/hdl_withdraw.go
  2. +2
    -0
      app/md/financial_center/md_withdraw.go
  3. +8
    -0
      docs/docs.go
  4. +8
    -0
      docs/swagger.json
  5. +6
    -0
      docs/swagger.yaml
  6. +1
    -1
      go.mod

+ 4
- 0
app/hdl/financial_center/hdl_withdraw.go Vedi File

@@ -84,11 +84,13 @@ func GetWithdrawSetting(c *gin.Context) {
WithdrawMultipleLimit: "",
IsSupportDecimalPoint: 0,
IsAuto: 0,
IsAutoAmountLimit: "",
WithdrawTimeInterval: "00:00-00:00",
WithdrawFeeSet: withdrawFeeSetStr,
PendingOrdersIsCanApply: 0,
ConditionIsOpen: 0,
FirstWithdrawSet: firstWithdrawSetStr,
Tips: "",
CreateAt: now.Format("2006-01-02 15:04:05"),
}
_, err2 := settingDb.FinWithdrawSettingInsert(&m)
@@ -132,6 +134,7 @@ func GetWithdrawSetting(c *gin.Context) {
PendingOrdersIsCanApply: setting.PendingOrdersIsCanApply,
ConditionIsOpen: setting.ConditionIsOpen,
LevelList: levelsList,
Tips: setting.Tips,
}

e.OutSuc(c, resp, nil)
@@ -199,6 +202,7 @@ func UpdateWithdrawSetting(c *gin.Context) {
PendingOrdersIsCanApply: req.PendingOrdersIsCanApply,
ConditionIsOpen: req.ConditionIsOpen,
FirstWithdrawSet: firstWithdrawSetStr,
Tips: req.Tips,
}

forceColumns := []string{"withdraw_type", "is_real_name", "withdraw_nums_limit",


+ 2
- 0
app/md/financial_center/md_withdraw.go Vedi File

@@ -28,6 +28,7 @@ type GetWithdrawSettingResp struct {
PendingOrdersIsCanApply int `json:"pending_orders_is_can_apply"` // 存在待处理记录是否允许再次申请提现(0:禁止,1:允许)
ConditionIsOpen int `json:"condition_is_open"` // 提现条件是否开启(0:关闭, 1:开启)
LevelList []map[string]interface{} `json:"level_list"` // 会员等级列表
Tips string `json:"tips"` // 提示
}

type UpdateWithdrawSettingReq struct {
@@ -47,6 +48,7 @@ type UpdateWithdrawSettingReq struct {
FirstWithdrawSet md.FirstWithdrawSet `json:"first_withdraw_set"` // 首次提现设置
PendingOrdersIsCanApply int `json:"pending_orders_is_can_apply"` // 存在待处理记录是否允许再次申请提现(0:禁止,1:允许)
ConditionIsOpen int `json:"condition_is_open"` // 提现条件是否开启(0:关闭, 1:开启)
Tips string `json:"tips"` // 提示
}
type GetWithdrawApplyListReq struct {
Uid string `json:"uid"` // 用户 ID


+ 8
- 0
docs/docs.go Vedi File

@@ -12480,6 +12480,10 @@ const docTemplate = `{
"description": "存在待处理记录是否允许再次申请提现(0:禁止,1:允许)",
"type": "integer"
},
"tips": {
"description": "提示",
"type": "string"
},
"vip_level_limit": {
"description": "提现等级限制",
"type": "integer"
@@ -14767,6 +14771,10 @@ const docTemplate = `{
"description": "存在待处理记录是否允许再次申请提现(0:禁止,1:允许)",
"type": "integer"
},
"tips": {
"description": "提示",
"type": "string"
},
"vip_level_limit": {
"description": "提现等级限制",
"type": "integer"


+ 8
- 0
docs/swagger.json Vedi File

@@ -12473,6 +12473,10 @@
"description": "存在待处理记录是否允许再次申请提现(0:禁止,1:允许)",
"type": "integer"
},
"tips": {
"description": "提示",
"type": "string"
},
"vip_level_limit": {
"description": "提现等级限制",
"type": "integer"
@@ -14760,6 +14764,10 @@
"description": "存在待处理记录是否允许再次申请提现(0:禁止,1:允许)",
"type": "integer"
},
"tips": {
"description": "提示",
"type": "string"
},
"vip_level_limit": {
"description": "提现等级限制",
"type": "integer"


+ 6
- 0
docs/swagger.yaml Vedi File

@@ -2483,6 +2483,9 @@ definitions:
pending_orders_is_can_apply:
description: 存在待处理记录是否允许再次申请提现(0:禁止,1:允许)
type: integer
tips:
description: 提示
type: string
vip_level_limit:
description: 提现等级限制
type: integer
@@ -4077,6 +4080,9 @@ definitions:
pending_orders_is_can_apply:
description: 存在待处理记录是否允许再次申请提现(0:禁止,1:允许)
type: integer
tips:
description: 提示
type: string
vip_level_limit:
description: 提现等级限制
type: integer


+ 1
- 1
go.mod Vedi File

@@ -33,7 +33,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241211055111-7c47b67b46d2
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241211070238-446e2e250e20
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241205075006-9c0bf995c788
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


Caricamento…
Annulla
Salva