|
@@ -35,27 +35,6 @@ public class TempLittleArtistTrainingCampController extends BaseController {
|
|
|
@Resource
|
|
|
private TempLittleArtistTrainingCampUserRelationService tempLittleArtistTrainingCampUserRelationService;
|
|
|
|
|
|
- @ApiOperation("添加训练营")
|
|
|
- @PostMapping(value = "/add")
|
|
|
- public HttpResponseResult<Object> add(@Valid @RequestBody TempLittleArtistTrainingCampDto dto) {
|
|
|
- tempLittleArtistTrainingCampService.add(dto);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation("修改训练营")
|
|
|
- @PostMapping(value = "/update")
|
|
|
- public HttpResponseResult<Object> update(@Valid @RequestBody TempLittleArtistTrainingCampDto dto) {
|
|
|
- tempLittleArtistTrainingCampService.update(dto);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation("修改机构启用停用状态")
|
|
|
- @GetMapping(value = "/delete/{id}")
|
|
|
- public HttpResponseResult<Object> opsState(@ApiParam(value = "训练营ID", required = true) @PathVariable("id") Integer id) {
|
|
|
- tempLittleArtistTrainingCampService.delete(id);
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "name", dataType = "String", value = "训练营标题-模糊搜索"),
|
|
|
@ApiImplicitParam(name = "state", dataType = "String", value = "筹备中 READY,报名中 APPLY,未开始 NOT_START,进行中 ING,已结束 END"),
|
|
@@ -73,18 +52,6 @@ public class TempLittleArtistTrainingCampController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "search", dataType = "String", value = "学员姓名/手机号/编号-模糊搜索"),
|
|
|
- @ApiImplicitParam(name = "state", dataType = "String", value = "状态:未报名NOT_APPLY ,已报名 APPLY"),
|
|
|
- @ApiImplicitParam(name = "page", dataType = "Integer", required = true, value = "页数"),
|
|
|
- @ApiImplicitParam(name = "rows", dataType = "Integer", required = true, value = "每页数量"),
|
|
|
- })
|
|
|
- @ApiOperation("分页查询-参与名单")
|
|
|
- @PostMapping(value = "/queryPageTrainingCampUser")
|
|
|
- public HttpResponseResult<PageInfo<TempCampUserVo>> queryPageTrainingCampUser(@RequestBody Map<String, Object> param) {
|
|
|
- return succeed(tempLittleArtistTrainingCampService.queryPageTrainingCampUser(param));
|
|
|
- }
|
|
|
-
|
|
|
- @ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "userId", dataType = "Integer", required = true, value = "用户id"),
|
|
|
})
|
|
|
@ApiOperation("查询指定学生-训练营每日训练时长")
|
|
@@ -96,6 +63,7 @@ public class TempLittleArtistTrainingCampController extends BaseController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "search", dataType = "String", value = "学员姓名/手机号/编号-模糊搜索"),
|
|
|
@ApiImplicitParam(name = "imGroupId", dataType = "Integer", value = "所在群组Id"),
|
|
|
+ @ApiImplicitParam(name = "campId", dataType = "Integer", value = "训练营id"),
|
|
|
@ApiImplicitParam(name = "page", dataType = "Integer", required = true, value = "页数"),
|
|
|
@ApiImplicitParam(name = "rows", dataType = "Integer", required = true, value = "每页数量"),
|
|
|
})
|
|
@@ -105,12 +73,6 @@ public class TempLittleArtistTrainingCampController extends BaseController {
|
|
|
return succeed(tempLittleArtistTrainingCampService.queryUserTrainingDetail(param));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("根据群组Id查询群组信息")
|
|
|
- @GetMapping(value = "/queryCampImGroup")
|
|
|
- public HttpResponseResult<List<ImGroup>> queryCampImGroup(@ApiParam(value = "群组id,多个用逗号隔开 imGroupIds", required = true) String imGroupIds){
|
|
|
- return succeed(tempLittleArtistTrainingCampService.queryCampImGroup(imGroupIds));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 查询训练营周期表
|
|
|
*
|