Commit 96f6089b authored by 廖旭伟's avatar 廖旭伟

产品信息、产品应用、产品资料、产品接口功能

parent e3973fe8
This diff is collapsed.
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.List;
/**
* 协议管理Dao
* 协议管理 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductAppsDao extends ICRUDDao<ProductAppsEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.List;
/**
* 产品信息Dao
* 产品信息 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDao extends ICRUDDao<ProductEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.List;
/**
* 协议管理Dao
* 协议管理 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDocumentDao extends ICRUDDao<ProductDocumentEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.List;
/**
* 皮肤配置Dao
* 皮肤配置 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductInterfaceDao extends ICRUDDao<ProductInterfaceEntity,Long>{
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductAppsDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 协议管理DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productAppsDao")
public class ProductAppsDaoImpl extends BaseCRUDDaoMybatis<ProductAppsEntity,Long> implements ProductAppsDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 产品信息DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productDao")
public class ProductDaoImpl extends BaseCRUDDaoMybatis<ProductEntity,Long> implements ProductDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductDocumentDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 协议管理DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productDocumentDao")
public class ProductDocumentDaoImpl extends BaseCRUDDaoMybatis<ProductDocumentEntity,Long> implements ProductDocumentDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductInterfaceDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 皮肤配置DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productInterfaceDao")
public class ProductInterfaceDaoImpl extends BaseCRUDDaoMybatis<ProductInterfaceEntity,Long> implements ProductInterfaceDao {
}
package com.mortals.xhx.module.product.model;
import com.mortals.xhx.module.product.model.vo.ProductAppsVo;
/**
* 产品应用实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductAppsEntity extends ProductAppsVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 应用名称
*/
private String appName;
/**
* 开发语言
*/
private Integer deveLanguage;
/**
* 版本号
*/
private String versionNumber;
/**
* 版本信息
*/
private String versionInfo;
/**
* 应用文件地址
*/
private String appFileUrl;
/**
* 是否启用1是0否
*/
private Integer isEnable;
public ProductAppsEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 应用名称
* @return String
*/
public String getAppName(){
return appName;
}
/**
* 设置 应用名称
* @param appName
*/
public void setAppName(String appName){
this.appName = appName;
}
/**
* 获取 开发语言
* @return Integer
*/
public Integer getDeveLanguage(){
return deveLanguage;
}
/**
* 设置 开发语言
* @param deveLanguage
*/
public void setDeveLanguage(Integer deveLanguage){
this.deveLanguage = deveLanguage;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 版本信息
* @return String
*/
public String getVersionInfo(){
return versionInfo;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public void setVersionInfo(String versionInfo){
this.versionInfo = versionInfo;
}
/**
* 获取 应用文件地址
* @return String
*/
public String getAppFileUrl(){
return appFileUrl;
}
/**
* 设置 应用文件地址
* @param appFileUrl
*/
public void setAppFileUrl(String appFileUrl){
this.appFileUrl = appFileUrl;
}
/**
* 获取 是否启用1是0否
* @return Integer
*/
public Integer getIsEnable(){
return isEnable;
}
/**
* 设置 是否启用1是0否
* @param isEnable
*/
public void setIsEnable(Integer isEnable){
this.isEnable = isEnable;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductAppsEntity) {
ProductAppsEntity tmp = (ProductAppsEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",appName:").append(getAppName());
sb.append(",deveLanguage:").append(getDeveLanguage());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",versionInfo:").append(getVersionInfo());
sb.append(",appFileUrl:").append(getAppFileUrl());
sb.append(",isEnable:").append(getIsEnable());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.appName = "";
this.deveLanguage = null;
this.versionNumber = "";
this.versionInfo = "";
this.appFileUrl = "";
this.isEnable = 1;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductDocumentVo;
/**
* 产品资料实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductDocumentEntity extends ProductDocumentVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 资料名称
*/
private String docName;
/**
* 版本号
*/
private String versionNumber;
/**
* 版本信息
*/
private String versionInfo;
/**
* 资料文件地址
*/
private String docFileUrl;
public ProductDocumentEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 资料名称
* @return String
*/
public String getDocName(){
return docName;
}
/**
* 设置 资料名称
* @param docName
*/
public void setDocName(String docName){
this.docName = docName;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 版本信息
* @return String
*/
public String getVersionInfo(){
return versionInfo;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public void setVersionInfo(String versionInfo){
this.versionInfo = versionInfo;
}
/**
* 获取 资料文件地址
* @return String
*/
public String getDocFileUrl(){
return docFileUrl;
}
/**
* 设置 资料文件地址
* @param docFileUrl
*/
public void setDocFileUrl(String docFileUrl){
this.docFileUrl = docFileUrl;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductDocumentEntity) {
ProductDocumentEntity tmp = (ProductDocumentEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",docName:").append(getDocName());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",versionInfo:").append(getVersionInfo());
sb.append(",docFileUrl:").append(getDocFileUrl());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.docName = "";
this.versionNumber = "";
this.versionInfo = "";
this.docFileUrl = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductVo;
/**
* 产品信息实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductEntity extends ProductVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 产品名称
*/
private String productName;
/**
* Logo图片地址
*/
private String logoUrl;
/**
* 产品编码
*/
private String productCode;
public ProductEntity(){}
/**
* 获取 站点id
* @return Long
*/
public Long getSiteId(){
return siteId;
}
/**
* 设置 站点id
* @param siteId
*/
public void setSiteId(Long siteId){
this.siteId = siteId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 Logo图片地址
* @return String
*/
public String getLogoUrl(){
return logoUrl;
}
/**
* 设置 Logo图片地址
* @param logoUrl
*/
public void setLogoUrl(String logoUrl){
this.logoUrl = logoUrl;
}
/**
* 获取 产品编码
* @return String
*/
public String getProductCode(){
return productCode;
}
/**
* 设置 产品编码
* @param productCode
*/
public void setProductCode(String productCode){
this.productCode = productCode;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductEntity) {
ProductEntity tmp = (ProductEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",siteId:").append(getSiteId());
sb.append(",productName:").append(getProductName());
sb.append(",logoUrl:").append(getLogoUrl());
sb.append(",productCode:").append(getProductCode());
return sb.toString();
}
public void initAttrValue(){
this.siteId = null;
this.productName = "";
this.logoUrl = "";
this.productCode = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import com.mortals.xhx.module.product.model.vo.ProductInterfaceVo;
/**
* 产品接口实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductInterfaceEntity extends ProductInterfaceVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 接口名称
*/
private String interfaceName;
/**
* 版本号
*/
private String versionNumber;
/**
* 请求类型1:POST,2:GET
*/
private Integer requestType;
/**
* 请求协议1:HTTP,2:HTTPS
*/
private Integer requestProtocol;
/**
* 请求路径
*/
private String requestUrl;
/**
* 超时时间(秒)
*/
private Long timeoutValue;
/**
* 限流策略1:分钟,2:小时
*/
private Integer limitStrategy;
/**
* 访问网络1互联网2政务网
*/
private String network;
/**
* 接口描述
*/
private String description;
/**
* 流控信息
*/
private String flowControl;
/**
* 授权信息
*/
private String authorizeInfo;
/**
* 标签
*/
private Integer interfaceTag;
/**
* 来源1自有2非自有
*/
private Integer interfaceSource;
/**
* 请求参数
*/
private String requestParameters;
/**
* 响应数据
*/
private String responseParameters;
/**
* 错误码
*/
private String errorCode;
/**
* 变更历史
*/
private String changeHistory;
public ProductInterfaceEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 接口名称
* @return String
*/
public String getInterfaceName(){
return interfaceName;
}
/**
* 设置 接口名称
* @param interfaceName
*/
public void setInterfaceName(String interfaceName){
this.interfaceName = interfaceName;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 请求类型1:POST,2:GET
* @return Integer
*/
public Integer getRequestType(){
return requestType;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestType
*/
public void setRequestType(Integer requestType){
this.requestType = requestType;
}
/**
* 获取 请求协议1:HTTP,2:HTTPS
* @return Integer
*/
public Integer getRequestProtocol(){
return requestProtocol;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocol
*/
public void setRequestProtocol(Integer requestProtocol){
this.requestProtocol = requestProtocol;
}
/**
* 获取 请求路径
* @return String
*/
public String getRequestUrl(){
return requestUrl;
}
/**
* 设置 请求路径
* @param requestUrl
*/
public void setRequestUrl(String requestUrl){
this.requestUrl = requestUrl;
}
/**
* 获取 超时时间(秒)
* @return Long
*/
public Long getTimeoutValue(){
return timeoutValue;
}
/**
* 设置 超时时间(秒)
* @param timeoutValue
*/
public void setTimeoutValue(Long timeoutValue){
this.timeoutValue = timeoutValue;
}
/**
* 获取 限流策略1:分钟,2:小时
* @return Integer
*/
public Integer getLimitStrategy(){
return limitStrategy;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategy
*/
public void setLimitStrategy(Integer limitStrategy){
this.limitStrategy = limitStrategy;
}
/**
* 获取 访问网络1互联网2政务网
* @return String
*/
public String getNetwork(){
return network;
}
/**
* 设置 访问网络1互联网2政务网
* @param network
*/
public void setNetwork(String network){
this.network = network;
}
/**
* 获取 接口描述
* @return String
*/
public String getDescription(){
return description;
}
/**
* 设置 接口描述
* @param description
*/
public void setDescription(String description){
this.description = description;
}
/**
* 获取 流控信息
* @return String
*/
public String getFlowControl(){
return flowControl;
}
/**
* 设置 流控信息
* @param flowControl
*/
public void setFlowControl(String flowControl){
this.flowControl = flowControl;
}
/**
* 获取 授权信息
* @return String
*/
public String getAuthorizeInfo(){
return authorizeInfo;
}
/**
* 设置 授权信息
* @param authorizeInfo
*/
public void setAuthorizeInfo(String authorizeInfo){
this.authorizeInfo = authorizeInfo;
}
/**
* 获取 标签
* @return Integer
*/
public Integer getInterfaceTag(){
return interfaceTag;
}
/**
* 设置 标签
* @param interfaceTag
*/
public void setInterfaceTag(Integer interfaceTag){
this.interfaceTag = interfaceTag;
}
/**
* 获取 来源1自有2非自有
* @return Integer
*/
public Integer getInterfaceSource(){
return interfaceSource;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSource
*/
public void setInterfaceSource(Integer interfaceSource){
this.interfaceSource = interfaceSource;
}
/**
* 获取 请求参数
* @return String
*/
public String getRequestParameters(){
return requestParameters;
}
/**
* 设置 请求参数
* @param requestParameters
*/
public void setRequestParameters(String requestParameters){
this.requestParameters = requestParameters;
}
/**
* 获取 响应数据
* @return String
*/
public String getResponseParameters(){
return responseParameters;
}
/**
* 设置 响应数据
* @param responseParameters
*/
public void setResponseParameters(String responseParameters){
this.responseParameters = responseParameters;
}
/**
* 获取 错误码
* @return String
*/
public String getErrorCode(){
return errorCode;
}
/**
* 设置 错误码
* @param errorCode
*/
public void setErrorCode(String errorCode){
this.errorCode = errorCode;
}
/**
* 获取 变更历史
* @return String
*/
public String getChangeHistory(){
return changeHistory;
}
/**
* 设置 变更历史
* @param changeHistory
*/
public void setChangeHistory(String changeHistory){
this.changeHistory = changeHistory;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductInterfaceEntity) {
ProductInterfaceEntity tmp = (ProductInterfaceEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",interfaceName:").append(getInterfaceName());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",requestType:").append(getRequestType());
sb.append(",requestProtocol:").append(getRequestProtocol());
sb.append(",requestUrl:").append(getRequestUrl());
sb.append(",timeoutValue:").append(getTimeoutValue());
sb.append(",limitStrategy:").append(getLimitStrategy());
sb.append(",network:").append(getNetwork());
sb.append(",description:").append(getDescription());
sb.append(",flowControl:").append(getFlowControl());
sb.append(",authorizeInfo:").append(getAuthorizeInfo());
sb.append(",interfaceTag:").append(getInterfaceTag());
sb.append(",interfaceSource:").append(getInterfaceSource());
sb.append(",requestParameters:").append(getRequestParameters());
sb.append(",responseParameters:").append(getResponseParameters());
sb.append(",errorCode:").append(getErrorCode());
sb.append(",changeHistory:").append(getChangeHistory());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.interfaceName = "";
this.versionNumber = "";
this.requestType = 1;
this.requestProtocol = 1;
this.requestUrl = "";
this.timeoutValue = null;
this.limitStrategy = null;
this.network = "";
this.description = "";
this.flowControl = "";
this.authorizeInfo = "";
this.interfaceTag = null;
this.interfaceSource = 1;
this.requestParameters = "";
this.responseParameters = "";
this.errorCode = "";
this.changeHistory = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 协议管理视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductAppsVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 协议管理视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductDocumentVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 皮肤配置视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductInterfaceVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 产品信息视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
/**
* ProductAppsService
*
* 产品应用 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductAppsService extends ICRUDService<ProductAppsEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
/**
* ProductDocumentService
*
* 产品资料 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDocumentService extends ICRUDService<ProductDocumentEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
/**
* ProductInterfaceService
*
* 产品接口 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductInterfaceService extends ICRUDService<ProductInterfaceEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductEntity;
/**
* ProductService
*
* 产品信息 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductService extends ICRUDService<ProductEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductAppsDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import com.mortals.xhx.module.product.service.ProductAppsService;
/**
* ProductAppsService
* 产品应用 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productAppsService")
public class ProductAppsServiceImpl extends AbstractCRUDServiceImpl<ProductAppsDao, ProductAppsEntity, Long> implements ProductAppsService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductDocumentDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import com.mortals.xhx.module.product.service.ProductDocumentService;
/**
* ProductDocumentService
* 产品资料 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productDocumentService")
public class ProductDocumentServiceImpl extends AbstractCRUDServiceImpl<ProductDocumentDao, ProductDocumentEntity, Long> implements ProductDocumentService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductInterfaceDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import com.mortals.xhx.module.product.service.ProductInterfaceService;
/**
* ProductInterfaceService
* 产品接口 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productInterfaceService")
public class ProductInterfaceServiceImpl extends AbstractCRUDServiceImpl<ProductInterfaceDao, ProductInterfaceEntity, Long> implements ProductInterfaceService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import com.mortals.xhx.module.product.service.ProductService;
/**
* ProductService
* 产品信息 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productService")
public class ProductServiceImpl extends AbstractCRUDServiceImpl<ProductDao, ProductEntity, Long> implements ProductService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.param.service.ParamService;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import com.mortals.xhx.module.product.service.ProductAppsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品应用
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/apps")
public class ProductAppsController extends BaseCRUDJsonBodyMappingController<ProductAppsService,ProductAppsEntity,Long> {
@Autowired
private ParamService paramService;
public ProductAppsController(){
super.setModuleDesc( "产品应用");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "deveLanguage", paramService.getParamBySecondOrganize("ProductApps","deveLanguage"));
this.addDict(model, "isEnable", paramService.getParamBySecondOrganize("ProductApps","isEnable"));
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.product.model.ProductEntity;
import com.mortals.xhx.module.product.service.ProductService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品信息
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product")
public class ProductController extends BaseCRUDJsonBodyMappingController<ProductService,ProductEntity,Long> {
public ProductController(){
super.setModuleDesc( "产品信息");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import com.mortals.xhx.module.product.service.ProductDocumentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 协议管理
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/document")
public class ProductDocumentController extends BaseCRUDJsonBodyMappingController<ProductDocumentService,ProductDocumentEntity,Long> {
public ProductDocumentController(){
super.setModuleDesc( "产品资料");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.param.service.ParamService;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import com.mortals.xhx.module.product.service.ProductInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品接口
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/interface")
public class ProductInterfaceController extends BaseCRUDJsonBodyMappingController<ProductInterfaceService,ProductInterfaceEntity,Long> {
@Autowired
private ParamService paramService;
public ProductInterfaceController(){
super.setModuleDesc( "产品接口");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "requestType", paramService.getParamBySecondOrganize("ProductInterface","requestType"));
this.addDict(model, "requestProtocol", paramService.getParamBySecondOrganize("ProductInterface","requestProtocol"));
this.addDict(model, "limitStrategy", paramService.getParamBySecondOrganize("ProductInterface","limitStrategy"));
this.addDict(model, "network", paramService.getParamBySecondOrganize("ProductInterface","network"));
this.addDict(model, "interfaceTag", paramService.getParamBySecondOrganize("ProductInterface","interfaceTag"));
this.addDict(model, "interfaceSource", paramService.getParamBySecondOrganize("ProductInterface","interfaceSource"));
super.init(model, context);
}
}
\ No newline at end of file
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