Commit 304ba144 authored by 廖旭伟's avatar 廖旭伟

产品模块表结构修改

parent 60e1d7a3
...@@ -19,32 +19,33 @@ CREATE TABLE `mortals_xhx_product` ( ...@@ -19,32 +19,33 @@ CREATE TABLE `mortals_xhx_product` (
-- 产品接口表 -- 产品接口表
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_product_interface`; DROP TABLE IF EXISTS `mortals_xhx_product_interface`;
CREATE TABLE `mortals_xhx_product_interface` ( CREATE TABLE mortals_xhx_product_interface(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长', `id` bigint(20) AUTO_INCREMENT COMMENT '序号,主键,自增长',
`productId` bigint(20) NOT NULL COMMENT '产品id', `productId` bigint(20) NOT NULL COMMENT '产品id',
`interfaceName` varchar(128) NOT NULL COMMENT '接口名称', `interfaceName` varchar(128) NOT NULL COMMENT '接口名称',
`versionNumber` varchar(64) NOT NULL COMMENT '版本号', `versionNumber` varchar(64) NOT NULL COMMENT '版本号',
`requestType` tinyint(2) DEFAULT '1' COMMENT '请求类型1:POST,2:GET', `requestType` tinyint(2) DEFAULT '1' COMMENT '请求类型1:POST,2:GET',
`requestProtocol` tinyint(2) DEFAULT '1' COMMENT '请求协议1:HTTP,2:HTTPS', `requestProtocol` tinyint(2) DEFAULT '1' COMMENT '请求协议1:HTTP,2:HTTPS',
`requestUrl` varchar(128) DEFAULT NULL COMMENT '请求路径', `requestUrl` varchar(128) COMMENT '请求路径',
`timeoutValue` int(8) DEFAULT NULL COMMENT '超时时间(秒)', `timeoutValue` int(8) COMMENT '超时时间(秒)',
`limitStrategy` tinyint(2) DEFAULT NULL COMMENT '限流策略1:分钟,2:小时', `limitStrategy` tinyint(2) COMMENT '限流策略1:分钟,2:小时',
`network` varchar(64) DEFAULT NULL COMMENT '访问网络1互联网2政务网', `network` varchar(64) COMMENT '访问网络1互联网2政务网',
`description` text COMMENT '接口描述', `description` text COMMENT '接口描述',
`flowControl` text COMMENT '流控信息', `contentType` varchar(128) COMMENT '内容类型',
`authorizeInfo` text COMMENT '授权信息', `interfaceTag` tinyint(2) COMMENT '标签',
`interfaceTag` tinyint(2) DEFAULT NULL COMMENT '标签',
`interfaceSource` tinyint(2) DEFAULT '1' COMMENT '来源1自有2非自有', `interfaceSource` tinyint(2) DEFAULT '1' COMMENT '来源1自有2非自有',
`inEncrypt` tinyint(2) COMMENT '入参是否加密',
`requestParameters` text COMMENT '请求参数', `requestParameters` text COMMENT '请求参数',
`outEncrypt` tinyint(2) COMMENT '出参是否加密',
`responseParameters` text COMMENT '响应数据', `responseParameters` text COMMENT '响应数据',
`errorCode` text COMMENT '错误码', `remark` text COMMENT '接口描述',
`changeHistory` text COMMENT '变更历史',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户', `createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间', `createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户', `updateUserId` bigint(20) COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间', `updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品接口表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品接口';
-- ---------------------------- -- ----------------------------
-- 产品应用表 -- 产品应用表
......
...@@ -2,11 +2,11 @@ package com.mortals.xhx.module.product.model; ...@@ -2,11 +2,11 @@ package com.mortals.xhx.module.product.model;
import com.mortals.xhx.module.product.model.vo.ProductInterfaceVo; import com.mortals.xhx.module.product.model.vo.ProductInterfaceVo;
/** /**
* 产品接口实体对象 * 产品接口实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-02-22 * @date 2023-05-16
*/ */
public class ProductInterfaceEntity extends ProductInterfaceVo { public class ProductInterfaceEntity extends ProductInterfaceVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -52,13 +52,9 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -52,13 +52,9 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
*/ */
private String description; private String description;
/** /**
* 流控信息 * 内容类型
*/
private String flowControl;
/**
* 授权信息
*/ */
private String authorizeInfo; private String contentType;
/** /**
* 标签 * 标签
*/ */
...@@ -67,22 +63,26 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -67,22 +63,26 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
* 来源1自有2非自有 * 来源1自有2非自有
*/ */
private Integer interfaceSource; private Integer interfaceSource;
/**
* 入参是否加密
*/
private Integer inEncrypt;
/** /**
* 请求参数 * 请求参数
*/ */
private String requestParameters; private String requestParameters;
/** /**
* 响应数据 * 出参是否加密
*/ */
private String responseParameters; private Integer outEncrypt;
/** /**
* 错误码 * 响应数据
*/ */
private String errorCode; private String responseParameters;
/** /**
* 变更历史 * 接口描述
*/ */
private String changeHistory; private String remark;
...@@ -228,32 +228,18 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -228,32 +228,18 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
this.description = description; this.description = description;
} }
/** /**
* 获取 流控信息 * 获取 内容类型
* @return String
*/
public String getFlowControl(){
return flowControl;
}
/**
* 设置 流控信息
* @param flowControl
*/
public void setFlowControl(String flowControl){
this.flowControl = flowControl;
}
/**
* 获取 授权信息
* @return String * @return String
*/ */
public String getAuthorizeInfo(){ public String getContentType(){
return authorizeInfo; return contentType;
} }
/** /**
* 设置 授权信息 * 设置 内容类型
* @param authorizeInfo * @param contentType
*/ */
public void setAuthorizeInfo(String authorizeInfo){ public void setContentType(String contentType){
this.authorizeInfo = authorizeInfo; this.contentType = contentType;
} }
/** /**
* 获取 标签 * 获取 标签
...@@ -283,6 +269,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -283,6 +269,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
public void setInterfaceSource(Integer interfaceSource){ public void setInterfaceSource(Integer interfaceSource){
this.interfaceSource = interfaceSource; this.interfaceSource = interfaceSource;
} }
/**
* 获取 入参是否加密
* @return Integer
*/
public Integer getInEncrypt(){
return inEncrypt;
}
/**
* 设置 入参是否加密
* @param inEncrypt
*/
public void setInEncrypt(Integer inEncrypt){
this.inEncrypt = inEncrypt;
}
/** /**
* 获取 请求参数 * 获取 请求参数
* @return String * @return String
...@@ -297,6 +297,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -297,6 +297,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
public void setRequestParameters(String requestParameters){ public void setRequestParameters(String requestParameters){
this.requestParameters = requestParameters; this.requestParameters = requestParameters;
} }
/**
* 获取 出参是否加密
* @return Integer
*/
public Integer getOutEncrypt(){
return outEncrypt;
}
/**
* 设置 出参是否加密
* @param outEncrypt
*/
public void setOutEncrypt(Integer outEncrypt){
this.outEncrypt = outEncrypt;
}
/** /**
* 获取 响应数据 * 获取 响应数据
* @return String * @return String
...@@ -312,32 +326,18 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -312,32 +326,18 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
this.responseParameters = responseParameters; this.responseParameters = responseParameters;
} }
/** /**
* 获取 错误码 * 获取 接口描述
* @return String
*/
public String getErrorCode(){
return errorCode;
}
/**
* 设置 错误码
* @param errorCode
*/
public void setErrorCode(String errorCode){
this.errorCode = errorCode;
}
/**
* 获取 变更历史
* @return String * @return String
*/ */
public String getChangeHistory(){ public String getRemark(){
return changeHistory; return remark;
} }
/** /**
* 设置 变更历史 * 设置 接口描述
* @param changeHistory * @param remark
*/ */
public void setChangeHistory(String changeHistory){ public void setRemark(String remark){
this.changeHistory = changeHistory; this.remark = remark;
} }
...@@ -371,14 +371,14 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -371,14 +371,14 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
sb.append(",limitStrategy:").append(getLimitStrategy()); sb.append(",limitStrategy:").append(getLimitStrategy());
sb.append(",network:").append(getNetwork()); sb.append(",network:").append(getNetwork());
sb.append(",description:").append(getDescription()); sb.append(",description:").append(getDescription());
sb.append(",flowControl:").append(getFlowControl()); sb.append(",contentType:").append(getContentType());
sb.append(",authorizeInfo:").append(getAuthorizeInfo());
sb.append(",interfaceTag:").append(getInterfaceTag()); sb.append(",interfaceTag:").append(getInterfaceTag());
sb.append(",interfaceSource:").append(getInterfaceSource()); sb.append(",interfaceSource:").append(getInterfaceSource());
sb.append(",inEncrypt:").append(getInEncrypt());
sb.append(",requestParameters:").append(getRequestParameters()); sb.append(",requestParameters:").append(getRequestParameters());
sb.append(",outEncrypt:").append(getOutEncrypt());
sb.append(",responseParameters:").append(getResponseParameters()); sb.append(",responseParameters:").append(getResponseParameters());
sb.append(",errorCode:").append(getErrorCode()); sb.append(",remark:").append(getRemark());
sb.append(",changeHistory:").append(getChangeHistory());
return sb.toString(); return sb.toString();
} }
...@@ -404,20 +404,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo { ...@@ -404,20 +404,20 @@ public class ProductInterfaceEntity extends ProductInterfaceVo {
this.description = ""; this.description = "";
this.flowControl = ""; this.contentType = "";
this.authorizeInfo = "";
this.interfaceTag = null; this.interfaceTag = null;
this.interfaceSource = 1; this.interfaceSource = 1;
this.inEncrypt = null;
this.requestParameters = ""; this.requestParameters = "";
this.responseParameters = ""; this.outEncrypt = null;
this.errorCode = ""; this.responseParameters = "";
this.changeHistory = ""; this.remark = "";
} }
} }
\ No newline at end of file
...@@ -33,9 +33,12 @@ public class ProductInterfaceController extends BaseCRUDJsonBodyMappingControlle ...@@ -33,9 +33,12 @@ public class ProductInterfaceController extends BaseCRUDJsonBodyMappingControlle
this.addDict(model, "requestType", paramService.getParamBySecondOrganize("ProductInterface","requestType")); this.addDict(model, "requestType", paramService.getParamBySecondOrganize("ProductInterface","requestType"));
this.addDict(model, "requestProtocol", paramService.getParamBySecondOrganize("ProductInterface","requestProtocol")); this.addDict(model, "requestProtocol", paramService.getParamBySecondOrganize("ProductInterface","requestProtocol"));
this.addDict(model, "limitStrategy", paramService.getParamBySecondOrganize("ProductInterface","limitStrategy")); this.addDict(model, "limitStrategy", paramService.getParamBySecondOrganize("ProductInterface","limitStrategy"));
this.addDict(model, "contentType", paramService.getParamBySecondOrganize("ProductInterface","contentType"));
this.addDict(model, "network", paramService.getParamBySecondOrganize("ProductInterface","network")); this.addDict(model, "network", paramService.getParamBySecondOrganize("ProductInterface","network"));
this.addDict(model, "interfaceTag", paramService.getParamBySecondOrganize("ProductInterface","interfaceTag")); this.addDict(model, "interfaceTag", paramService.getParamBySecondOrganize("ProductInterface","interfaceTag"));
this.addDict(model, "interfaceSource", paramService.getParamBySecondOrganize("ProductInterface","interfaceSource")); this.addDict(model, "interfaceSource", paramService.getParamBySecondOrganize("ProductInterface","interfaceSource"));
this.addDict(model, "inEncrypt", paramService.getParamBySecondOrganize("ProductApps","isEnable"));
this.addDict(model, "outEncrypt", paramService.getParamBySecondOrganize("ProductApps","isEnable"));
super.init(model, context); super.init(model, context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment