mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-25 17:06:02 +08:00
【smart-app更新】1、意见反馈;2、我的;3、退出登录;4、等等其他
This commit is contained in:
@@ -44,11 +44,9 @@ public class NoticeVO {
|
||||
private LocalDateTime publishTime;
|
||||
|
||||
@Schema(description = "作者")
|
||||
@NotBlank(message = "作者不能为空")
|
||||
private String author;
|
||||
|
||||
@Schema(description = "来源")
|
||||
@NotBlank(message = "标题不能为空")
|
||||
private String source;
|
||||
|
||||
@Schema(description = "文号")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.lab1024.sa.admin.module.system.login.controller;
|
||||
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -47,7 +48,10 @@ public class LoginController {
|
||||
@GetMapping("/login/getLoginInfo")
|
||||
@Operation(summary = "获取登录结果信息 @author 卓大")
|
||||
public ResponseDTO<LoginResultVO> getLoginInfo() {
|
||||
return ResponseDTO.ok(loginService.getLoginResult(AdminRequestUtil.getRequestUser()));
|
||||
LoginResultVO loginResult = loginService.getLoginResult(AdminRequestUtil.getRequestUser());
|
||||
String tokenValue = StpUtil.getTokenValue();
|
||||
loginResult.setToken(tokenValue);
|
||||
return ResponseDTO.ok(loginResult);
|
||||
}
|
||||
|
||||
@Operation(summary = "退出登陆 @author 卓大")
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<if test="query.keywords != null and query.keywords !=''">
|
||||
AND ( INSTR(t_notice.title,#{query.keywords})
|
||||
OR INSTR(t_notice.author,#{query.keywords})
|
||||
OR INSTR(t_notice.documentNumber,#{query.keywords})
|
||||
OR INSTR(t_notice.document_number,#{query.keywords})
|
||||
OR INSTR(t_notice.source,#{query.keywords})
|
||||
)
|
||||
</if>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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