|
|
@@ -0,0 +1,54 @@
|
|
|
+package com.zhongshu.card.server.core.controller.openAPI;
|
|
|
+
|
|
|
+import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
+import com.github.microservice.auth.security.type.AuthType;
|
|
|
+import com.github.microservice.net.ResultContent;
|
|
|
+import com.zhongshu.card.client.model.base.IDParam;
|
|
|
+import com.zhongshu.card.client.model.project.ProjectSaveParam;
|
|
|
+import com.zhongshu.card.client.model.school.BookInfoAddParam;
|
|
|
+import com.zhongshu.card.client.model.school.BookInfoModel;
|
|
|
+import com.zhongshu.card.client.model.school.BookInfoSearch;
|
|
|
+import com.zhongshu.card.client.service.school.BookInfoService;
|
|
|
+import com.zhongshu.card.client.service.school.NoticeInfoService;
|
|
|
+import com.zhongshu.card.client.type.OrganizationUserType;
|
|
|
+import com.zhongshu.card.server.core.service.user.RoleServiceImpl;
|
|
|
+import io.swagger.v3.oas.annotations.Hidden;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.domain.Page;
|
|
|
+import org.springframework.data.domain.Pageable;
|
|
|
+import org.springframework.data.web.PageableDefault;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author TRX
|
|
|
+ * @date 2024/6/5
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/v1/openAPI/projectManager")
|
|
|
+@Tag(name = "openAPI-项目管理")
|
|
|
+public class ProjectOpenAPIController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ BookInfoService bookInfoService;
|
|
|
+
|
|
|
+ @Operation(summary = "项目添加", description = "项目添加")
|
|
|
+ @RequestMapping(value = "addTeacher", method = {RequestMethod.POST})
|
|
|
+ public ResultContent<BookInfoModel> addTeacher(@RequestBody BookInfoAddParam param) {
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "项目保存", description = "项目保存")
|
|
|
+ @RequestMapping(value = "saveProjectInfo", method = {RequestMethod.POST})
|
|
|
+ public ResultContent saveProjectInfo(@RequestBody @Valid ProjectSaveParam param) {
|
|
|
+ return ResultContent.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|