|
|
@ -2,11 +2,16 @@ package com.iec.business.contoller; |
|
|
|
|
|
|
|
|
import com.iec.business.service.YyjhTaskService; |
|
|
import com.iec.business.service.YyjhTaskService; |
|
|
import com.pig4cloud.pig.common.core.util.R; |
|
|
import com.pig4cloud.pig.common.core.util.R; |
|
|
|
|
|
import com.pig4cloud.pig.common.security.annotation.Inner; |
|
|
|
|
|
import com.pig4cloud.pig.common.security.service.PigUser; |
|
|
|
|
|
import com.pig4cloud.pig.common.security.util.SecurityUtils; |
|
|
import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
|
|
import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.http.HttpHeaders; |
|
|
import org.springframework.http.HttpHeaders; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestHeader; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
@ -17,18 +22,24 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
* @date 2024/12/11 |
|
|
* @date 2024/12/11 |
|
|
* @description TODO |
|
|
* @description TODO |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Slf4j |
|
|
@RestController |
|
|
@RestController |
|
|
@AllArgsConstructor |
|
|
@AllArgsConstructor |
|
|
@RequestMapping("/yyjhTask") |
|
|
@RequestMapping("/yyjhTask") |
|
|
@Tag(description = "yyjhTask", name = "任务管理模块") |
|
|
@Tag(description = "yyjhTask", name = "任务管理模块") |
|
|
|
|
|
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION) |
|
|
public class YyjhTaskController { |
|
|
public class YyjhTaskController { |
|
|
|
|
|
|
|
|
private final YyjhTaskService yyjhTaskService; |
|
|
private final YyjhTaskService yyjhTaskService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询全部 |
|
|
* 查询全部 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("/list") |
|
|
@GetMapping("/list") |
|
|
public R list() { |
|
|
|
|
|
|
|
|
public R list(@RequestHeader("Authorization") String header) { |
|
|
|
|
|
log.info("header的值为:{}",header); |
|
|
|
|
|
PigUser user = SecurityUtils.getUser(); |
|
|
|
|
|
log.info("当前用户的信息为:{}",user); |
|
|
return R.ok(yyjhTaskService.list()); |
|
|
return R.ok(yyjhTaskService.list()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |