|
|
@@ -3,17 +3,19 @@ package com.template.api;
|
|
|
import com.template.model.pojo.WelcomeStudentDormitory;
|
|
|
import com.template.model.result.CommonResult;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-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.*;
|
|
|
|
|
|
@RequestMapping("/api/welcome-student-dormitory")
|
|
|
public interface WelcomeStudentDormitoryControllerAPI {
|
|
|
|
|
|
- @PostMapping(value = "/saveStudent")
|
|
|
+ @PostMapping(value = "/saveStudentDormitory")
|
|
|
@ApiOperation(value = "添加床位", notes = "添加床位", httpMethod = "POST")
|
|
|
- CommonResult saveStudent(@RequestBody WelcomeStudentDormitory welcomeStudentDormitory);
|
|
|
+ CommonResult saveStudentDormitory(@RequestBody WelcomeStudentDormitory welcomeStudentDormitory);
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/deleteStudentDormitory")
|
|
|
+ @ApiOperation(value = "删除床位", notes = "删除床位", httpMethod = "GET")
|
|
|
+ CommonResult deleteStudentDormitory(@RequestParam Integer studentDormitoryId);
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/submit")
|