邮件API
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.mini.capi.biz.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* VIEW 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2025-11-16
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/biz/bizBaseNoticeView")
|
||||
public class BizBaseNoticeViewController {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.mini.capi.biz.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* VIEW
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2025-11-16
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("biz_base_notice_view")
|
||||
public class BizBaseNoticeView implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@TableField("notice_title")
|
||||
private String noticeTitle;
|
||||
|
||||
/**
|
||||
* 正文
|
||||
*/
|
||||
@TableField("notice_text")
|
||||
private String noticeText;
|
||||
|
||||
/**
|
||||
* 过期时间
|
||||
*/
|
||||
@TableField("expiration_time")
|
||||
private LocalDateTime expirationTime;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.capi.biz.mapper;
|
||||
|
||||
import com.mini.capi.biz.domain.BizBaseNoticeView;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* VIEW Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2025-11-16
|
||||
*/
|
||||
public interface BizBaseNoticeViewMapper extends BaseMapper<BizBaseNoticeView> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mini.capi.biz.service;
|
||||
|
||||
import com.mini.capi.biz.domain.BizBaseNoticeView;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* VIEW 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2025-11-16
|
||||
*/
|
||||
public interface BizBaseNoticeViewService extends IService<BizBaseNoticeView> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mini.capi.biz.service.impl;
|
||||
|
||||
import com.mini.capi.biz.domain.BizBaseNoticeView;
|
||||
import com.mini.capi.biz.mapper.BizBaseNoticeViewMapper;
|
||||
import com.mini.capi.biz.service.BizBaseNoticeViewService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* VIEW 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author gaoxq
|
||||
* @since 2025-11-16
|
||||
*/
|
||||
@Service
|
||||
public class BizBaseNoticeViewServiceImpl extends ServiceImpl<BizBaseNoticeViewMapper, BizBaseNoticeView> implements BizBaseNoticeViewService {
|
||||
|
||||
}
|
||||
@@ -59,6 +59,9 @@ public class viewController {
|
||||
@Resource
|
||||
private BizTodoTaskViewService bizTodoTaskViewService;
|
||||
|
||||
@Resource
|
||||
private BizBaseNoticeViewService bizBaseNoticeViewService;
|
||||
|
||||
|
||||
@GetMapping("/login")
|
||||
public String showLoginPage() {
|
||||
@@ -82,10 +85,13 @@ public class viewController {
|
||||
taskViewQueryWrapper.notIn("ustatus", "CPT");
|
||||
List<BizTodoTaskView> todoViews = bizTodoTaskViewService.list(taskViewQueryWrapper);
|
||||
|
||||
List<BizBaseNoticeView> noticeViews = bizBaseNoticeViewService.list();
|
||||
|
||||
model.addAttribute("hosts", hosts);
|
||||
model.addAttribute("storages", storages);
|
||||
model.addAttribute("uname", user.getUname());
|
||||
model.addAttribute("todoViews", todoViews);
|
||||
model.addAttribute("noticeViews", noticeViews);
|
||||
model.addAttribute("times", vDate.getRunTimes(runInfo.getProcessInfo().getUptime()));
|
||||
return "index";
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class demo {
|
||||
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
||||
})
|
||||
.strategyConfig(builder -> {
|
||||
builder.addInclude("biz_sub_task")
|
||||
builder.addInclude("biz_base_notice_view")
|
||||
.addTablePrefix("biz_,erp_")
|
||||
.entityBuilder()
|
||||
.enableLombok()
|
||||
|
||||
Reference in New Issue
Block a user