69 lines
2.1 KiB
Java
69 lines
2.1 KiB
Java
|
|
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 jakarta.validation.constraints.NotNull;
|
|||
|
|
import lombok.Data;
|
|||
|
|
import lombok.ToString;
|
|||
|
|
|
|||
|
|
import java.util.Date;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 接收协议
|
|||
|
|
*
|
|||
|
|
* @author lyf
|
|||
|
|
* @version 1.0.0
|
|||
|
|
* @since 2024-01-23
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@ToString
|
|||
|
|
@Schema(description = "接收协议")
|
|||
|
|
@TableName("BZ_PROTOCOL_INFO")
|
|||
|
|
public class BzProtocolInfo {
|
|||
|
|
|
|||
|
|
@NotEmpty(message = "协议编码不能为空", groups = {Insert.class, Update.class})
|
|||
|
|
@Schema(description = "协议编码")
|
|||
|
|
@TableId("ID")
|
|||
|
|
private String id;
|
|||
|
|
|
|||
|
|
@NotEmpty(message = "协议名称不能为空", groups = {Insert.class})
|
|||
|
|
@Schema(description = "协议名称")
|
|||
|
|
@TableField("NAME")
|
|||
|
|
private String name;
|
|||
|
|
|
|||
|
|
@NotEmpty(message = "IP地址不能为空", groups = {Insert.class})
|
|||
|
|
@Schema(description = "IP地址")
|
|||
|
|
@TableField("IP")
|
|||
|
|
private String ip;
|
|||
|
|
|
|||
|
|
@NotNull(message = "监听端口不能为空", groups = {Insert.class})
|
|||
|
|
@Schema(description = "监听端口")
|
|||
|
|
@TableField("PORT")
|
|||
|
|
private Integer port;
|
|||
|
|
|
|||
|
|
@NotEmpty(message = "协议标准不能为空", groups = {Insert.class})
|
|||
|
|
@Schema(description = "协议标准")
|
|||
|
|
@TableField("STD")
|
|||
|
|
private String std;
|
|||
|
|
|
|||
|
|
@Schema(description = "传输协议,TCP或UDP")
|
|||
|
|
@TableField("TRANS")
|
|||
|
|
private String trans;
|
|||
|
|
|
|||
|
|
@Schema(description = "是否启用", $comment = "1启用,0不启用,默认1")
|
|||
|
|
@TableField(value = "ENABLE")
|
|||
|
|
private Integer enable;
|
|||
|
|
|
|||
|
|
@Schema(description = "创建时间")
|
|||
|
|
@TableField(value = "CREATE_TM")
|
|||
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|||
|
|
private Date createTm;
|
|||
|
|
}
|