add config
This commit is contained in:
@@ -98,7 +98,15 @@ service main {
|
||||
@handler AdminGetAgentLinkProductStatistics
|
||||
get /agent-link/product-statistics (AdminGetAgentLinkProductStatisticsReq) returns (AdminGetAgentLinkProductStatisticsResp)
|
||||
|
||||
}
|
||||
// 获取系统配置
|
||||
@handler AdminGetSystemConfig
|
||||
get /system-config (AdminGetSystemConfigResp)
|
||||
|
||||
// 更新系统配置
|
||||
@handler AdminUpdateSystemConfig
|
||||
post /system-config (AdminUpdateSystemConfigReq) returns (AdminUpdateSystemConfigResp)
|
||||
|
||||
}
|
||||
|
||||
type (
|
||||
// 代理分页查询请求
|
||||
@@ -537,4 +545,19 @@ type (
|
||||
Balance float64 `json:"balance"` // 修改后的余额
|
||||
}
|
||||
|
||||
// 更新系统配置请求
|
||||
AdminUpdateSystemConfigReq {
|
||||
CommissionSafeMode *bool `json:"commission_safe_mode,optional"` // 佣金安全防御模式:true-冻结模式,false-直接结算模式
|
||||
}
|
||||
|
||||
// 更新系统配置响应
|
||||
AdminUpdateSystemConfigResp {
|
||||
Success bool `json:"success"` // 是否成功
|
||||
}
|
||||
|
||||
// 获取系统配置响应
|
||||
AdminGetSystemConfigResp {
|
||||
CommissionSafeMode bool `json:"commission_safe_mode"` // 佣金安全防御模式
|
||||
}
|
||||
|
||||
)
|
||||
Reference in New Issue
Block a user