From e9641aba89b76d6bb543fdb0bc27c6068a7931ce Mon Sep 17 00:00:00 2001 From: laixiongwei <491201280@qq.com> Date: Wed, 23 Aug 2023 11:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ms/api/TaskService.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ms-biz/src/main/java/com/ms/api/TaskService.java 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(); + } +}