#新增产品表和产品接口表和控制层
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
package com.maibu.core.business;
|
||||
|
||||
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.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.maibu.core.domain.BaseDO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@@ -20,11 +25,31 @@ public class Product extends BaseDO {
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private String code;
|
||||
|
||||
private String name;
|
||||
|
||||
private String address;
|
||||
private String manufacturer;
|
||||
|
||||
private String remark;
|
||||
private Long categoryId;
|
||||
|
||||
private String protocolCode;
|
||||
|
||||
private String transport;
|
||||
|
||||
private String uploadTopic;
|
||||
|
||||
private String subscribeTopic;
|
||||
|
||||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private Map<String, Object> thingsModels;
|
||||
|
||||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private List<Map<String, Object>> deviceActions;
|
||||
|
||||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private List<Map<String, Object>> events;
|
||||
|
||||
private Integer status;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.maibu.core.business;
|
||||
|
||||
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.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.maibu.core.domain.BaseDO;
|
||||
import com.maibu.core.enums.ConnectType;
|
||||
@@ -22,17 +24,18 @@ public class ProductInterface extends BaseDO {
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
private Long productId;
|
||||
|
||||
private ConnectType type;
|
||||
private String interfaceType;
|
||||
|
||||
private String url;
|
||||
private String interfaceName;
|
||||
|
||||
private String interfaceUrl;
|
||||
|
||||
private String method;
|
||||
|
||||
private String topic;
|
||||
|
||||
private Map<String,Object> params;
|
||||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private Map<String, Object> paramsSchema;
|
||||
|
||||
private String remark;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user