feat: 移植工程
This commit is contained in:
38
common/.gitignore
vendored
Normal file
38
common/.gitignore
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
40
common/pom.xml
Normal file
40
common/pom.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.cxx</groupId>
|
||||
<artifactId>sweet-hut-service</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>common</artifactId>
|
||||
<version>2.0.0</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.cxx</groupId>
|
||||
<artifactId>starter-web</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cxx</groupId>
|
||||
<artifactId>starter-jdbc</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cxx</groupId>
|
||||
<artifactId>starter-logging</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
4
common/src/main/java/com/cxx/common/PlainView.java
Normal file
4
common/src/main/java/com/cxx/common/PlainView.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package com.cxx.common;
|
||||
|
||||
public interface PlainView {
|
||||
}
|
||||
4
common/src/main/java/com/cxx/common/ReadView.java
Normal file
4
common/src/main/java/com/cxx/common/ReadView.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package com.cxx.common;
|
||||
|
||||
public interface ReadView extends PlainView {
|
||||
}
|
||||
4
common/src/main/java/com/cxx/common/WriteView.java
Normal file
4
common/src/main/java/com/cxx/common/WriteView.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package com.cxx.common;
|
||||
|
||||
public interface WriteView extends PlainView {
|
||||
}
|
||||
11
common/src/main/java/com/cxx/common/dto/StatsChartDto.java
Normal file
11
common/src/main/java/com/cxx/common/dto/StatsChartDto.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.cxx.common.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class StatsChartDto {
|
||||
private String name;
|
||||
private Double value;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.cxx.common.dto.bill;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class BillCategoryDto extends BillItemDto{
|
||||
@Schema(description = "账本名称")
|
||||
private String bookName;
|
||||
|
||||
@Schema(description = "账本类型")
|
||||
private String type;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.cxx.common.dto.bill;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class BillItemDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
@Schema(description = "颜色")
|
||||
private String color;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.cxx.common.dto.bill;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class BillRecordDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "账本名称")
|
||||
private String bookName;
|
||||
|
||||
@Schema(description = "账单类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "账单类别")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "账单地点")
|
||||
private String location;
|
||||
|
||||
@Schema(description = "账单账户")
|
||||
private String payAccount;
|
||||
|
||||
@Schema(description = "账单金额")
|
||||
private Double amount;
|
||||
|
||||
@Schema(description = "账单内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "账单备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "账单图片")
|
||||
private List<String> imageList;
|
||||
|
||||
@Schema(description = "账单日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date date;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.cxx.common.dto.bill;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class BillSummaryDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "账本名称")
|
||||
private String bookName;
|
||||
|
||||
@Schema(description = "账单类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "账单类别")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "账单地点")
|
||||
private String location;
|
||||
|
||||
@Schema(description = "账单账户")
|
||||
private String payAccount;
|
||||
|
||||
@Schema(description = "账单金额")
|
||||
private Double amount;
|
||||
|
||||
@Schema(description = "账单内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "账单备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "账单日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date date;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.cxx.common.dto.blog;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class BlogCategoryDto {
|
||||
@Schema(description = "类别名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "类别数量")
|
||||
private Integer count;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package com.cxx.common.dto.blog;
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.cxx.common.dto.blog;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @Author: Cxx
|
||||
* @Date: 2024/9/16 19:47
|
||||
* @Description:
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BlogLatestDto {
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "博客标题")
|
||||
private String title;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.cxx.common.dto.blog;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @Author: Cxx
|
||||
* @Date: 2024/9/16 19:47
|
||||
* @Description:
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BlogStatsDto {
|
||||
@Schema(description = "博客数量")
|
||||
private Long blogCount;
|
||||
|
||||
@Schema(description = "博客类别数量")
|
||||
private Long categoryCount;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.cxx.common.dto.blog;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class BlogVisitDto {
|
||||
@Schema(description = "访问ip")
|
||||
private String ip;
|
||||
|
||||
@Schema(description = "访问系统")
|
||||
private String os;
|
||||
|
||||
@Schema(description = "访问浏览器")
|
||||
private String browser;
|
||||
|
||||
@Schema(description = "访问路径")
|
||||
private String uri;
|
||||
|
||||
@Schema(description = "博客标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "访问时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date visitTime;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.cxx.common.dto.budget;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.PositiveOrZero;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class BudgetDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "预算类别")
|
||||
@NotBlank(message = "类别不能为空")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "预算项目")
|
||||
@NotBlank(message = "项目不能为空")
|
||||
private String project;
|
||||
|
||||
@Schema(description = "预算内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "供应商")
|
||||
private String vendor;
|
||||
|
||||
@Schema(description = "预算支出")
|
||||
@PositiveOrZero(message = "预算支出支出必须大于等于0")
|
||||
private Double budget;
|
||||
|
||||
@Schema(description = "实际支出")
|
||||
@PositiveOrZero(message = "实际支出支出必须大于等于0")
|
||||
private Double actual;
|
||||
|
||||
@Schema(description = "支付时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remake;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.cxx.common.dto.message;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class MailMessageDto {
|
||||
private String to;
|
||||
private String subject;
|
||||
private String body;
|
||||
}
|
||||
62
common/src/main/java/com/cxx/common/dto/plan/PlanDto.java
Normal file
62
common/src/main/java/com/cxx/common/dto/plan/PlanDto.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package com.cxx.common.dto.plan;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class PlanDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "标题")
|
||||
@NotBlank(message = "标题不能为空")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date date;
|
||||
|
||||
@Schema(description = "开始时间")
|
||||
@JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
|
||||
private Date startTime;
|
||||
|
||||
@Schema(description = "结束时间")
|
||||
@JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
|
||||
private Date endTime;
|
||||
|
||||
@Schema(description = "提醒时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date alterTime;
|
||||
|
||||
@Schema(description = "邮箱地址")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "任务id")
|
||||
private Long taskId;
|
||||
|
||||
@Schema(description = "标签")
|
||||
private String tag;
|
||||
|
||||
@Schema(description = "是否置顶")
|
||||
private Integer isTop;
|
||||
|
||||
@Schema(description = "优先级")
|
||||
private Integer priority;
|
||||
|
||||
@Schema(description = "是否完成")
|
||||
private Integer completed;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cxx.common.dto.plan;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanStatsDto {
|
||||
@Schema(description = "计划总数")
|
||||
private Integer totalCount;
|
||||
|
||||
@Schema(description = "完成总数")
|
||||
private Integer completedCount;
|
||||
|
||||
@Schema(description = "当前计划")
|
||||
private Integer currentCount;
|
||||
|
||||
@Schema(description = "过期计划")
|
||||
private Integer remainCount;
|
||||
}
|
||||
25
common/src/main/java/com/cxx/common/dto/task/TaskDto.java
Normal file
25
common/src/main/java/com/cxx/common/dto/task/TaskDto.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.cxx.common.dto.task;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class TaskDto {
|
||||
@Schema(description = "任务类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "任务内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "执行时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date executeTime;
|
||||
|
||||
@Schema(description = "定时任务表达式")
|
||||
private String cronExpression;
|
||||
}
|
||||
17
common/src/main/java/com/cxx/common/dto/user/SessionDto.java
Normal file
17
common/src/main/java/com/cxx/common/dto/user/SessionDto.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.cxx.common.dto.user;
|
||||
|
||||
import cn.dev33.satoken.stp.SaTokenInfo;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class SessionDto {
|
||||
@Schema(description = "令牌")
|
||||
private SaTokenInfo saToken;
|
||||
|
||||
@Schema(description = "用户信息")
|
||||
private UserDto userInfo;
|
||||
}
|
||||
|
||||
68
common/src/main/java/com/cxx/common/dto/user/UserDto.java
Normal file
68
common/src/main/java/com/cxx/common/dto/user/UserDto.java
Normal file
@@ -0,0 +1,68 @@
|
||||
package com.cxx.common.dto.user;
|
||||
|
||||
import com.cxx.common.PlainView;
|
||||
import com.cxx.common.ReadView;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonView;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@JsonView(PlainView.class)
|
||||
public class UserDto {
|
||||
@Schema(description = "id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "账号id")
|
||||
@JsonView(ReadView.class)
|
||||
private Long accountId;
|
||||
|
||||
@Schema(description = "账号名称")
|
||||
@JsonView(ReadView.class)
|
||||
private String accountName;
|
||||
|
||||
@Schema(description = "用户名称")
|
||||
@NotBlank(message = "用户名称不能为空")
|
||||
private String username;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private Integer gender;
|
||||
|
||||
@Schema(description = "身份证号")
|
||||
private String idNumber;
|
||||
|
||||
@Schema(description = "手机号码")
|
||||
private String phoneNumber;
|
||||
|
||||
@Schema(description = "电子邮件")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "生日")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
private Date birthDate;
|
||||
|
||||
@Schema(description = "头像")
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "地区")
|
||||
private List<String> area;
|
||||
|
||||
@Schema(description = "地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "职业")
|
||||
private String job;
|
||||
|
||||
@Schema(description = "标签")
|
||||
private List<String> tags;
|
||||
|
||||
@Schema(description = "描述")
|
||||
private String description;
|
||||
}
|
||||
24
common/src/main/java/com/cxx/common/entity/Account.java
Normal file
24
common/src/main/java/com/cxx/common/entity/Account.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("account")
|
||||
public class Account extends AbstractEntity {
|
||||
@TableField("account_name")
|
||||
private String accountName;
|
||||
|
||||
@TableField("password")
|
||||
private String password;
|
||||
|
||||
@TableField("user_id")
|
||||
private Long userId;
|
||||
|
||||
@TableField("state")
|
||||
private Integer state;
|
||||
}
|
||||
21
common/src/main/java/com/cxx/common/entity/BillBook.java
Normal file
21
common/src/main/java/com/cxx/common/entity/BillBook.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("bill_book")
|
||||
public class BillBook extends AbstractEntity {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@TableField("icon")
|
||||
private String icon;
|
||||
|
||||
@TableField("color")
|
||||
private String color;
|
||||
}
|
||||
27
common/src/main/java/com/cxx/common/entity/BillCategory.java
Normal file
27
common/src/main/java/com/cxx/common/entity/BillCategory.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("bill_category")
|
||||
public class BillCategory extends AbstractEntity {
|
||||
@TableField("book_id")
|
||||
private Long bookId;
|
||||
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@TableField("type")
|
||||
private String type;
|
||||
|
||||
@TableField("icon")
|
||||
private String icon;
|
||||
|
||||
@TableField("color")
|
||||
private String color;
|
||||
}
|
||||
15
common/src/main/java/com/cxx/common/entity/BillImage.java
Normal file
15
common/src/main/java/com/cxx/common/entity/BillImage.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@TableName("bill_image")
|
||||
public class BillImage {
|
||||
@TableField("bill_id")
|
||||
private Long billId;
|
||||
|
||||
@TableField("image_url")
|
||||
private String imageUrl;
|
||||
}
|
||||
21
common/src/main/java/com/cxx/common/entity/BillPay.java
Normal file
21
common/src/main/java/com/cxx/common/entity/BillPay.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("bill_pay")
|
||||
public class BillPay extends AbstractEntity {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@TableField("icon")
|
||||
private String icon;
|
||||
|
||||
@TableField("color")
|
||||
private String color;
|
||||
}
|
||||
41
common/src/main/java/com/cxx/common/entity/BillRecord.java
Normal file
41
common/src/main/java/com/cxx/common/entity/BillRecord.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("bill_record")
|
||||
public class BillRecord extends AbstractEntity {
|
||||
@TableField("book_id")
|
||||
private Long bookId;
|
||||
|
||||
@TableField("type")
|
||||
private String type;
|
||||
|
||||
@TableField("category_id")
|
||||
private Long categoryId;
|
||||
|
||||
@TableField("location")
|
||||
private String location;
|
||||
|
||||
@TableField("date")
|
||||
private Date date;
|
||||
|
||||
@TableField("amount")
|
||||
private Double amount;
|
||||
|
||||
@TableField("content")
|
||||
private String content;
|
||||
|
||||
@TableField("pay_id")
|
||||
private Long payId;
|
||||
|
||||
@TableField("remark")
|
||||
private String remark;
|
||||
}
|
||||
36
common/src/main/java/com/cxx/common/entity/Blog.java
Normal file
36
common/src/main/java/com/cxx/common/entity/Blog.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("blog")
|
||||
public class Blog extends AbstractEntity {
|
||||
@TableField("title")
|
||||
private String title;
|
||||
|
||||
@TableField("top_value")
|
||||
private Integer topValue;
|
||||
|
||||
@TableField("is_great")
|
||||
private Boolean isGreat;
|
||||
|
||||
@TableField("category_id")
|
||||
private Long categoryId;
|
||||
|
||||
@TableField("summary")
|
||||
private String summary;
|
||||
|
||||
@TableField("content_id")
|
||||
private Long contentId;
|
||||
|
||||
@TableField("word_count")
|
||||
private Integer wordCount;
|
||||
|
||||
@TableField("read_duration")
|
||||
private Double readDuration;
|
||||
}
|
||||
20
common/src/main/java/com/cxx/common/entity/BlogCategory.java
Normal file
20
common/src/main/java/com/cxx/common/entity/BlogCategory.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @Author: Cxx
|
||||
* @Date: 2024/9/15 10:11
|
||||
* @Description: 博客分类
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("blog_category")
|
||||
public class BlogCategory extends AbstractEntity {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
}
|
||||
20
common/src/main/java/com/cxx/common/entity/BlogContent.java
Normal file
20
common/src/main/java/com/cxx/common/entity/BlogContent.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractIdEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @Author: Cxx
|
||||
* @Date: 2024/9/15 10:09
|
||||
* @Description: 博客内容
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("blog_content")
|
||||
public class BlogContent extends AbstractIdEntity {
|
||||
@TableField("content")
|
||||
private String content;
|
||||
}
|
||||
27
common/src/main/java/com/cxx/common/entity/BlogVisit.java
Normal file
27
common/src/main/java/com/cxx/common/entity/BlogVisit.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("blog_visit")
|
||||
public class BlogVisit extends AbstractEntity {
|
||||
@TableField("ip")
|
||||
private String ip;
|
||||
|
||||
@TableField("os")
|
||||
private String os;
|
||||
|
||||
@TableField("browser")
|
||||
private String browser;
|
||||
|
||||
@TableField("uri")
|
||||
private String uri;
|
||||
|
||||
@TableField("blog_id")
|
||||
private Long blogId;
|
||||
}
|
||||
38
common/src/main/java/com/cxx/common/entity/Budget.java
Normal file
38
common/src/main/java/com/cxx/common/entity/Budget.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("budget")
|
||||
public class Budget extends AbstractEntity {
|
||||
@TableField("category_id")
|
||||
private Long categoryId;
|
||||
|
||||
@TableField("project")
|
||||
private String project;
|
||||
|
||||
@TableField("content")
|
||||
private String content;
|
||||
|
||||
@TableField("vendor")
|
||||
private String vendor;
|
||||
|
||||
@TableField("budget")
|
||||
private Double budget;
|
||||
|
||||
@TableField("actual")
|
||||
private Double actual;
|
||||
|
||||
@TableField("pay_time")
|
||||
private Date payTime;
|
||||
|
||||
@TableField("remake")
|
||||
private String remake;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("budget_category")
|
||||
public class BudgetCategory extends AbstractEntity {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
}
|
||||
24
common/src/main/java/com/cxx/common/entity/FileRecord.java
Normal file
24
common/src/main/java/com/cxx/common/entity/FileRecord.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("file_record")
|
||||
public class FileRecord extends AbstractEntity {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@TableField("md5")
|
||||
private String md5;
|
||||
|
||||
@TableField("path")
|
||||
private String path;
|
||||
|
||||
@TableField("url")
|
||||
private String url;
|
||||
}
|
||||
48
common/src/main/java/com/cxx/common/entity/Plan.java
Normal file
48
common/src/main/java/com/cxx/common/entity/Plan.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("plan")
|
||||
public class Plan extends AbstractEntity {
|
||||
@TableField("title")
|
||||
private String title;
|
||||
|
||||
@TableField("content")
|
||||
private String content;
|
||||
|
||||
@TableField(value = "date", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Date date;
|
||||
|
||||
@TableField(value = "start_time", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Date startTime;
|
||||
|
||||
@TableField(value = "end_time", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Date endTime;
|
||||
|
||||
@TableField(value = "alter_time", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Date alterTime;
|
||||
|
||||
@TableField(value = "task_id", updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Long taskId;
|
||||
|
||||
@TableField("tag")
|
||||
private String tag;
|
||||
|
||||
@TableField("is_top")
|
||||
private Integer isTop;
|
||||
|
||||
@TableField("priority")
|
||||
private Integer priority;
|
||||
|
||||
@TableField("completed")
|
||||
private Integer completed;
|
||||
}
|
||||
27
common/src/main/java/com/cxx/common/entity/Task.java
Normal file
27
common/src/main/java/com/cxx/common/entity/Task.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import com.cxx.framework.data.AbstractIdEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("task")
|
||||
public class Task extends AbstractIdEntity {
|
||||
@TableField("type")
|
||||
private String type;
|
||||
|
||||
@TableField("content")
|
||||
private String content;
|
||||
|
||||
@TableField("execute_time")
|
||||
private Date executeTime;
|
||||
|
||||
@TableField("cron_expression")
|
||||
private String cronExpression;
|
||||
}
|
||||
52
common/src/main/java/com/cxx/common/entity/User.java
Normal file
52
common/src/main/java/com/cxx/common/entity/User.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package com.cxx.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
||||
import com.cxx.framework.data.AbstractEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "user", autoResultMap = true)
|
||||
public class User extends AbstractEntity {
|
||||
@TableField("username")
|
||||
private String username;
|
||||
|
||||
@TableField("gender")
|
||||
private Integer gender;
|
||||
|
||||
@TableField("id_number")
|
||||
private String idNumber;
|
||||
|
||||
@TableField("phone_number")
|
||||
private String phoneNumber;
|
||||
|
||||
@TableField("email")
|
||||
private String email;
|
||||
|
||||
@TableField("birth_date")
|
||||
private Date birthDate;
|
||||
|
||||
@TableField("avatar")
|
||||
private String avatar;
|
||||
|
||||
@TableField(value = "area", typeHandler = JacksonTypeHandler.class)
|
||||
private List<String> area;
|
||||
|
||||
@TableField("address")
|
||||
private String address;
|
||||
|
||||
@TableField("job")
|
||||
private String job;
|
||||
|
||||
@TableField(value = "tags", typeHandler = JacksonTypeHandler.class)
|
||||
private List<String> tags;
|
||||
|
||||
@TableField("description")
|
||||
private String description;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.Account;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface AccountMapper extends BaseMapper<Account> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BillBook;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BillBookMapper extends BaseMapper<BillBook> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BillCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BillCategoryMapper extends BaseMapper<BillCategory> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BillImage;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BillImageMapper extends BaseMapper<BillImage> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BillPay;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BillPayMapper extends BaseMapper<BillPay> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BillRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BillRecordMapper extends BaseMapper<BillRecord> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BlogCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BlogCategoryMapper extends BaseMapper<BlogCategory> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BlogContent;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BlogContentMapper extends BaseMapper<BlogContent> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.Blog;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BlogMapper extends BaseMapper<Blog> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BlogVisit;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BlogVisitMapper extends BaseMapper<BlogVisit> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.BudgetCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BudgetCategoryMapper extends BaseMapper<BudgetCategory> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.Budget;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BudgetMapper extends BaseMapper<Budget> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.FileRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface FileRecordMapper extends BaseMapper<FileRecord> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.Plan;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PlanMapper extends BaseMapper<Plan> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.Task;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TaskMapper extends BaseMapper<Task> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cxx.common.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.cxx.common.entity.User;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface UserMapper extends BaseMapper<User> {
|
||||
}
|
||||
21
common/src/main/java/com/cxx/common/vo/bill/BillQueryVo.java
Normal file
21
common/src/main/java/com/cxx/common/vo/bill/BillQueryVo.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.cxx.common.vo.bill;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class BillQueryVo {
|
||||
@Schema(description = "账本名称")
|
||||
private String bookName;
|
||||
|
||||
@Schema(description = "账单类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "开始日期")
|
||||
private String startDate;
|
||||
|
||||
@Schema(description = "结束日期")
|
||||
private String endDate;
|
||||
}
|
||||
23
common/src/main/java/com/cxx/common/vo/blog/BlogQueryVo.java
Normal file
23
common/src/main/java/com/cxx/common/vo/blog/BlogQueryVo.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.cxx.common.vo.blog;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @Author: Cxx
|
||||
* @Date: 2024/9/16 19:52
|
||||
* @Description:
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BlogQueryVo {
|
||||
@Schema(description = "博客类别")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "博客标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "博客年份")
|
||||
private Integer year;
|
||||
}
|
||||
15
common/src/main/java/com/cxx/common/vo/plan/PlanQueryVo.java
Normal file
15
common/src/main/java/com/cxx/common/vo/plan/PlanQueryVo.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.cxx.common.vo.plan;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanQueryVo {
|
||||
@Schema(description = "数据类型")
|
||||
private String planType;
|
||||
|
||||
@Schema(description = "排序类型")
|
||||
private String orderType;
|
||||
}
|
||||
Reference in New Issue
Block a user