diff --git a/ms-biz/src/main/java/com/ms/api/TaskService.java b/ms-biz/src/main/java/com/ms/api/TaskService.java new file mode 100644 index 00000000..babb8bf2 --- /dev/null +++ b/ms-biz/src/main/java/com/ms/api/TaskService.java @@ -0,0 +1,27 @@ +package com.ms.api; + +import com.jinritemai.cloud.base.api.BaseRequest; +import com.jinritemai.cloud.base.api.BaseResponse; +import com.jinritemai.cloud.base.api.ExtensionService; +import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import lombok.extern.slf4j.Slf4j; + +/** + * @Author: laixw + * @Date: 2023/8/23 + */ +@ExtensionService("TaskRun") +@Slf4j +public class TaskService implements ExtensionServiceHandler { + @Override + public BaseResponse handle(BaseRequest req) { + + // 业务逻辑处理 + // do something... + // db.save(itemDTO); + log.info("TaskService..."); + + return BaseResponse.builder() + .build(); + } +}