为各服务接口补 /// 中文注释:swagger 恢复中文说明(admin 203 / user 93 / customer 12 / fishgame 4)
This commit is contained in:
@@ -23,7 +23,13 @@ namespace AdminApi.GameConfigs
|
||||
_redisService = redisService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取活动配置
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
/// <summary>
|
||||
/// 获取活动配置
|
||||
/// </summary>
|
||||
[HttpGet("Get")]
|
||||
public async Task<BaseResponse<ActivityConfig>> Get()
|
||||
{
|
||||
@@ -34,6 +40,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<ActivityConfig>("配置不存在");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新活动配置
|
||||
/// </summary>
|
||||
[HttpPost("Update")]
|
||||
public async Task<BaseResponse<string>> Update(ActivityConfig config)
|
||||
{
|
||||
@@ -44,6 +53,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除活动配置
|
||||
/// </summary>
|
||||
[HttpPost("Delete")]
|
||||
public async Task<BaseResponse<string>> Delete()
|
||||
{
|
||||
@@ -54,6 +66,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新战令配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateBattleOrder")]
|
||||
public async Task<BaseResponse<string>> UpdateBattleOrder(BattleOrderConfig config)
|
||||
{
|
||||
@@ -66,6 +81,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新救济金配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateRelief")]
|
||||
public async Task<BaseResponse<string>> UpdateRelief(ReliefConfig config)
|
||||
{
|
||||
@@ -78,6 +96,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新签到池配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateSign")]
|
||||
public async Task<BaseResponse<string>> UpdateSign(SignActivityConfig config)
|
||||
{
|
||||
@@ -90,6 +111,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新金币商城配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateGoldShop")]
|
||||
public async Task<BaseResponse<string>> UpdateGoldShop(List<GoldShopConfig> configs)
|
||||
{
|
||||
@@ -102,6 +126,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新钻石商城配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateDiamondShop")]
|
||||
public async Task<BaseResponse<string>> UpdateDiamondShop(List<DiamondShopConfig> configs)
|
||||
{
|
||||
@@ -114,6 +141,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新注册配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateRegister")]
|
||||
public async Task<BaseResponse<string>> UpdateRegister(RegisterConfig config)
|
||||
{
|
||||
@@ -126,6 +156,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新捕鱼返金币活动配置
|
||||
/// </summary>
|
||||
[HttpPost("UpdateFishingReturn")]
|
||||
public async Task<BaseResponse<string>> UpdateFishingReturn(FishingReturnConfig config)
|
||||
{
|
||||
@@ -138,6 +171,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<string>(res.msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取捕鱼返金币活动配置
|
||||
/// </summary>
|
||||
[HttpGet("GetFishingReturn")]
|
||||
public async Task<BaseResponse<FishingReturnConfig>> GetFishingReturn()
|
||||
{
|
||||
@@ -148,6 +184,9 @@ namespace AdminApi.GameConfigs
|
||||
return this.ToFailResult<FishingReturnConfig>("配置不存在");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存指定板块到 activityconfig.json(将当前 MongoDB 配置写回初始化文件)
|
||||
/// </summary>
|
||||
[HttpGet("SaveSection/{sectionName}")]
|
||||
public async Task<BaseResponse<string>> SaveSection(string sectionName)
|
||||
{
|
||||
@@ -197,6 +236,9 @@ namespace AdminApi.GameConfigs
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出活动配置指定板块为 JSON 文件
|
||||
/// </summary>
|
||||
[HttpGet("ExportSection/{sectionName}")]
|
||||
public async Task<IActionResult> ExportSection(string sectionName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user