Commit 9da69be9 authored by 高滢's avatar 高滢

修改请求方式

parent ac1de972
......@@ -4,17 +4,17 @@ import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.domain.ReviewTaskUserRelation;
import com.ruoyi.service.ReviewTaskUserRelationService;
import com.ruoyi.service.impl.ReviewTaskUserRelationServiceImpl;
import com.ruoyi.web.request.AutomobileEnterpriseGetInfoRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.List;
......@@ -25,18 +25,19 @@ import java.util.List;
public class ReviewTaskUserRelationController extends BaseController {
@Autowired
ReviewTaskUserRelationServiceImpl reviewTaskUserRelationService;
ReviewTaskUserRelationService reviewTaskUserRelationService;
/**
* 根据任务id查询小组成员
* @param taskId
* @return
*/
@ApiOperation("根据任务Id查询任务组成员")
@RequestMapping(method = RequestMethod.GET, value = "/members/{taskId}")
public R<List<ReviewTaskUserRelation>> selectQTeamMemberList(@PathVariable Long taskId){
List<ReviewTaskUserRelation> list = reviewTaskUserRelationService.selectQTeamMembers(taskId);
@Trace
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@RequestMapping(method = RequestMethod.POST, value = "/members")
public R<List<ReviewTaskUserRelation>> selectQTeamMemberList(@Validated @RequestBody ReviewTaskUserRelation request){
List<ReviewTaskUserRelation> list = reviewTaskUserRelationService.selectQTeamMembers(request.getTaskId());
return R.ok(list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment