|
|
@@ -1,11 +1,12 @@
|
|
|
package cn.seecoder.seecoderportalserver.web.rest;
|
|
|
|
|
|
+import cn.seecoder.seecoderportalcommon.vo.CommunicationVO;
|
|
|
import cn.seecoder.seecoderportalcommon.vo.UserVO;
|
|
|
import cn.seecoder.seecoderportalserver.utility.OkResponse;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author fanyanpeng
|
|
|
@@ -14,8 +15,54 @@ import javax.validation.Valid;
|
|
|
@RestController
|
|
|
@RequestMapping("/api/communication")
|
|
|
public class CommunicationController {
|
|
|
+
|
|
|
@PostMapping("/upload")
|
|
|
public OkResponse<UserVO> uploadCommunicationFile(@RequestParam MultipartFile file) {
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping
|
|
|
+ public OkResponse<List<CommunicationVO>> getAllCommunications(@RequestParam(value = "userId")Integer userId,
|
|
|
+ @RequestParam(value = "page")Integer page,
|
|
|
+ @RequestParam(value = "size")Integer size,
|
|
|
+ @RequestParam(value = "sort")String sort){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping
|
|
|
+ public OkResponse<CommunicationVO> postCommunication(@RequestBody CommunicationVO communicationVO){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/detail/{communicationId}")
|
|
|
+ public OkResponse<CommunicationVO> getCommunicationDetail(@PathVariable(value = "communicationId")Integer communicationId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/{userId}")
|
|
|
+ public OkResponse<List<CommunicationVO>> getUserCommunications(@PathVariable(value = "userId")Integer userId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/star")
|
|
|
+ public OkResponse<Boolean> starCommunication(@RequestParam(value = "userId")Integer userId,
|
|
|
+ @RequestParam(value = "communicationId")Integer communicationId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/star")
|
|
|
+ public OkResponse<List<CommunicationVO>> getStarCommunications(@RequestParam(value = "userId")Integer userId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/star/cancel")
|
|
|
+ public OkResponse<Boolean> cancelStarCommunication(@RequestParam(value = "userId")Integer userId,
|
|
|
+ @RequestParam(value = "communicationId")Integer communicationId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/watchStarMan/{communicationId}")
|
|
|
+ public OkResponse<List<UserVO>> watchStarMan(@PathVariable(value = "communicationId")Integer communicationId){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|