@@ -55,6 +55,7 @@ func GetWithdrawSetting(c *gin.Context) { | |||
WithdrawMultipleLimit: "", | |||
IsSupportDecimalPoint: 0, | |||
IsAuto: 0, | |||
IsAutoAmountLimit: "", | |||
WithdrawTimeInterval: "00:00-00:00", | |||
WithdrawFeeSet: withdrawFeeSetStr, | |||
CreateAt: now.Format("2006-01-02 15:04:05"), | |||
@@ -92,6 +93,7 @@ func GetWithdrawSetting(c *gin.Context) { | |||
WithdrawMultipleLimit: setting.WithdrawMultipleLimit, | |||
IsSupportDecimalPoint: setting.IsSupportDecimalPoint, | |||
IsAuto: setting.IsAuto, | |||
IsAutoAmountLimit: setting.IsAutoAmountLimit, | |||
WithdrawTimeInterval: withdrawTimeInterval, | |||
WithdrawFeeSet: withdrawFeeSet, | |||
CreateAt: setting.CreateAt, | |||
@@ -135,11 +137,12 @@ func UpdateWithdrawSetting(c *gin.Context) { | |||
WithdrawMultipleLimit: req.WithdrawMultipleLimit, | |||
IsSupportDecimalPoint: req.IsSupportDecimalPoint, | |||
IsAuto: req.IsAuto, | |||
IsAutoAmountLimit: req.IsAutoAmountLimit, | |||
WithdrawTimeInterval: withdrawTimeIntervalStr, | |||
WithdrawFeeSet: withdrawFeeSetStr, | |||
} | |||
forceColumns := []string{"withdraw_type", "is_real_name", "withdraw_nums_limit", "withdraw_amount_limit", "withdraw_multiple_limit", "is_support_decimal_point", "is_auto"} | |||
forceColumns := []string{"withdraw_type", "is_real_name", "withdraw_nums_limit", "withdraw_amount_limit", "withdraw_multiple_limit", "is_support_decimal_point", "is_auto", ""} | |||
settingDb := implement.NewFinWithdrawSettingDb(db.Db) | |||
affected, err := settingDb.FinWithdrawSettingUpdate(req.Id, &m, forceColumns...) | |||
if err != nil { | |||
@@ -19,6 +19,7 @@ type GetWithdrawSettingResp struct { | |||
WithdrawMultipleLimit string `json:"withdraw_multiple_limit"` // 提现倍数限制(0为不限制,金额限制倍数才可以申请提现 ) | |||
IsSupportDecimalPoint int `json:"is_support_decimal_point"` // 是否支持小数点(0:否 1:是) | |||
IsAuto int `json:"is_auto"` // 是否开启自动提现(0:否 1:是) | |||
IsAutoAmountLimit string `json:"is_auto_amount_limit"` // 自动提现金额限制 | |||
WithdrawTimeInterval md.WithdrawTimeIntervalStruct `json:"withdraw_time_interval"` // 提现时段 | |||
WithdrawFeeSet md.WithdrawFeeSetStruct `json:"withdraw_fee_set"` // 提现手续费设置 | |||
CreateAt string `json:"create_at"` // 申请时间 | |||
@@ -36,6 +37,7 @@ type UpdateWithdrawSettingReq struct { | |||
WithdrawMultipleLimit string `json:"withdraw_multiple_limit"` // 提现倍数限制(0为不限制,金额限制倍数才可以申请提现 ) | |||
IsSupportDecimalPoint int `json:"is_support_decimal_point"` // 是否支持小数点(0:否 1:是) | |||
IsAuto int `json:"is_auto"` // 是否开启自动提现(0:否 1:是) | |||
IsAutoAmountLimit string `json:"is_auto_amount_limit"` // 自动提现金额限制 | |||
WithdrawTimeInterval md.WithdrawTimeIntervalStruct `json:"withdraw_time_interval"` // 提现时段(startAt xx:xx endAt xx:xx) | |||
WithdrawFeeSet md.WithdrawFeeSetStruct `json:"withdraw_fee_set"` // 提现手续费设置 | |||
} | |||
@@ -1,5 +1,4 @@ | |||
// Code generated by swaggo/swag. DO NOT EDIT. | |||
// Package docs Code generated by swaggo/swag. DO NOT EDIT | |||
package docs | |||
import "github.com/swaggo/swag" | |||
@@ -1353,9 +1352,7 @@ const docTemplate = `{ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"type": "object" | |||
} | |||
"schema": {} | |||
} | |||
], | |||
"responses": { | |||
@@ -9388,6 +9385,10 @@ const docTemplate = `{ | |||
"description": "是否开启自动提现(0:否 1:是)", | |||
"type": "integer" | |||
}, | |||
"is_auto_amount_limit": { | |||
"description": "自动提现金额限制", | |||
"type": "string" | |||
}, | |||
"is_real_name": { | |||
"description": "是否实名(0:否 1:是)", | |||
"type": "integer" | |||
@@ -11291,6 +11292,10 @@ const docTemplate = `{ | |||
"description": "是否开启自动提现(0:否 1:是)", | |||
"type": "integer" | |||
}, | |||
"is_auto_amount_limit": { | |||
"description": "自动提现金额限制", | |||
"type": "integer" | |||
}, | |||
"is_real_name": { | |||
"description": "是否实名(0:否 1:是)", | |||
"type": "integer" | |||
@@ -12721,6 +12726,8 @@ var SwaggerInfo = &swag.Spec{ | |||
Description: "管理后台接口文档", | |||
InfoInstanceName: "swagger", | |||
SwaggerTemplate: docTemplate, | |||
LeftDelim: "{{", | |||
RightDelim: "}}", | |||
} | |||
func init() { | |||
@@ -1345,9 +1345,7 @@ | |||
"name": "req", | |||
"in": "body", | |||
"required": true, | |||
"schema": { | |||
"type": "object" | |||
} | |||
"schema": {} | |||
} | |||
], | |||
"responses": { | |||
@@ -9380,6 +9378,10 @@ | |||
"description": "是否开启自动提现(0:否 1:是)", | |||
"type": "integer" | |||
}, | |||
"is_auto_amount_limit": { | |||
"description": "自动提现金额限制", | |||
"type": "string" | |||
}, | |||
"is_real_name": { | |||
"description": "是否实名(0:否 1:是)", | |||
"type": "integer" | |||
@@ -11283,6 +11285,10 @@ | |||
"description": "是否开启自动提现(0:否 1:是)", | |||
"type": "integer" | |||
}, | |||
"is_auto_amount_limit": { | |||
"description": "自动提现金额限制", | |||
"type": "integer" | |||
}, | |||
"is_real_name": { | |||
"description": "是否实名(0:否 1:是)", | |||
"type": "integer" | |||
@@ -1983,6 +1983,9 @@ definitions: | |||
is_auto: | |||
description: 是否开启自动提现(0:否 1:是) | |||
type: integer | |||
is_auto_amount_limit: | |||
description: 自动提现金额限制 | |||
type: string | |||
is_real_name: | |||
description: 是否实名(0:否 1:是) | |||
type: integer | |||
@@ -3311,6 +3314,9 @@ definitions: | |||
is_auto: | |||
description: 是否开启自动提现(0:否 1:是) | |||
type: integer | |||
is_auto_amount_limit: | |||
description: 自动提现金额限制 | |||
type: integer | |||
is_real_name: | |||
description: 是否实名(0:否 1:是) | |||
type: integer | |||
@@ -5174,8 +5180,7 @@ paths: | |||
in: body | |||
name: req | |||
required: true | |||
schema: | |||
type: object | |||
schema: {} | |||
produces: | |||
- application/json | |||
responses: | |||