完成商标保护实训任务开发
parent
c657d964e4
commit
8450dd8539
@ -0,0 +1,51 @@
|
||||
package com.sztzjy.trade.controller.stu;
|
||||
|
||||
import com.sztzjy.trade.annotation.AnonymousAccess;
|
||||
import com.sztzjy.trade.entity.StuTaskPracticeRecord;
|
||||
import com.sztzjy.trade.entity.dto.StuExpermentSubmitDTO;
|
||||
import com.sztzjy.trade.service.StuExpermentTrainingService;
|
||||
import com.sztzjy.trade.util.ResultEntity;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.RestController;
|
||||
|
||||
/**
|
||||
* @author 17803
|
||||
* @date 2024-10-14 14:54
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("api/stu/knowledgeTraining")
|
||||
@Api(tags = "数字知识产权保护实训")
|
||||
public class StuKnowledgeTrainingController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private StuExpermentTrainingService service;
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("/expermentSubmit")
|
||||
@ApiOperation("实训任务提交")
|
||||
public ResultEntity expermentSubmit(@RequestBody StuExpermentSubmitDTO stuExpermentSubmitDTO) {
|
||||
|
||||
//得分表为空,表示没提交 以此来判断状态(默认为空)
|
||||
return service.expermentSubmit(stuExpermentSubmitDTO);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("/expermentByAutoSave")
|
||||
@ApiOperation("实训任务自动保存")
|
||||
public ResultEntity expermentByAutoSave(@RequestBody StuTaskPracticeRecord stuTaskPracticeRecord) {
|
||||
|
||||
|
||||
return service.expermentByAutoSave(stuTaskPracticeRecord);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue