修改代码生成器

This commit is contained in:
GYJ
2025-02-12 14:29:10 +08:00
parent 87e8c59cf0
commit 88d44f0a77
6 changed files with 191 additions and 27 deletions

View File

@@ -0,0 +1,83 @@
package com.czg.system.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 版本管理 实体类。
*
* @author mac
* @since 2025-02-12
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_version")
public class Version implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@Id(keyType = KeyType.Auto)
private Integer id;
/**
* LDBL_APP;WX;
*/
private String source;
/**
* ios;android;
*/
private String type;
/**
* 版本号
*/
private String version;
/**
* 0不更新1更新
*/
private Integer isUp;
/**
* 更新提示内容
*/
private String message;
/**
* 下载地址
*/
private String url;
/**
* 选中 0否 1是
*/
private Integer sel;
/**
* 创建时间
*/
@Column(onInsertValue = "now()")
private LocalDateTime createTime;
/**
* 更新时间
*/
@Column(onInsertValue = "now()", onUpdateValue = "now()")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,14 @@
package com.czg.system.service;
import com.mybatisflex.core.service.IService;
import com.czg.system.entity.Version;
/**
* 版本管理 服务层。
*
* @author mac
* @since 2025-02-12
*/
public interface VersionService extends IService<Version> {
}