Commit 248a6e56 by wnb0128

车家智能后台管理 场景模板添加页面图标字段--think.wang

1 parent bf06688a
......@@ -56,6 +56,12 @@ public class SceneTemplateReq extends BaseDTO {
private Long backPic;
/**
* 列表页面图ID 关联smart_sys_file中id
*/
@NotNull(message = "pagePic不能为空", groups = {GroupA.class})
private Long pagePic;
/**
* 查看次数
*/
private Long viewTimes;
......
package com.glsx.admin.pojo.request;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 车家智能用户场景数据表
*/
@Data
@Table(name = "smart_scene_data")
public class SmartSceneDataReq {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 场景ID 关联smart_scene中id
*/
private Long sceneId;
/**
* 类型 1触发条件 2执行内容
*/
private Byte type;
/**
* 排序
*/
private Byte sort;
/**
* 参数key
*/
private String paramKey;
/**
* 参数值 数组对象
*/
private String paramValue;
}
package com.glsx.admin.pojo.request;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import lombok.Data;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能用户场景表
*/
@Data
@Table(name = "smart_scene")
public class SmartSceneReq {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 用户ID 关联smart_user_relation中id
*/
private Long userId;
/**
* 场景名称
*/
private String scenesName;
/**
* 场景类型key 关联smart_sys_code中dict_key
*/
private String typeKey;
/**
* 场景图标ID 关联smart_sys_file中id
*/
private Long icon;
/**
* 场景背景图ID 关联smart_sys_file中id
*/
private Long backPic;
/**
* 查看次数
*/
private Long viewTimes;
/**
* 场景描述
*/
private String description;
/**
* 条件规则 1任一条件 2全部条件
*/
private Byte conditionRule;
/**
* 执行周期 1每天 2工作日 3法定节假日
*/
private Byte executeCycle;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
}
......@@ -51,14 +51,24 @@ public class SceneTemplateResp {
private Long backPic;
/**
* 列表页面图ID 关联smart_sys_file中id
*/
private Long pagePic;
/**
* 场景背景图
*/
private String backPicUrl;
/**
* 列表页面图
*/
private String pagePicUrl;
/**
* 查看次数
*/
private Long viewTimes=0L;
private Long viewTimes = 0L;
/**
* 场景描述
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!