gunshi-project-ss/src/main/java/com/gunshi/project/xyt/model/BzServiceResource.java

103 lines
2.9 KiB
Java
Raw Normal View History

package com.gunshi.project.xyt.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gunshi.core.dateformat.DateFormatString;
import com.gunshi.project.xyt.validate.markers.Insert;
import com.gunshi.project.xyt.validate.markers.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.ToString;
import java.util.Date;
/**
*
*
* @author lyf
* @version 1.0.0
* @since 2024-01-24
*/
@Data
@ToString
@Schema(description = "服务资源")
2024-01-24 17:14:06 +08:00
@TableName("BZ_SERVICE_RESOURCE")
public class BzServiceResource {
@Schema(description = "id")
@TableId("ID")
@NotEmpty(message = "服务ID不能为空", groups = {Update.class})
private String id;
@Schema(description = "服务名称")
@TableField("NAME")
@NotEmpty(message = "服务名称不能为空", groups = {Insert.class})
private String name;
@Schema(description = "服务描述")
@TableField("DESCRIPTION")
private String description;
@Schema(description = "服务类型")
@TableField("SERVICE_TYPE")
private String serviceType;
@Schema(description = "服务地址")
@TableField("URL")
private String url;
@Schema(description = "服务端口")
@TableField("PORT")
private Integer port;
@Schema(description = "服务提供者")
@TableField("PROVIDER")
private String provider;
@Schema(description = "目标表")
@TableField("TARGET_TABLE")
private String targetTable;
@Schema(description = "目标时间依据字段")
@TableField("TARGET_TM_FIELD")
private String targetTmField;
@Schema(description = "路由")
@TableField("ROUTE")
private String route;
@Schema(description = "联系人")
@TableField("CONTACT")
private String contact;
@Schema(description = "联系电话")
@TableField("PHONE")
private String phone;
@Schema(description = "注册日期")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
@TableField("REGISTER_DATE")
private Date registerDate;
@Schema(description = "修改日期")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
@TableField("UPDATE_TM")
private Date updateTm;
@Schema(description = "是否启用0-停用1-启用")
@TableField("ENABLE")
private Integer enable;
@Schema(description = "状态0-不在线/异常1-在线/正常")
@TableField("STATUS")
private Integer status;
@Schema(description = "最近数据时间")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
@TableField("LAST_DATA_TM")
private Date lastChangeTm;
}