feat(REQ-2106): 注释规范化
This commit is contained in:
parent
965f64342f
commit
1fb1551dfd
@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 版本记录相关api
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/2 10:21
|
||||
|
||||
@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 广告位相关 api
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/2 10:19
|
||||
@ -67,6 +69,4 @@ public interface BannerApi {
|
||||
*/
|
||||
@PostMapping("/api/banner/detail")
|
||||
ApiResult<DetailBannerResp> detail(@RequestBody @Valid DetailBannerReq req);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 广告位和素材操作日志
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/2 10:21
|
||||
|
||||
@ -18,6 +18,8 @@ import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 素材管理相关 api
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/2 10:20
|
||||
@ -84,5 +86,4 @@ public interface MaterialApi {
|
||||
*/
|
||||
@PostMapping("/api/material/listByBannerCode")
|
||||
ApiResult<List<MaterialResp>> listMaterialByBannerCode(@RequestBody @Valid ListMaterialByBannerCodeReq req);
|
||||
|
||||
}
|
||||
|
||||
@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 版本记录操作
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/3 16:39
|
||||
@ -55,7 +57,7 @@ public class ApplicationVersionController implements ApplicationVersionApi {
|
||||
|
||||
@Override
|
||||
public ApiResult<GetVersionUpdateRemindContentResp> getVersionUpdateRemindContent(GetVersionUpdateRemindContentReq req) {
|
||||
if (Objects.isNull(req.getPersonId()) || req.getPersonId() == 0){
|
||||
if (Objects.isNull(req.getPersonId()) || req.getPersonId() == 0) {
|
||||
throw new ServiceException("personId不能为空");
|
||||
}
|
||||
return ApiResult.ok(applicationVersionService.getVersionUpdateRemindContent(req));
|
||||
|
||||
@ -17,6 +17,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 广告位操作
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/3 16:30
|
||||
|
||||
@ -11,6 +11,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 广告位和素材操作日志
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/3 16:40
|
||||
|
||||
@ -24,6 +24,8 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 素材操作
|
||||
*
|
||||
* @author chenwenjian
|
||||
* @version 1.0
|
||||
* @date 2024/4/3 16:31
|
||||
@ -68,9 +70,9 @@ public class MaterialController implements MaterialApi {
|
||||
@Override
|
||||
public ApiResult<List<MaterialResp>> listMaterialByBannerCode(ListMaterialByBannerCodeReq req) {
|
||||
String traceId = request.getHeader(NanopartConstant.CONTEXT_TRACE_ID);
|
||||
if (Objects.isNull(req.getPersonId()) || req.getPersonId() == 0L){
|
||||
if (Objects.isNull(req.getPersonId()) || req.getPersonId() == 0L) {
|
||||
throw new ServiceException("personId不能为空");
|
||||
}
|
||||
return ApiResult.ok(materialService.listMaterialByBannerCode(req,traceId));
|
||||
return ApiResult.ok(materialService.listMaterialByBannerCode(req, traceId));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user