reload 重命名

This commit is contained in:
kaiyun 2021-10-10 23:19:55 +08:00
parent daa7f47d23
commit da046ba20e
3 changed files with 10 additions and 10 deletions

View File

@ -18,7 +18,7 @@ public class SwaggerTagConst {
public static final String ID_GENERATOR = "基础-ID生成器"; public static final String ID_GENERATOR = "基础-ID生成器";
public static final String SMART_RELOAD = "基础-Reload"; public static final String RELOAD = "基础-Reload";
public static final String TASK_SCHEDULER = "基础-任务调度"; public static final String TASK_SCHEDULER = "基础-任务调度";

View File

@ -19,27 +19,27 @@ import java.util.List;
* @author 开云 * @author 开云
*/ */
@RestController @RestController
@Api(tags = {SwaggerTagConst.Support.SMART_RELOAD}) @Api(tags = {SwaggerTagConst.Support.RELOAD})
public class SmartReloadController extends SupportBaseController { public class ReloadController extends SupportBaseController {
@Autowired @Autowired
private SmartReloadService smartReloadService; private ReloadService reloadService;
@ApiOperation(value = "查询reload列表 by 开云") @ApiOperation(value = "查询reload列表 by 开云")
@GetMapping("/reload/query") @GetMapping("/reload/query")
public ResponseDTO<List<ReloadItemVO>> query() { public ResponseDTO<List<ReloadItemVO>> query() {
return smartReloadService.query(); return reloadService.query();
} }
@ApiOperation(value = "获取reload result by 开云") @ApiOperation(value = "获取reload result by 开云")
@GetMapping("/smartReload/result/{tag}") @GetMapping("/reload/result/{tag}")
public ResponseDTO<List<ReloadResultVO>> queryReloadResult(@PathVariable("tag") String tag) { public ResponseDTO<List<ReloadResultVO>> queryReloadResult(@PathVariable("tag") String tag) {
return smartReloadService.queryReloadItemResult(tag); return reloadService.queryReloadItemResult(tag);
} }
@ApiOperation(value = "通过tag更新标识 by 开云") @ApiOperation(value = "通过tag更新标识 by 开云")
@PostMapping("/smartReload/update") @PostMapping("/reload/update")
public ResponseDTO<String> updateByTag(@RequestBody @Valid ReloadItemUpdateDTO updateDTO) { public ResponseDTO<String> updateByTag(@RequestBody @Valid ReloadItemUpdateDTO updateDTO) {
return smartReloadService.updateByTag(updateDTO); return reloadService.updateByTag(updateDTO);
} }
} }

View File

@ -20,7 +20,7 @@ import java.util.List;
* @author 开云 * @author 开云
*/ */
@Service @Service
public class SmartReloadService { public class ReloadService {
@Autowired @Autowired
private ReloadItemDao reloadItemDao; private ReloadItemDao reloadItemDao;