设备绑定相关接口
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.njcn.algorithm.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/18 13:49【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@ApiModel(value="装置与模板表新增Model")
|
||||
@Data
|
||||
public class CsDevModelRelationAddParm {
|
||||
|
||||
|
||||
@ApiModelProperty(value="装置 id")
|
||||
@NotNull(message="装置 id不能为空!")
|
||||
private String devId;
|
||||
|
||||
@ApiModelProperty(value="模板 id")
|
||||
@NotNull(message="模板 id不能为空!")
|
||||
private String modelId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.njcn.algorithm.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/18 13:49【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@ApiModel(value="装置与模板表修改Model")
|
||||
@Data
|
||||
public class CsDevModelRelationAuidtParm {
|
||||
@NotBlank(message="id不能为空!")
|
||||
@ApiModelProperty(value="id")
|
||||
private String id;
|
||||
@NotBlank(message="装置id不能为空!")
|
||||
private String devId;
|
||||
|
||||
@ApiModelProperty(value="模板 id")
|
||||
private String modelId;
|
||||
|
||||
@ApiModelProperty(value="状态(0:删除 1:正常)")
|
||||
private String status;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.algorithm.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/18 13:49【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class CsDevModelRelationQueryParm {
|
||||
|
||||
@ApiModelProperty(value="id")
|
||||
private String id;
|
||||
@ApiModelProperty(value="装置 id")
|
||||
private String devId;
|
||||
|
||||
@ApiModelProperty(value="模板 id")
|
||||
private String modelId;
|
||||
|
||||
@ApiModelProperty(value="状态(0:删除 1:正常)")
|
||||
private String status;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.njcn.algorithm.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/18 13:49【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "cs_dev_model_relation")
|
||||
public class CsDevModelRelationPO extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
@TableField(value = "dev_id")
|
||||
private String devId;
|
||||
|
||||
@TableField(value = "model_id")
|
||||
private String modelId;
|
||||
|
||||
/**
|
||||
* 状态(0:删除 1:正常)
|
||||
*/
|
||||
@TableField(value = "status")
|
||||
@ApiModelProperty(value="状态(0:删除 1:正常)")
|
||||
private String status;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.njcn.algorithm.pojo.vo;
|
||||
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2023/4/18 13:49【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@ApiModel(value="装置与模板表的对应Model")
|
||||
@Data
|
||||
public class CsDevModelRelationVO extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty(value="id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value="装置 id")
|
||||
private String devId;
|
||||
|
||||
@ApiModelProperty(value="模板 id")
|
||||
private String modelId;
|
||||
|
||||
/**
|
||||
* 状态(0:删除 1:正常)
|
||||
*/
|
||||
@ApiModelProperty(value="状态(0:删除 1:正常)")
|
||||
private String status;
|
||||
}
|
||||
Reference in New Issue
Block a user