Optimize the comments and logs of the dynamic console module.

pull/161/head
chen.ma 3 years ago
parent 3e9ce56b51
commit 6faba78bab

@ -9,7 +9,7 @@ import com.github.dynamic.threadpool.config.model.biz.item.ItemRespDTO;
import com.github.dynamic.threadpool.config.model.biz.item.ItemSaveReqDTO; import com.github.dynamic.threadpool.config.model.biz.item.ItemSaveReqDTO;
import com.github.dynamic.threadpool.config.model.biz.item.ItemUpdateReqDTO; import com.github.dynamic.threadpool.config.model.biz.item.ItemUpdateReqDTO;
import com.github.dynamic.threadpool.config.service.biz.ItemService; import com.github.dynamic.threadpool.config.service.biz.ItemService;
import org.springframework.beans.factory.annotation.Autowired; import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
/** /**
@ -19,11 +19,11 @@ import org.springframework.web.bind.annotation.*;
* @date 2021/6/29 21:42 * @date 2021/6/29 21:42
*/ */
@RestController @RestController
@AllArgsConstructor
@RequestMapping(Constants.BASE_PATH + "/item") @RequestMapping(Constants.BASE_PATH + "/item")
public class ItemController { public class ItemController {
@Autowired private final ItemService itemService;
private ItemService itemService;
@PostMapping("/query/page") @PostMapping("/query/page")
public Result<IPage<ItemRespDTO>> queryItemPage(@RequestBody ItemQueryReqDTO reqDTO) { public Result<IPage<ItemRespDTO>> queryItemPage(@RequestBody ItemQueryReqDTO reqDTO) {
@ -52,4 +52,5 @@ public class ItemController {
itemService.deleteItem(tenantId, itemId); itemService.deleteItem(tenantId, itemId);
return Results.success(); return Results.success();
} }
} }

@ -9,21 +9,21 @@ import com.github.dynamic.threadpool.config.model.biz.tenant.TenantRespDTO;
import com.github.dynamic.threadpool.config.model.biz.tenant.TenantSaveReqDTO; import com.github.dynamic.threadpool.config.model.biz.tenant.TenantSaveReqDTO;
import com.github.dynamic.threadpool.config.model.biz.tenant.TenantUpdateReqDTO; import com.github.dynamic.threadpool.config.model.biz.tenant.TenantUpdateReqDTO;
import com.github.dynamic.threadpool.config.service.biz.TenantService; import com.github.dynamic.threadpool.config.service.biz.TenantService;
import org.springframework.beans.factory.annotation.Autowired; import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
/** /**
* Tenant Controller. * Tenant controller.
* *
* @author chen.ma * @author chen.ma
* @date 2021/6/25 18:31 * @date 2021/6/25 18:31
*/ */
@RestController @RestController
@AllArgsConstructor
@RequestMapping(Constants.BASE_PATH + "/tenant") @RequestMapping(Constants.BASE_PATH + "/tenant")
public class TenantController { public class TenantController {
@Autowired private final TenantService tenantService;
private TenantService tenantService;
@PostMapping("/query/page") @PostMapping("/query/page")
public Result<IPage<TenantRespDTO>> queryNameSpacePage(@RequestBody TenantQueryReqDTO reqDTO) { public Result<IPage<TenantRespDTO>> queryNameSpacePage(@RequestBody TenantQueryReqDTO reqDTO) {
@ -52,4 +52,5 @@ public class TenantController {
tenantService.deleteTenantById(tenantId); tenantService.deleteTenantById(tenantId);
return Results.success(); return Results.success();
} }
} }

@ -8,21 +8,24 @@ import com.github.dynamic.threadpool.config.model.biz.threadpool.ThreadPoolQuery
import com.github.dynamic.threadpool.config.model.biz.threadpool.ThreadPoolRespDTO; import com.github.dynamic.threadpool.config.model.biz.threadpool.ThreadPoolRespDTO;
import com.github.dynamic.threadpool.config.model.biz.threadpool.ThreadPoolSaveOrUpdateReqDTO; import com.github.dynamic.threadpool.config.model.biz.threadpool.ThreadPoolSaveOrUpdateReqDTO;
import com.github.dynamic.threadpool.config.service.biz.ThreadPoolService; import com.github.dynamic.threadpool.config.service.biz.ThreadPoolService;
import org.springframework.beans.factory.annotation.Autowired; import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/** /**
* Thread Pool Controller. * Thread pool controller.
* *
* @author chen.ma * @author chen.ma
* @date 2021/6/30 20:54 * @date 2021/6/30 20:54
*/ */
@RestController @RestController
@AllArgsConstructor
@RequestMapping(Constants.BASE_PATH + "/thread") @RequestMapping(Constants.BASE_PATH + "/thread")
public class ThreadPoolController { public class ThreadPoolController {
@Autowired private final ThreadPoolService threadPoolService;
private ThreadPoolService threadPoolService;
@PostMapping("/pool/query/page") @PostMapping("/pool/query/page")
public Result<IPage<ThreadPoolRespDTO>> queryNameSpacePage(@RequestBody ThreadPoolQueryReqDTO reqDTO) { public Result<IPage<ThreadPoolRespDTO>> queryNameSpacePage(@RequestBody ThreadPoolQueryReqDTO reqDTO) {

Loading…
Cancel
Save