mirror of
https://github.com/1024-lab/smart-admin.git
synced 2025-09-28 19:13:52 +00:00
【smart-app】 更新beta版本
This commit is contained in:
@@ -25,12 +25,12 @@ public class PageParam {
|
||||
|
||||
@Schema(description = "页码(不能为空)", example = "1")
|
||||
@NotNull(message = "分页参数不能为空")
|
||||
private Integer pageNum;
|
||||
private Long pageNum;
|
||||
|
||||
@Schema(description = "每页数量(不能为空)", example = "10")
|
||||
@NotNull(message = "每页数量不能为空")
|
||||
@Max(value = 200, message = "每页最大为200")
|
||||
private Integer pageSize;
|
||||
@Max(value = 500, message = "每页最大为500")
|
||||
private Long pageSize;
|
||||
|
||||
@Schema(description = "是否查询总条数")
|
||||
protected Boolean searchCount;
|
||||
|
@@ -9,9 +9,7 @@ import net.lab1024.sa.base.constant.SwaggerTagConst;
|
||||
import net.lab1024.sa.base.module.support.changelog.domain.form.ChangeLogQueryForm;
|
||||
import net.lab1024.sa.base.module.support.changelog.domain.vo.ChangeLogVO;
|
||||
import net.lab1024.sa.base.module.support.changelog.service.ChangeLogService;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
@@ -36,4 +34,11 @@ public class ChangeLogController extends SupportBaseController {
|
||||
public ResponseDTO<PageResult<ChangeLogVO>> queryPage(@RequestBody @Valid ChangeLogQueryForm queryForm) {
|
||||
return ResponseDTO.ok(changeLogService.queryPage(queryForm));
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "变更内容详情 @author 卓大")
|
||||
@GetMapping("/changeLog/getDetail/{changeLogId}")
|
||||
public ResponseDTO<ChangeLogVO> getDetail(@PathVariable Long changeLogId) {
|
||||
return ResponseDTO.ok(changeLogService.getById(changeLogId));
|
||||
}
|
||||
}
|
@@ -33,7 +33,6 @@ public class ChangeLogService {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
*/
|
||||
public PageResult<ChangeLogVO> queryPage(ChangeLogQueryForm queryForm) {
|
||||
Page<?> page = SmartPageUtil.convert2PageQuery(queryForm);
|
||||
@@ -57,7 +56,6 @@ public class ChangeLogService {
|
||||
|
||||
/**
|
||||
* 更新
|
||||
*
|
||||
*/
|
||||
public synchronized ResponseDTO<String> update(ChangeLogUpdateForm updateForm) {
|
||||
ChangeLogEntity existVersion = changeLogDao.selectByVersion(updateForm.getVersion());
|
||||
@@ -71,7 +69,6 @@ public class ChangeLogService {
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
*/
|
||||
public synchronized ResponseDTO<String> batchDelete(List<Long> idList) {
|
||||
if (CollectionUtils.isEmpty(idList)) {
|
||||
@@ -93,4 +90,8 @@ public class ChangeLogService {
|
||||
changeLogDao.deleteById(changeLogId);
|
||||
return ResponseDTO.ok();
|
||||
}
|
||||
|
||||
public ChangeLogVO getById(Long changeLogId) {
|
||||
return SmartBeanUtil.copy(changeLogDao.selectById(changeLogId), ChangeLogVO.class);
|
||||
}
|
||||
}
|
||||
|
@@ -60,9 +60,9 @@ public class ${name.upperCamel}Controller {
|
||||
|
||||
#if($deleteInfo.deleteEnum == "Single" || $deleteInfo.deleteEnum == "SingleAndBatch")
|
||||
@Operation(summary = "单个删除 @author ${basic.backendAuthor}")
|
||||
@GetMapping("/${name.lowerCamel}/delete/{${name.lowerCamel}Id}")
|
||||
@GetMapping("/${name.lowerCamel}/delete/{${primaryKeyFieldName}}")
|
||||
public ResponseDTO<String> batchDelete(@PathVariable ${primaryKeyJavaType} ${primaryKeyFieldName}) {
|
||||
return ${name.lowerCamel}Service.delete(${name.lowerCamel}Id);
|
||||
return ${name.lowerCamel}Service.delete(${primaryKeyFieldName});
|
||||
}
|
||||
#end
|
||||
#end
|
||||
|
@@ -65,22 +65,6 @@ server:
|
||||
pattern: "%t %{X-Forwarded-For}i %a %r %s (%D ms) %I (%B byte)"
|
||||
|
||||
|
||||
# 文件上传 配置
|
||||
#file:
|
||||
# storage:
|
||||
# mode: local
|
||||
# local:
|
||||
# upload-path: /home/smart_admin_v3/upload/ #文件上传目录
|
||||
# url-prefix:
|
||||
# cloud:
|
||||
# region: oss-cn-qingdao
|
||||
# endpoint: oss-cn-qingdao.aliyuncs.com
|
||||
# bucket-name: common
|
||||
# access-key:
|
||||
# secret-key:
|
||||
# url-prefix: https://${file.storage.cloud.bucket-name}.${file.storage.cloud.endpoint}/
|
||||
# private-url-expire-seconds: 3600
|
||||
|
||||
# 文件上传 配置
|
||||
file:
|
||||
storage:
|
||||
@@ -97,6 +81,7 @@ file:
|
||||
url-prefix: https://${file.storage.cloud.bucket-name}.${file.storage.cloud.endpoint}/
|
||||
private-url-expire-seconds: 3600
|
||||
|
||||
|
||||
# open api配置
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
|
Reference in New Issue
Block a user