You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
3.5 KiB
169 lines
3.5 KiB
package backend |
|
|
|
import ( |
|
"server/modules/backend/app" |
|
"server/modules/backend/values" |
|
) |
|
|
|
// swagger:route POST /gm/uploadExcel gm idOfUploadExcel |
|
// 修改配置表,postform 提交表单格式,文件必须是excel,字段名"excel" |
|
// Responses: |
|
// 200:UploadExcelResp |
|
|
|
// swagger:response UploadExcelResp |
|
type UploadExcelResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:route POST /gm/uploadExcel/tpRobotOperate gm idOfUploadExcelRobotOperate |
|
// 修改配置表,postform 提交表单格式,文件必须是excel,字段名"excel" |
|
// Responses: |
|
// 200:UploadExcelRobotOperateResp |
|
|
|
// swagger:response UploadExcelRobotOperateResp |
|
type UploadExcelRobotOperateResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:route GET /gm/downloadExcel gm idOfDownloadExcel |
|
// 下载配置表 |
|
// Responses: |
|
// 200:DownloadExcelResp |
|
|
|
// swagger:response DownloadExcelResp |
|
type DownloadExcelResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:route POST /gm/addCoin gm idOfGMAddCoin |
|
// 后台加钱 |
|
// Responses: |
|
// 200:GmAddCoinResp |
|
|
|
// swagger:response GmAddCoinResp |
|
type GmAddCoinResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGMAddCoin |
|
type GmAddCoinReq struct { |
|
// in:body |
|
Body values.GMAddCoinReq |
|
} |
|
|
|
// swagger:route POST /gm/recharge gm idOfGMRecharge |
|
// 后台模拟充值 |
|
// Responses: |
|
// 200:GMRechargeResp |
|
|
|
// swagger:response GMRechargeResp |
|
type GMRechargeResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGMRecharge |
|
type GMRechargeReq struct { |
|
// in:body |
|
Body values.GMRechargeReq |
|
} |
|
|
|
// swagger:route POST /gm/resetSign gm idOfGMResetSign |
|
// 后台重置签到 |
|
// Responses: |
|
// 200:GMResetSignResp |
|
|
|
// swagger:response GMResetSignResp |
|
type GMResetSignResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGMResetSign |
|
type GMResetSignReq struct { |
|
// in:body |
|
Body values.GMResetSignReq |
|
} |
|
|
|
// swagger:route POST /gm/bindPhone gm idOfBindPhone |
|
// 后台绑定手机 |
|
// Responses: |
|
// 200:GMBindPhoneResp |
|
|
|
// swagger:response GMBindPhoneResp |
|
type GMBindPhoneResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfBindPhone |
|
type GMBindPhoneReq struct { |
|
// in:body |
|
Body values.GMBindPhoneReq |
|
} |
|
|
|
// swagger:route POST /gm/unbindPhone gm idOfUnBindPhone |
|
// 后台解除绑定手机 |
|
// Responses: |
|
// 200:GMUnBindPhoneResp |
|
|
|
// swagger:response GMUnBindPhoneResp |
|
type GMUnBindPhoneResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfUnBindPhone |
|
type GMUnBindPhoneReq struct { |
|
// in:body |
|
Body values.GMUnBindPhoneReq |
|
} |
|
|
|
// swagger:route POST /gm/getPhoneCode gm idOfGetPhoneCode |
|
// 后台获取手机验证码 |
|
// Responses: |
|
// 200:GMGetPhoneCodeResp |
|
|
|
// swagger:response GMGetPhoneCodeResp |
|
type GMGetPhoneCodeResp struct { |
|
// in:body |
|
Body values.GMGetPhoneCodeResp |
|
} |
|
|
|
// swagger:parameters idOfGetPhoneCode |
|
type GMGetPhoneCodeReq struct { |
|
// in:body |
|
Body values.GMGetPhoneCodeReq |
|
} |
|
|
|
// swagger:route GET /gm/platform/list gm idOfGMPlatformConfigList |
|
// 获取平台配置 |
|
// Responses: |
|
// 200:GMPlatformConfigListResp |
|
|
|
// swagger:parameters GMPlatformConfigListResp |
|
type GMPlatformConfigListResp struct { |
|
// in:body |
|
Body values.GMConfigPlatformListResp |
|
} |
|
|
|
// swagger:route POST /gm/platform/edit gm idOfGMPlatformConfigEdit |
|
// 修改平台配置 |
|
// Responses: |
|
// 200:GMPlatformConfigEditResp |
|
|
|
// swagger:parameters GMPlatformConfigEditResp |
|
type GMPlatformConfigEditResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGMPlatformConfigEdit |
|
type GMPlatformConfigEditReq struct { |
|
// in:body |
|
Body values.GMConfigPlatformEditReq |
|
}
|
|
|