|
|
|
@@ -79,7 +79,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData list(@ModelAttribute WxWeappInfo weappInfo, Integer pageNum, Integer pageSize) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappController::list"); |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::list"); |
|
|
|
if (null == weappInfo) weappInfo = new WxWeappInfo(); |
|
|
|
weappInfo.setAuthorizationStatus(EnumWxAuthorizationStatus.AUTHORIZED.getCode()); |
|
|
|
weappInfo.setSortColumns(WxAuthorizerInfo.Field.CurrentVersion_DESC); |
|
|
|
@@ -90,7 +90,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation("小程序列表接口") |
|
|
|
@GetMapping("allist") |
|
|
|
public ResultData getList(@ModelAttribute WxWeappInfo weappInfo) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappController::list"); |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::list"); |
|
|
|
if (null == weappInfo) weappInfo = new WxWeappInfo(); |
|
|
|
weappInfo.setSortColumns(WxAuthorizerInfo.Field.CurrentVersion_DESC); |
|
|
|
final List<WxWeappInfo> list = authorizerInfoService.getList(weappInfo); |
|
|
|
@@ -100,6 +100,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation(value = "APPs基础设置(服务器域名、业务域名、基础版本、微信模板)", notes = "{\"apps\":\"appid,appid\",\"type\":\"String\",\"deploy\":\"String\"}") |
|
|
|
@PostMapping("batchBasicSet") |
|
|
|
public ResultData batchSet(@RequestBody Map<String, String> params) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchBasicSet"); |
|
|
|
String appsStr = params.get("apps"); |
|
|
|
String typeStr = params.get("type"); |
|
|
|
String deployStr = params.get("deploy"); |
|
|
|
@@ -239,6 +240,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation(value = "批量,授权的小程序上传code并提交审核", notes = "{\"apps\":\"appid,appid\",\"templateId\":\"String\",\"userVersion\":\"String\",\"userDesc\":\"String\"}") |
|
|
|
@PostMapping("batchCodeCommitAndAudit") |
|
|
|
public ResultData batchExtSet(@RequestBody Map<String, String> params) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchExtSet"); |
|
|
|
String appsStr = params.get("apps"); |
|
|
|
String templateIdStr = params.get("templateId"); |
|
|
|
String userVersion = params.get("userVersion"); |
|
|
|
@@ -343,6 +345,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation(value = "批量审核查询", notes = "{\"apps\":\"appid,appid\"}") |
|
|
|
@PostMapping("batchAuditQuery") |
|
|
|
public ResultData batchAuditQuery(@RequestBody Map<String, String> params) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchAuditQuery"); |
|
|
|
String appsStr = params.get("apps"); |
|
|
|
// 逐一设置app配置 |
|
|
|
String [] apps = appsStr.split(","); |
|
|
|
@@ -385,6 +388,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation(value = "批量审核撤回", notes = "{\"apps\":\"appid,appid\"}") |
|
|
|
@PostMapping("batchAuditCancel") |
|
|
|
public ResultData batchAuditCancel(@RequestBody Map<String, String> params) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchAuditCancel"); |
|
|
|
String appsStr = params.get("apps"); |
|
|
|
// 逐一设置app配置 |
|
|
|
String [] apps = appsStr.split(","); |
|
|
|
@@ -410,6 +414,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation(value = "批量发布", notes = "{\"apps\":\"appid,appid\"}") |
|
|
|
@PostMapping("batchRelease") |
|
|
|
public ResultData batchRelease(@RequestBody Map<String, String> params) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::batchRelease"); |
|
|
|
String appsStr = params.get("apps"); |
|
|
|
// 逐一设置app配置 |
|
|
|
String [] apps = appsStr.split(","); |
|
|
|
@@ -445,7 +450,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData releaseStatusList(@ModelAttribute WxWeappCodeStatusVo weappCodeStatusVo, Integer pageNum, Integer pageSize) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappController::releaseStatusList"); |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::releaseStatusList"); |
|
|
|
if (null == weappCodeStatusVo) { |
|
|
|
weappCodeStatusVo = new WxWeappCodeStatusVo(); |
|
|
|
} else { |
|
|
|
@@ -461,7 +466,7 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
@ApiOperation("小程序发布状态列表接口") |
|
|
|
@GetMapping("releaseStatusAllList") |
|
|
|
public ResultData getReleaseStatusList(@ModelAttribute WxWeappCodeStatusVo weappCodeStatusVo) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappController::releaseStatusAllList"); |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::releaseStatusAllList"); |
|
|
|
if (null == weappCodeStatusVo) { |
|
|
|
weappCodeStatusVo = new WxWeappCodeStatusVo(); |
|
|
|
} else { |
|
|
|
@@ -474,6 +479,14 @@ public class WxWeappInfoController extends BaseController { |
|
|
|
return new ResultData(list); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("小程序发布版本列表") |
|
|
|
@GetMapping("versionList") |
|
|
|
public ResultData getVersionList() { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappInfoController::versionList"); |
|
|
|
final List<String> list = weappCodeStatusService.getVersionList(); |
|
|
|
return new ResultData(list); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|