Commit 80bc447734f8382d85c461b6a2c28de1da8b291c

Authored by alexyang
1 parent f81fe93f

ini

Showing 34 changed files with 4714 additions and 0 deletions

Too many changes to show.

To preserve performance only 34 of 96 files are displayed.

titan-sdk/pom.xml 0 → 100644
  1 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3 + <modelVersion>4.0.0</modelVersion>
  4 +
  5 +<!-- <groupId>com.yqyw.titan</groupId> -->
  6 +<!-- <artifactId>titan-sdk</artifactId> -->
  7 +<!-- <version>1.1.1.RELEASE</version> -->
  8 +<!-- <packaging>jar</packaging> -->
  9 +
  10 + <groupId>com.yqyw.titan</groupId>
  11 + <artifactId>titan-sdk</artifactId>
  12 + <version>0.0.2-SNAPSHOT</version>
  13 + <packaging>jar</packaging>
  14 +
  15 + <name>titan-sdk</name>
  16 + <url>http://maven.apache.org</url>
  17 +
  18 + <!--<distributionManagement>-->
  19 + <!--<repository>-->
  20 + <!--<id>central</id>-->
  21 + <!--<name>libs-release</name>-->
  22 + <!--<url>http://mvn2.diligrp.com/artifactory/libs-release-local</url>-->
  23 + <!--</repository>-->
  24 + <!--<snapshotRepository>-->
  25 + <!--<id>snapshots</id>-->
  26 + <!--<name>libs-snapshot</name>-->
  27 + <!--<url>http://mvn2.diligrp.com/artifactory/libs-snapshot-local</url>-->
  28 + <!--</snapshotRepository>-->
  29 + <!--</distributionManagement>-->
  30 +
  31 + <distributionManagement>
  32 + <snapshotRepository>
  33 + <id>nexus</id>
  34 + <name>Nexus Snapshot</name>
  35 + <url>http://10.28.10.127:8081/repository/maven-snapshots/</url>
  36 + </snapshotRepository>
  37 + <repository>
  38 + <id>nexus</id>
  39 + <name>Nexus Snapshot</name>
  40 + <url>http://10.28.10.127:8081/repository/maven-releases/</url>
  41 + </repository>
  42 + </distributionManagement>
  43 +
  44 +
  45 + <properties>
  46 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  47 + </properties>
  48 +
  49 + <dependencies>
  50 + <dependency>
  51 + <groupId>junit</groupId>
  52 + <artifactId>junit</artifactId>
  53 + <version>4.4</version>
  54 + </dependency>
  55 + <dependency>
  56 + <groupId>log4j</groupId>
  57 + <artifactId>log4j</artifactId>
  58 + <version>1.2.16</version>
  59 + </dependency>
  60 + <dependency>
  61 + <groupId>commons-codec</groupId>
  62 + <artifactId>commons-codec</artifactId>
  63 + <version>1.6</version>
  64 + </dependency>
  65 +
  66 + <!-- HTTPClient -->
  67 + <dependency>
  68 + <groupId>org.apache.httpcomponents</groupId>
  69 + <artifactId>httpclient</artifactId>
  70 + <version>4.3.3</version>
  71 + </dependency>
  72 +
  73 + <!-- JSON -->
  74 + <dependency>
  75 + <groupId>com.alibaba</groupId>
  76 + <artifactId>fastjson</artifactId>
  77 + <version>1.1.31</version>
  78 + </dependency>
  79 + </dependencies>
  80 +
  81 + <build>
  82 + <finalName>diligrp-titan-sdk</finalName>
  83 + <plugins>
  84 + <plugin>
  85 + <artifactId>maven-compiler-plugin</artifactId>
  86 + <version>2.3.1</version>
  87 + <configuration>
  88 + <source>1.6</source>
  89 + <target>1.6</target>
  90 + <encoding>utf-8</encoding>
  91 + </configuration>
  92 + <dependencies>
  93 + <dependency>
  94 + <groupId>org.codehaus.plexus</groupId>
  95 + <artifactId>plexus-compiler-javac</artifactId>
  96 + <version>1.8.1</version>
  97 + </dependency>
  98 + </dependencies>
  99 + </plugin>
  100 + <plugin>
  101 + <artifactId>maven-source-plugin</artifactId>
  102 + <version>2.1</version>
  103 + <configuration>
  104 + <attach>true</attach>
  105 + </configuration>
  106 + <executions>
  107 + <execution>
  108 + <phase>compile</phase>
  109 + <goals>
  110 + <goal>jar</goal>
  111 + </goals>
  112 + </execution>
  113 + </executions>
  114 + </plugin>
  115 + <plugin>
  116 + <groupId>org.apache.maven.plugins</groupId>
  117 + <artifactId>maven-javadoc-plugin</artifactId>
  118 + <version>2.9.1</version>
  119 + </plugin>
  120 + </plugins>
  121 + </build>
  122 +</project>
titan-sdk/src/main/java/com/diligrp/titan/sdk/TitanClient.java 0 → 100644
  1 +package com.diligrp.titan.sdk;
  2 +
  3 +import com.diligrp.titan.sdk.service.*;
  4 +import com.diligrp.titan.sdk.service.impl.*;
  5 +
  6 +/**
  7 + *
  8 + * <B>Description</B> TitanClient,SDK入口,初始化商品库服务 <br />
  9 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  10 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  11 + * <B>Company</B> 地利集团
  12 + * @createTime 2014年5月15日 下午2:11:15
  13 + * @author dili-guwenwu
  14 + */
  15 +public class TitanClient {
  16 +
  17 + private ProductService productService;
  18 + private CategoryService categoryService;
  19 + private AttributeService attributeService;
  20 + private StockService stockService;
  21 + private CommentService commentService;
  22 + private AuthService authService;
  23 + private SupplyService supplyService;
  24 + private PurchaseService purchaseService;
  25 + private SupplierService supplierService;
  26 + private PresaleService presaleService;
  27 + private IndexCategoryService indexCategoryService;
  28 + private static String PATH_PERFIX = "http://titan.api.1n4j.com";
  29 +
  30 + /**
  31 + * 初始化TitanClient,用于获取商品库系统的各种服务
  32 + * @param accesskey 应用accesskey,由Titan系统分配,用于权限验证
  33 + * @param secretkey 应用secretkey,由Titan系统分配,用于权限验证
  34 + */
  35 + public TitanClient(String accesskey, String secretkey) {
  36 + productService = new ProductServiceImpl(accesskey, secretkey);
  37 + categoryService = new CategoryServiceImpl(accesskey, secretkey);
  38 + attributeService = new AttributeServiceImpl(accesskey, secretkey);
  39 + stockService = new StockServiceImpl(accesskey, secretkey);
  40 + commentService = new CommentServiceImpl(accesskey, secretkey);
  41 + authService = new AuthServiceImpl(accesskey, secretkey);
  42 + supplierService = new SupplierServiceImpl(accesskey, secretkey);
  43 + supplyService = new SupplyServiceImpl(accesskey, secretkey);
  44 + presaleService = new PresaleServiceImpl(accesskey, secretkey);
  45 + purchaseService = new PurchaseServiceImpl(accesskey, secretkey);
  46 + indexCategoryService = new IndexCategoryServiceImpl(accesskey, secretkey);
  47 + }
  48 +
  49 + /**
  50 + * 初始化TitanClient,用于获取商品库系统的各种服务
  51 + * @param accesskey 应用accesskey,由Titan系统分配,用于权限验证
  52 + * @param secretkey 应用secretkey,由Titan系统分配,用于权限验证
  53 + * @param timeOut 超时时间
  54 + */
  55 + public TitanClient(String accesskey, String secretkey,int timeOut) {
  56 + productService = new ProductServiceImpl(accesskey, secretkey,timeOut);
  57 + categoryService = new CategoryServiceImpl(accesskey, secretkey,timeOut);
  58 + attributeService = new AttributeServiceImpl(accesskey, secretkey,timeOut);
  59 + stockService = new StockServiceImpl(accesskey, secretkey,timeOut);
  60 + commentService = new CommentServiceImpl(accesskey, secretkey,timeOut);
  61 + authService = new AuthServiceImpl(accesskey, secretkey,timeOut);
  62 + supplierService = new SupplierServiceImpl(accesskey, secretkey,timeOut);
  63 + supplyService = new SupplyServiceImpl(accesskey, secretkey,timeOut);
  64 + presaleService = new PresaleServiceImpl(accesskey, secretkey,timeOut);
  65 + purchaseService = new PurchaseServiceImpl(accesskey, secretkey,timeOut);
  66 + indexCategoryService = new IndexCategoryServiceImpl(accesskey, secretkey,timeOut);
  67 + }
  68 +
  69 +
  70 + public TitanClient(String accesskey, String secretkey, String url) {
  71 + productService = new ProductServiceImpl(accesskey, secretkey);
  72 + categoryService = new CategoryServiceImpl(accesskey, secretkey);
  73 + attributeService = new AttributeServiceImpl(accesskey, secretkey);
  74 + stockService = new StockServiceImpl(accesskey, secretkey);
  75 + commentService = new CommentServiceImpl(accesskey, secretkey);
  76 + authService = new AuthServiceImpl(accesskey, secretkey);
  77 + supplierService = new SupplierServiceImpl(accesskey, secretkey);
  78 + supplyService = new SupplyServiceImpl(accesskey, secretkey);
  79 + presaleService = new PresaleServiceImpl(accesskey, secretkey);
  80 + purchaseService = new PurchaseServiceImpl(accesskey, secretkey);
  81 + indexCategoryService = new IndexCategoryServiceImpl(accesskey, secretkey);
  82 + PATH_PERFIX = url;
  83 + }
  84 +
  85 + public TitanClient(String accesskey, String secretkey, String url,int timeOut) {
  86 + productService = new ProductServiceImpl(accesskey, secretkey,timeOut);
  87 + categoryService = new CategoryServiceImpl(accesskey, secretkey,timeOut);
  88 + attributeService = new AttributeServiceImpl(accesskey, secretkey,timeOut);
  89 + stockService = new StockServiceImpl(accesskey, secretkey,timeOut);
  90 + commentService = new CommentServiceImpl(accesskey, secretkey,timeOut);
  91 + authService = new AuthServiceImpl(accesskey, secretkey,timeOut);
  92 + supplierService = new SupplierServiceImpl(accesskey, secretkey,timeOut);
  93 + supplyService = new SupplyServiceImpl(accesskey, secretkey,timeOut);
  94 + presaleService = new PresaleServiceImpl(accesskey, secretkey,timeOut);
  95 + purchaseService = new PurchaseServiceImpl(accesskey, secretkey,timeOut);
  96 + indexCategoryService = new IndexCategoryServiceImpl(accesskey, secretkey,timeOut);
  97 + PATH_PERFIX = url;
  98 + }
  99 +
  100 + /**
  101 + *
  102 + * 获取商品服务
  103 + * @return {@link ProductService}
  104 + */
  105 + public ProductService getProductService() {
  106 + return productService;
  107 + }
  108 +
  109 + /**
  110 + *
  111 + * 获取类目服务
  112 + * @return {@link CategoryService}
  113 + */
  114 + public CategoryService getCategoryService() {
  115 + return categoryService;
  116 + }
  117 +
  118 + /**
  119 + *
  120 + * 获取库存服务
  121 + * @return {@link StockService}
  122 + */
  123 + public StockService getStockService() {
  124 + return stockService;
  125 + }
  126 +
  127 + /**
  128 + *
  129 + * 获取商品评论服务
  130 + * @return {@link CommentService}
  131 + */
  132 + public CommentService getCommentService() {
  133 + return commentService;
  134 + }
  135 +
  136 + /**
  137 + *
  138 + * 获取供应商服务
  139 + * @return {@link SupplierService}
  140 + */
  141 + public SupplierService getSupplierService() {
  142 + return supplierService;
  143 + }
  144 +
  145 + public static String getPATH_PERFIX() {
  146 + return PATH_PERFIX;
  147 + }
  148 +
  149 + public AuthService getAuthService() {
  150 + return authService;
  151 + }
  152 +
  153 + /**
  154 + * get value of TitanClient.supplyService
  155 + * @return the supplyService
  156 + * @createTime 2014年12月17日 下午7:21:11
  157 + * @author ywd_26
  158 + */
  159 + public SupplyService getSupplyService() {
  160 + return supplyService;
  161 + }
  162 +
  163 + public PurchaseService getPurchaseService() {
  164 + return purchaseService;
  165 + }
  166 +
  167 + public IndexCategoryService getIndexCategoryService() {
  168 + return indexCategoryService;
  169 + }
  170 +
  171 + public AttributeService getAttributeService() {
  172 + return attributeService;
  173 + }
  174 +
  175 + public PresaleService getPresaleService() {
  176 + return presaleService;
  177 + }
  178 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/codec/HmacSha1.java 0 → 100644
  1 +package com.diligrp.titan.sdk.codec;
  2 +
  3 +import javax.crypto.Mac;
  4 +import javax.crypto.spec.SecretKeySpec;
  5 +
  6 +public class HmacSha1 {
  7 +
  8 + private static final String HMAC_SHA1 = "HmacSHA1";
  9 + private static final String ENCODING = "utf-8";
  10 +
  11 + /**
  12 + *
  13 + * @param value
  14 + * @param key
  15 + * @return
  16 + * @throws Exception
  17 + */
  18 + public static byte[] encodeHmacSha1(String value, String key) throws Exception {
  19 + // Get an hmac_sha1 key from the raw key bytes
  20 + byte[] keyBytes = key.getBytes(ENCODING);
  21 + SecretKeySpec signingKey = new SecretKeySpec(keyBytes, HMAC_SHA1);
  22 +
  23 + // Get an hmac_sha1 Mac instance and initialize with the signing key
  24 + Mac mac = Mac.getInstance(HMAC_SHA1);
  25 + mac.init(signingKey);
  26 +
  27 + // Compute the hmac on input data bytes
  28 + return mac.doFinal(value.getBytes(ENCODING));
  29 + }
  30 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/constant/PpsConstant.java 0 → 100644
  1 +package com.diligrp.titan.sdk.constant;
  2 +
  3 +/**
  4 + *供应求购预售状态常量
  5 + */
  6 +public class PpsConstant {
  7 + /**
  8 + * 状态:待审核
  9 + */
  10 + public static final int STATUS_NEW = 1;
  11 + /**
  12 + * 状态:审核通过
  13 + */
  14 + public static final int STATUS_PASS = 2;
  15 + /**
  16 + * 状态:审核失败
  17 + */
  18 + public static final int STATUS_DENIED = 3;
  19 + /**
  20 + * 状态:过期
  21 + */
  22 + public static final int STATUS_EXPIRE = 4;
  23 + /**
  24 + * 状态:删除
  25 + */
  26 + public static final int STATUS_DEL = -1;
  27 +
  28 + /**
  29 + * 来源:PC端
  30 + */
  31 + public static final int SOURCES_PC = 1;
  32 +
  33 + /**
  34 + * 来源:手机端
  35 + */
  36 + public static final int SOURCES_MOBILE = 2;
  37 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/constant/TopTypeEnum.java 0 → 100644
  1 +package com.diligrp.titan.sdk.constant;
  2 +
  3 +/**
  4 + * Created by gsz on 2015/11/12.
  5 + */
  6 +public enum TopTypeEnum {
  7 + //分类排序
  8 + CATE(1),
  9 + //市场排序
  10 + SC(2),
  11 + //产地排序
  12 + CD(3),
  13 + //农户排序
  14 + NH(4);
  15 + private int code;
  16 +
  17 + private TopTypeEnum(int code) {
  18 + this.code = code;
  19 + }
  20 +
  21 + public static TopTypeEnum getEnum(int code){
  22 + TopTypeEnum[] topTypeEnums = TopTypeEnum.values();
  23 + for(TopTypeEnum topTypeEnum : topTypeEnums){
  24 + if(topTypeEnum.code==code){
  25 + return topTypeEnum;
  26 + }
  27 + }
  28 + return null;
  29 + }
  30 +
  31 + public int getCode(){
  32 + return code;
  33 + }
  34 +
  35 + @Override
  36 + public String toString() {
  37 + return String.valueOf(code);
  38 + }
  39 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ApplicationInfo.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Date;
  4 +
  5 +/**
  6 + * 第三方卖家商品申请详情 <B>Description</B> TODO <br />
  7 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  8 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  9 + * <B>Company</B> 地利集团
  10 + * @createTime 2014年5月15日 上午11:59:17
  11 + * @author dili-guwenwu
  12 + */
  13 +public class ApplicationInfo {
  14 +
  15 + /**
  16 + * 卖家ID
  17 + */
  18 + private String sellerId;
  19 + /**
  20 + * 申请时间
  21 + */
  22 + private Date time;
  23 + /**
  24 + * 申请处理结果
  25 + */
  26 + private String result;
  27 + /**
  28 + * 商品名称
  29 + */
  30 + private String name;
  31 + /**
  32 + * 商品ID
  33 + */
  34 + private String pid;
  35 + /**
  36 + * 最低销售价格
  37 + */
  38 + private int minPrice;
  39 + /**
  40 + * 最高销售价格
  41 + */
  42 + private int maxPrice;
  43 +
  44 + /**
  45 + * 商品类目名称
  46 + */
  47 + private String cname;
  48 +
  49 + /**
  50 + * 申请审核意见
  51 + */
  52 + private String remark;
  53 +
  54 + /**
  55 + * 卖家ID
  56 + * @return
  57 + */
  58 + public String getSellerId() {
  59 + return sellerId;
  60 + }
  61 +
  62 + public void setSellerId(String sellerId) {
  63 + this.sellerId = sellerId;
  64 + }
  65 +
  66 + /**
  67 + * 获取申请时间
  68 + * @return
  69 + */
  70 + public Date getTime() {
  71 + return time;
  72 + }
  73 +
  74 + public void setTime(Date time) {
  75 + this.time = time;
  76 + }
  77 +
  78 + /**
  79 + * 申请处理结果
  80 + * @return
  81 + */
  82 + public String getResult() {
  83 + return result;
  84 + }
  85 +
  86 + public void setResult(String result) {
  87 + this.result = result;
  88 + }
  89 +
  90 + /**
  91 + * 商品名称
  92 + * @return
  93 + */
  94 + public String getName() {
  95 + return name;
  96 + }
  97 +
  98 + public void setName(String name) {
  99 + this.name = name;
  100 + }
  101 +
  102 + /**
  103 + * 商品ID
  104 + * @return
  105 + */
  106 + public String getPid() {
  107 + return pid;
  108 + }
  109 +
  110 + public void setPid(String pid) {
  111 + this.pid = pid;
  112 + }
  113 +
  114 + /**
  115 + * 类目名
  116 + * @return
  117 + */
  118 + public String getCname() {
  119 + return cname;
  120 + }
  121 +
  122 + public void setCname(String cname) {
  123 + this.cname = cname;
  124 + }
  125 +
  126 + /**
  127 + * 申请审核意见
  128 + * @return
  129 + */
  130 + public String getRemark() {
  131 + return remark;
  132 + }
  133 +
  134 + public void setRemark(String remark) {
  135 + this.remark = remark;
  136 + }
  137 +
  138 + public int getMinPrice() {
  139 + return minPrice;
  140 + }
  141 +
  142 + public void setMinPrice(int minPrice) {
  143 + this.minPrice = minPrice;
  144 + }
  145 +
  146 + public int getMaxPrice() {
  147 + return maxPrice;
  148 + }
  149 +
  150 + public void setMaxPrice(int maxPrice) {
  151 + this.maxPrice = maxPrice;
  152 + }
  153 +
  154 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Attribute.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.List;
  4 +
  5 +public class Attribute {
  6 +
  7 + /**
  8 + * 属性项ID
  9 + */
  10 + private long attId;
  11 + /**
  12 + * 属性项名称
  13 + */
  14 + private String attName;
  15 +
  16 + /**
  17 + * 是否必选属性
  18 + */
  19 + private boolean isEnforce;
  20 + /**
  21 + * 属性输入类型,1-单选框,2-复选框,3-下拉选择框,4-单行输入框,5-多行输入框,6-下拉搜索框
  22 + */
  23 + private String type;
  24 + /**
  25 + * 属性值
  26 + */
  27 + private List<AttributeValue> values;
  28 +
  29 + private Integer status;
  30 + /**
  31 + * 属性值排序
  32 + */
  33 + private Integer order;
  34 + /**
  35 + * 属性ID
  36 + * @return
  37 + */
  38 + public long getAttId() {
  39 + return attId;
  40 + }
  41 +
  42 + public void setAttId(long attId) {
  43 + this.attId = attId;
  44 + }
  45 +
  46 + /**
  47 + * 属性名称
  48 + * @return
  49 + */
  50 + public String getAttName() {
  51 + return attName;
  52 + }
  53 +
  54 + public void setAttName(String attName) {
  55 + this.attName = attName;
  56 + }
  57 +
  58 + /**
  59 + * 属性输入类型
  60 + * @return
  61 + */
  62 + public String getType() {
  63 + return type;
  64 + }
  65 +
  66 + public void setType(String type) {
  67 + this.type = type;
  68 + }
  69 +
  70 + /**
  71 + * 属性值
  72 + * @return
  73 + */
  74 + public List<AttributeValue> getValues() {
  75 + return values;
  76 + }
  77 +
  78 + public void setValues(List<AttributeValue> values) {
  79 + this.values = values;
  80 + }
  81 +
  82 + public boolean isEnforce() {
  83 + return isEnforce;
  84 + }
  85 +
  86 + public void setEnforce(boolean isEnforce) {
  87 + this.isEnforce = isEnforce;
  88 + }
  89 +
  90 +
  91 + public Integer getStatus() {
  92 + return status;
  93 + }
  94 +
  95 +
  96 + public void setStatus(Integer status) {
  97 + this.status = status;
  98 + }
  99 +
  100 + public Integer getOrder() {
  101 + return order;
  102 + }
  103 +
  104 + public void setOrder(Integer order) {
  105 + this.order = order;
  106 + }
  107 +
  108 + @Override
  109 + public String toString() {
  110 + return "Attribute [attId=" + attId + ", attName=" + attName
  111 + + ", isEnforce=" + isEnforce + ", type=" + type + ", values="
  112 + + values + ", status=" + status + ", order=" + order + "]";
  113 + }
  114 +
  115 +
  116 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/AttributeValue.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +public class AttributeValue {
  4 +
  5 + /**
  6 + * 属性值ID
  7 + */
  8 + private long attValueId;
  9 + /**
  10 + * 属性值名
  11 + */
  12 + private String attValueName;
  13 + /**
  14 + * 属性值排序
  15 + */
  16 + private int sort;
  17 +
  18 + /**
  19 + * 是否隐藏
  20 + */
  21 + private int show;
  22 + /**
  23 + * 属性值状态
  24 + */
  25 + private int status;
  26 +
  27 + /**
  28 + * 属性值ID
  29 + * @return
  30 + */
  31 + public long getAttValueId() {
  32 + return attValueId;
  33 + }
  34 +
  35 + public void setAttValueId(long attValueId) {
  36 + this.attValueId = attValueId;
  37 + }
  38 +
  39 + /**
  40 + * 属性值名称
  41 + * @return
  42 + */
  43 + public String getAttValueName() {
  44 + return attValueName;
  45 + }
  46 +
  47 + public void setAttValueName(String attValueName) {
  48 + this.attValueName = attValueName;
  49 + }
  50 +
  51 + /**
  52 + * 属性值排序
  53 + * @return
  54 + */
  55 + public int getSort() {
  56 + return sort;
  57 + }
  58 +
  59 + public void setSort(int sort) {
  60 + this.sort = sort;
  61 + }
  62 +
  63 + public int getShow() {
  64 + return show;
  65 + }
  66 +
  67 + public void setShow(int show) {
  68 + this.show = show;
  69 + }
  70 +
  71 + public int getStatus() {
  72 + return status;
  73 + }
  74 +
  75 + public void setStatus(int status) {
  76 + this.status = status;
  77 + }
  78 +
  79 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Auth.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2014 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +
  7 +import java.util.Date;
  8 +import java.util.Set;
  9 +
  10 +/**
  11 + * auth
  12 + * @author dev-center
  13 + * @since 2014-10-29
  14 + */
  15 +public class Auth{
  16 + /** 运营范围 :自营 */
  17 + public static final Integer SCOPE_SELF_SALE = 1;
  18 +
  19 + /** 运营范围 :代销 */
  20 + public static final Integer SCOPE_AGENT_SALE = 2;
  21 +
  22 + /** 运营范围 :买卖对接 */
  23 + public static final Integer SCOPE_THIRDPARTY_SALE = 4;
  24 +
  25 + private Long id;
  26 + private String name;
  27 + private String authIcon;
  28 + private Integer status;
  29 + private Date ctime;
  30 + private String utime;
  31 + private Set<AuthScope> scopeSet;
  32 +
  33 +
  34 + public Auth(){
  35 + //默认无参构造方法
  36 + }
  37 +
  38 + /**
  39 + * 获取 name
  40 + * @return
  41 + */
  42 + public String getName(){
  43 + return name;
  44 + }
  45 +
  46 + /**
  47 + * 设置 name
  48 + * @param name
  49 + */
  50 + public void setName(String name){
  51 + this.name = name;
  52 + }
  53 +
  54 + /**
  55 + * 获取 authIcon
  56 + * @return
  57 + */
  58 + public String getAuthIcon(){
  59 + return authIcon;
  60 + }
  61 +
  62 + public Long getId() {
  63 + return id;
  64 + }
  65 +
  66 + public void setId(Long id) {
  67 + this.id = id;
  68 + }
  69 +
  70 + /**
  71 + * 设置 authIcon
  72 + * @param authIcon
  73 + */
  74 + public void setAuthIcon(String authIcon){
  75 + this.authIcon = authIcon;
  76 + }
  77 +
  78 + /**
  79 + * 获取 status
  80 + * @return
  81 + */
  82 + public Integer getStatus(){
  83 + return status;
  84 + }
  85 +
  86 + /**
  87 + * 设置 status
  88 + * @param status
  89 + */
  90 + public void setStatus(Integer status){
  91 + this.status = status;
  92 + }
  93 +
  94 + /**
  95 + * 获取 ctime
  96 + * @return
  97 + */
  98 + public Date getCtime(){
  99 + return ctime;
  100 + }
  101 +
  102 + /**
  103 + * 设置 ctime
  104 + * @param ctime
  105 + */
  106 + public void setCtime(Date ctime){
  107 + this.ctime = ctime;
  108 + }
  109 +
  110 + /**
  111 + * 获取 utime
  112 + * @return
  113 + */
  114 + public String getUtime(){
  115 + return utime;
  116 + }
  117 +
  118 + /**
  119 + * 设置 utime
  120 + * @param utime
  121 + */
  122 + public void setUtime(String utime){
  123 + this.utime = utime;
  124 + }
  125 +
  126 + public Set<AuthScope> getScopeSet() {
  127 + return scopeSet;
  128 + }
  129 +
  130 + public void setScopeSet(Set<AuthScope> scopeSet) {
  131 + this.scopeSet = scopeSet;
  132 + }
  133 +
  134 + @Override
  135 + public String toString() {
  136 + return "Auth [id=" + id + ", name=" + name + ", authIcon=" + authIcon
  137 + + ", status=" + status + ", ctime=" + ctime + ", utime="
  138 + + utime + ", scopeSet=" + scopeSet + "]";
  139 + }
  140 +
  141 +
  142 +
  143 +}
0 \ No newline at end of file 144 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/AuthScope.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2014 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +
  7 +
  8 +/**
  9 + * authScope
  10 + * @author dev-center
  11 + * @since 2014-10-29
  12 + */
  13 +public class AuthScope{
  14 + private static final long serialVersionUID = 1L;
  15 + private Long authId;
  16 + private Long scopeId;
  17 +
  18 + public AuthScope(){
  19 + //默认无参构造方法
  20 + }
  21 +
  22 + /**
  23 + * 获取 authId
  24 + * @return
  25 + */
  26 + public Long getAuthId(){
  27 + return authId;
  28 + }
  29 +
  30 + /**
  31 + * 设置 authId
  32 + * @param authId
  33 + */
  34 + public void setAuthId(Long authId){
  35 + this.authId = authId;
  36 + }
  37 +
  38 + /**
  39 + * 获取 scopeId
  40 + * @return
  41 + */
  42 + public Long getScopeId(){
  43 + return scopeId;
  44 + }
  45 +
  46 + /**
  47 + * 设置 scopeId
  48 + * @param scopeId
  49 + */
  50 + public void setScopeId(Long scopeId){
  51 + this.scopeId = scopeId;
  52 + }
  53 +}
0 \ No newline at end of file 54 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Category.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.List;
  4 +import java.util.Map;
  5 +
  6 +/**
  7 + * <B>Description</B> 类目实体类 <br />
  8 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  9 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  10 + * <B>Company</B> 地利集团
  11 + * @createTime 2014年5月14日 上午11:35:42
  12 + * @author dili-guwenwu
  13 + */
  14 +public class Category {
  15 +
  16 + /**
  17 + * 正常状态
  18 + */
  19 + public static final Integer STATUS_NORMAL = 1;
  20 +
  21 + /**
  22 + * 隐藏,暂时未使用
  23 + */
  24 + public static final Integer STATUS_HIDDEN = 0;
  25 +
  26 + /**
  27 + * 删除状态
  28 + */
  29 + public static final Integer STATUS_DELETED = -1;
  30 +
  31 + /**
  32 + * 激活状态
  33 + */
  34 + public static final Integer SHOW_STATUS_ACTIVE = 1;
  35 +
  36 + /**
  37 + * 停用状态
  38 + */
  39 + public static final Integer SHOW_STATUS_DISABLE = 0;
  40 +
  41 + /**
  42 + * 类目ID
  43 + */
  44 + private int cid;
  45 + /**
  46 + * 父类目ID
  47 + */
  48 + private int pcid;
  49 + /**
  50 + * 类目名称
  51 + */
  52 + private String cname;
  53 +
  54 + /**
  55 + * 类目简拼
  56 + */
  57 + private String jp;
  58 + /**
  59 + * 类目图片
  60 + */
  61 + private String icon;
  62 + /**
  63 + * 类目别名
  64 + */
  65 + private String alias;
  66 + /**
  67 + * 是否包含子类目
  68 + */
  69 + private boolean hasChild;
  70 + /**
  71 + * 类目排序
  72 + */
  73 + private int order;
  74 +
  75 + /**
  76 + * 类目状态 1,正常 2,隐藏 -1,删除
  77 + */
  78 + private int status;
  79 + /**
  80 + * 类目激活状态
  81 + */
  82 + private int activate;
  83 + /**
  84 + * 类目属性Map key为:saleAtt-销售属性,descAtt-描述属性,searchAtt-搜索属性 value为对应的属性
  85 + */
  86 + private Map<String, List<Attribute>> attributes;
  87 +
  88 + public Map<String, List<Attribute>> getAttributes() {
  89 + return attributes;
  90 + }
  91 +
  92 + public void setAttributes(Map<String, List<Attribute>> attributes) {
  93 + this.attributes = attributes;
  94 + }
  95 +
  96 + public int getCid() {
  97 + return cid;
  98 + }
  99 +
  100 + /**
  101 + * 设置ID
  102 + */
  103 + public void setCid(int cid) {
  104 + this.cid = cid;
  105 + }
  106 +
  107 + public int getPcid() {
  108 + return pcid;
  109 + }
  110 +
  111 + /**
  112 + * 父类目ID
  113 + */
  114 + public void setPcid(int pcid) {
  115 + this.pcid = pcid;
  116 + }
  117 +
  118 + /**
  119 + * 类目名称
  120 + */
  121 + public String getCname() {
  122 + return cname;
  123 + }
  124 +
  125 + public void setCname(String cname) {
  126 + this.cname = cname;
  127 + }
  128 +
  129 + public String getAlias() {
  130 + return alias;
  131 + }
  132 +
  133 + public String getIcon() {
  134 + return icon;
  135 + }
  136 +
  137 + public void setIcon(String icon) {
  138 + this.icon = icon;
  139 + }
  140 +
  141 + public void setAlias(String alias) {
  142 + this.alias = alias;
  143 + }
  144 +
  145 + /**
  146 + * 是否包含子类目
  147 + */
  148 + public boolean isHasChild() {
  149 + return hasChild;
  150 + }
  151 +
  152 + public void setHasChild(boolean hasChild) {
  153 + this.hasChild = hasChild;
  154 + }
  155 +
  156 + public int getOrder() {
  157 + return order;
  158 + }
  159 +
  160 + public void setOrder(int order) {
  161 + this.order = order;
  162 + }
  163 +
  164 + public int getStatus() {
  165 + return status;
  166 + }
  167 +
  168 + public void setStatus(int status) {
  169 + this.status = status;
  170 + }
  171 +
  172 + public int getActivate() {
  173 + return activate;
  174 + }
  175 +
  176 + public void setActivate(int activate) {
  177 + this.activate = activate;
  178 + }
  179 +
  180 + public String getJp() {
  181 + return jp;
  182 + }
  183 +
  184 + public void setJp(String jp) {
  185 + this.jp = jp;
  186 + }
  187 +
  188 + @Override
  189 + public String toString() {
  190 + return "Category [cid=" + cid + ", pcid=" + pcid + ", cname=" + cname
  191 + + ", jp=" + jp + ", icon=" + icon + ", alias=" + alias
  192 + + ", hasChild="
  193 + + hasChild + ", order=" + order + ", status=" + status
  194 + + ", activate=" + activate + ", attributes=" + attributes + "]";
  195 + }
  196 +
  197 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Comment.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class Comment {
  6 +
  7 + /**
  8 + * 商品ID
  9 + */
  10 + private Long pid;
  11 + /**
  12 + * SKU
  13 + */
  14 + private String sku;
  15 + /**
  16 + * 用户ID
  17 + *
  18 + */
  19 + private Long sellerUserId;
  20 +
  21 + private Long buyerUserId;
  22 + /**
  23 + * 商品名称
  24 + */
  25 + private String name;
  26 + /**
  27 + * 评论内容
  28 + */
  29 + private String comment;
  30 +
  31 + /**
  32 + * 评价: 5 好评 3 中评 1 差评
  33 + */
  34 + private Integer rate;
  35 + /**
  36 + * 商品分数 1到5
  37 + */
  38 + private Integer productRate;
  39 + /**
  40 + * 服务分数1到5
  41 + */
  42 + private Integer serviceRate;
  43 + /**
  44 + * 物流运输分数1到5
  45 + */
  46 + private Integer deliveryRate;
  47 +
  48 + /**
  49 + * 创建时间
  50 + */
  51 + private Date ctime;
  52 +
  53 +
  54 + public String getName() {
  55 + return name;
  56 + }
  57 + /**
  58 + * 商品名称
  59 + */
  60 + public void setName(String name) {
  61 + this.name = name;
  62 + }
  63 +
  64 + /**
  65 + * 商品ID
  66 + */
  67 + public Long getPid() {
  68 + return pid;
  69 + }
  70 +
  71 + public void setPid(Long pid) {
  72 + this.pid = pid;
  73 + }
  74 +
  75 + /**
  76 + * 商品sku
  77 + */
  78 + public String getSku() {
  79 + return sku;
  80 + }
  81 +
  82 + public void setSku(String sku) {
  83 + this.sku = sku;
  84 + }
  85 + /**
  86 + * 评论内容
  87 + */
  88 + public String getComment() {
  89 + return comment;
  90 + }
  91 +
  92 + public Long getSellerUserId() {
  93 + return sellerUserId;
  94 + }
  95 +
  96 + public void setSellerUserId(Long sellerUserId) {
  97 + this.sellerUserId = sellerUserId;
  98 + }
  99 +
  100 + public Long getBuyerUserId() {
  101 + return buyerUserId;
  102 + }
  103 +
  104 + public void setBuyerUserId(Long buyerUserId) {
  105 + this.buyerUserId = buyerUserId;
  106 + }
  107 +
  108 +
  109 + public void setComment(String comment) {
  110 + this.comment = comment;
  111 + }
  112 +
  113 + /**
  114 + * 评论时间
  115 + * @return
  116 + * @createTime 2014年6月20日 上午10:13:36
  117 + */
  118 + public Date getCtime() {
  119 + return ctime;
  120 + }
  121 +
  122 + public void setCtime(Date ctime) {
  123 + this.ctime = ctime;
  124 + }
  125 +
  126 + public Integer getRate() {
  127 + return rate;
  128 + }
  129 + /**
  130 + * 评价: 5 好评 3 中评 1 差评
  131 + */
  132 + public void setRate(Integer rate) {
  133 + this.rate = rate;
  134 + }
  135 +
  136 + public Integer getProductRate() {
  137 + return productRate;
  138 + }
  139 + /**
  140 + * 商品分数 1到5
  141 + */
  142 + public void setProductRate(Integer productRate) {
  143 + this.productRate = productRate;
  144 + }
  145 +
  146 + public Integer getServiceRate() {
  147 + return serviceRate;
  148 + }
  149 + /**
  150 + * 服务分数1到5
  151 + */
  152 + public void setServiceRate(Integer serviceRate) {
  153 + this.serviceRate = serviceRate;
  154 + }
  155 +
  156 + public Integer getDeliveryRate() {
  157 + return deliveryRate;
  158 + }
  159 + /**
  160 + * 物流运输分数1到5
  161 + */
  162 + public void setDeliveryRate(Integer deliveryRate) {
  163 + this.deliveryRate = deliveryRate;
  164 + }
  165 +
  166 +
  167 +
  168 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/CommonCategory.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +/**
  4 + * Created by gsz on 2015/6/30.
  5 + */
  6 +public class CommonCategory extends Category{
  7 +
  8 + private String[] allCateName;
  9 +
  10 + public String[] getAllCateName() {
  11 + return allCateName;
  12 + }
  13 +
  14 + public void setAllCateName(String[] allCateName) {
  15 + this.allCateName = allCateName;
  16 + }
  17 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Presale.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +import java.util.List;
  6 +
  7 +/**
  8 + * Created by gsz on 2015/7/25.
  9 + */
  10 +public class Presale implements Serializable {
  11 +
  12 + private Long id;
  13 + /**
  14 + * 标题
  15 + */
  16 + private String title;
  17 + /**
  18 + * 联系人
  19 + */
  20 + private String userName;
  21 +
  22 + /**
  23 + * 分类ID
  24 + */
  25 + private Long categoryId;
  26 + /**
  27 + * 分类名称
  28 + */
  29 + private String cateName;
  30 + /**
  31 + * 所在地ID
  32 + */
  33 + private Long localityAreaId;
  34 + /**
  35 + * 所在地
  36 + */
  37 + private String localityArea;
  38 + /**
  39 + * 数量
  40 + */
  41 + private Integer count;
  42 + /**
  43 + * 单位ID
  44 + */
  45 + private Integer unitId;
  46 + /**
  47 + * 单位名称
  48 + */
  49 + private String unitName;
  50 + /**
  51 + * 用户手机号
  52 + */
  53 + private String phone;
  54 + /**
  55 + * 状态:1待审核,2-审核通过,3-审核失败,4-已过期,-1-删除 详见PpsConstant类定义
  56 + */
  57 + private Integer status;
  58 + /**
  59 + * 用户ID
  60 + */
  61 + private Long userId;
  62 + /**
  63 + * 来源1-PC;2-手机
  64 + */
  65 + private Integer source;
  66 + /**
  67 + * 审核失败 原因
  68 + */
  69 + private String reason;
  70 + /**
  71 + * 描述信息
  72 + */
  73 + private String description;
  74 + /**
  75 + * 上市开始时间
  76 + */
  77 + private Date startTime;
  78 + /**
  79 + * 上市结束时间
  80 + */
  81 + private Date endTime;
  82 + /**
  83 + * 创建时间
  84 + */
  85 + private Date ctime;
  86 + /**
  87 + * 更新时间
  88 + */
  89 + private Date utime;
  90 + /**
  91 + * 图片
  92 + */
  93 + private List<String> imgs;
  94 +
  95 + public String getTitle() {
  96 + return title;
  97 + }
  98 +
  99 + public void setTitle(String title) {
  100 + this.title = title;
  101 + }
  102 +
  103 + public String getUserName() {
  104 + return userName;
  105 + }
  106 +
  107 + public void setUserName(String userName) {
  108 + this.userName = userName;
  109 + }
  110 +
  111 + public String getCateName() {
  112 + return cateName;
  113 + }
  114 +
  115 + public void setCateName(String cateName) {
  116 + this.cateName = cateName;
  117 + }
  118 +
  119 + public Long getId() {
  120 + return id;
  121 + }
  122 +
  123 + public void setId(Long id) {
  124 + this.id = id;
  125 + }
  126 +
  127 + public Long getCategoryId() {
  128 + return categoryId;
  129 + }
  130 +
  131 + public void setCategoryId(Long categoryId) {
  132 + this.categoryId = categoryId;
  133 + }
  134 +
  135 + public Long getLocalityAreaId() {
  136 + return localityAreaId;
  137 + }
  138 +
  139 + public void setLocalityAreaId(Long localityAreaId) {
  140 + this.localityAreaId = localityAreaId;
  141 + }
  142 +
  143 + public String getLocalityArea() {
  144 + return localityArea;
  145 + }
  146 +
  147 + public void setLocalityArea(String localityArea) {
  148 + this.localityArea = localityArea;
  149 + }
  150 +
  151 + public Integer getCount() {
  152 + return count;
  153 + }
  154 +
  155 + public void setCount(Integer count) {
  156 + this.count = count;
  157 + }
  158 +
  159 + public Integer getUnitId() {
  160 + return unitId;
  161 + }
  162 +
  163 + public void setUnitId(Integer unitId) {
  164 + this.unitId = unitId;
  165 + }
  166 +
  167 + public String getUnitName() {
  168 + return unitName;
  169 + }
  170 +
  171 + public void setUnitName(String unitName) {
  172 + this.unitName = unitName;
  173 + }
  174 +
  175 + public String getPhone() {
  176 + return phone;
  177 + }
  178 +
  179 + public void setPhone(String phone) {
  180 + this.phone = phone;
  181 + }
  182 +
  183 + public Integer getStatus() {
  184 + return status;
  185 + }
  186 +
  187 + public void setStatus(Integer status) {
  188 + this.status = status;
  189 + }
  190 +
  191 + public Long getUserId() {
  192 + return userId;
  193 + }
  194 +
  195 + public void setUserId(Long userId) {
  196 + this.userId = userId;
  197 + }
  198 +
  199 + public Integer getSource() {
  200 + return source;
  201 + }
  202 +
  203 + public void setSource(Integer source) {
  204 + this.source = source;
  205 + }
  206 +
  207 + public String getReason() {
  208 + return reason;
  209 + }
  210 +
  211 + public void setReason(String reason) {
  212 + this.reason = reason;
  213 + }
  214 +
  215 + public Date getStartTime() {
  216 + return startTime;
  217 + }
  218 +
  219 + public void setStartTime(Date startTime) {
  220 + this.startTime = startTime;
  221 + }
  222 +
  223 + public Date getEndTime() {
  224 + return endTime;
  225 + }
  226 +
  227 + public void setEndTime(Date endTime) {
  228 + this.endTime = endTime;
  229 + }
  230 +
  231 + public Date getCtime() {
  232 + return ctime;
  233 + }
  234 +
  235 + public void setCtime(Date ctime) {
  236 + this.ctime = ctime;
  237 + }
  238 +
  239 + public Date getUtime() {
  240 + return utime;
  241 + }
  242 +
  243 + public void setUtime(Date utime) {
  244 + this.utime = utime;
  245 + }
  246 +
  247 + public String getDescription() {
  248 + return description;
  249 + }
  250 +
  251 + public void setDescription(String description) {
  252 + this.description = description;
  253 + }
  254 +
  255 + public List<String> getImgs() {
  256 + return imgs;
  257 + }
  258 +
  259 + public void setImgs(List<String> imgs) {
  260 + this.imgs = imgs;
  261 + }
  262 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Product.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Date;
  4 +import java.util.List;
  5 +
  6 +public class Product {
  7 +
  8 + /**
  9 + * 商品ID
  10 + */
  11 + private Long pid;
  12 + /**
  13 + * 商品名称
  14 + */
  15 + private String name;
  16 + /**
  17 + * 商品类型(0普通商品,1拼购商品)
  18 + */
  19 + private int productType;
  20 + /**
  21 + * 商品是否存在样品(0无样品、1有样品)
  22 + */
  23 + private int productSample;
  24 +
  25 + /**
  26 + * 分类ID
  27 + */
  28 + private Integer cid;
  29 + /**
  30 + * 商品分类
  31 + */
  32 + private Category categoryOut;
  33 +
  34 + /**
  35 + * 虚拟分类ID
  36 + */
  37 + private Integer userDefined;
  38 +
  39 + /**
  40 + * 子分类Id集
  41 + */
  42 + protected List<Integer> subclassification;
  43 +
  44 + /**
  45 + * 子类目信息
  46 + */
  47 + private List<Category> childCategory;
  48 + /**
  49 + * 已销售量
  50 + */
  51 + private Integer salesNum;
  52 + /**
  53 + * 产地
  54 + */
  55 + private String productionAddr;
  56 +
  57 + /**
  58 + * 产地ID
  59 + */
  60 + private Integer productionAddrId;
  61 +
  62 + /**
  63 + * 所在地
  64 + */
  65 + private String localityAddr;
  66 +
  67 + /**
  68 + * 所在地名称
  69 + */
  70 + private String localityName;
  71 +
  72 + /**
  73 + * 所在地ID
  74 + */
  75 + private Long localityArea;
  76 +
  77 + /**
  78 + * 所在国家地
  79 + */
  80 + private Long countryAreaId;
  81 + /**
  82 + * 商品发布地ID
  83 + */
  84 + private Long publishedLocationID;
  85 +
  86 + /**
  87 + * 销售类型,第三方或自营 10-自营 20-代销 30-第三方卖家
  88 + */
  89 + private String saleType;
  90 +
  91 + /**
  92 + * 报价类型(1 常规格报价销售,2 价格区间销售)
  93 + */
  94 + private int quotationType;
  95 + /**
  96 + * 卖家ID
  97 + */
  98 + private Long sellerID;
  99 + /**
  100 + * 店铺ID
  101 + */
  102 + private Long vendorId;
  103 +
  104 + /**
  105 + * 备货时长
  106 + */
  107 + private String prepareTimeId;
  108 + /**
  109 + * 备货时长
  110 + */
  111 + private String prepareTime;
  112 + /**
  113 + * 第三方商品关联ID
  114 + */
  115 + private String foreignPid;
  116 + /**
  117 + * 状态 预览-2,删除-1,1=待审核,2=审核失败,
  118 + * 3=在售商品,4=仓库中商品,5=待上架,6=过期下架,7=手动下架 ProductStatus中有定义
  119 + */
  120 + private Integer status;
  121 + /**
  122 + * 销售单位
  123 + */
  124 + private String saleUnit;
  125 +
  126 + /**
  127 + * 销售单位ID号
  128 + */
  129 + private Integer storeUnit;
  130 + /**
  131 + * 默认图片
  132 + */
  133 + private String defaultPic;
  134 + /**
  135 + * 图片列表
  136 + */
  137 + private List<String> pictures;
  138 + /**
  139 + * 最低价格
  140 + */
  141 + private Integer minPrice;
  142 + /**
  143 + * 最高价格
  144 + */
  145 + private Integer maxPrice;
  146 + /**
  147 + * 商品有效期
  148 + */
  149 + private Integer indate;
  150 +
  151 + private String feedback;
  152 +
  153 + /**
  154 + * 上架时间
  155 + */
  156 + private Date onSaleTime;
  157 +
  158 + /**
  159 + * 上架模式, 放入仓库1,审核后立即上架2,指定上架时间3
  160 + */
  161 + private Integer publishMode;
  162 + /**
  163 + * 下架时间
  164 + */
  165 + private Date dropsTime;
  166 + /**
  167 + * 设置上架时间
  168 + */
  169 + private Date publishSettime;
  170 +
  171 + /**
  172 + * sku列表
  173 + */
  174 + private List<Sku> skus;
  175 +
  176 + /**
  177 + * 最小起批量
  178 + */
  179 + private Integer minNum ;
  180 +
  181 + /**
  182 + * 总库存量
  183 + */
  184 + private Integer stockNum;
  185 +
  186 + /**
  187 + * 评论数量
  188 + */
  189 + protected Integer commentNum;
  190 +
  191 + /**
  192 + * 商品报价列表
  193 + */
  194 + private List<ProductQuotation> productQuotation;
  195 + /**
  196 + * 描述属性
  197 + */
  198 + private List<Attribute> descAtt;
  199 + /**
  200 + * 销售属性
  201 + */
  202 + private List<Attribute> saleAtt;
  203 +
  204 + /**
  205 + * 可搜索属性
  206 + */
  207 + private List<Attribute> searchAtt;
  208 +
  209 + /**
  210 + * 商品认证
  211 + */
  212 + private List<ProductAuth> productAuth;
  213 +
  214 + /**
  215 + * 商品视频
  216 + */
  217 + private Video video;
  218 +
  219 + /**
  220 + * 单箱数量
  221 + */
  222 + private String singleBoxCount;
  223 +
  224 + /**
  225 + * 单箱重量
  226 + */
  227 + private String singleBoxWeight;
  228 +
  229 + /**
  230 + * 是否是特价商品 1-不是 2-是 ProductStatus中有定义
  231 + */
  232 + private Integer hasSpecial;
  233 +
  234 + /**
  235 + * 是否允许合作市场以外的市场进行交割 1-允许 2-不允许 ProductStatus中有定义
  236 + */
  237 + private int isAllowDelivery;
  238 +
  239 + /**
  240 + * 是否有第三方快递 1-没有 2-有 ProductStatus中有定义
  241 + */
  242 + private Integer hasExpress;
  243 +
  244 + /**
  245 + * 单位重量精确到克
  246 + */
  247 + private Long unitTog;
  248 +
  249 + /**
  250 + * 创建时间
  251 + */
  252 + private Date ctime;
  253 + /**
  254 + * 更新时间
  255 + */
  256 + private Date utime;
  257 +
  258 + /**
  259 + * 商品拼购信息
  260 + */
  261 + private ProductPopGroupBuying productPopGroupBuying;
  262 + /**
  263 + * 商品样品信息
  264 + */
  265 + private ProductSample productSampleObj;
  266 +
  267 + public long getPid() {
  268 + return pid;
  269 + }
  270 +
  271 + public void setPid(Long pid) {
  272 + this.pid = pid;
  273 + }
  274 +
  275 + public String getName() {
  276 + return name;
  277 + }
  278 + public List<ProductAuth> getProductAuth() {
  279 + return productAuth;
  280 + }
  281 +
  282 + public void setProductAuth(List<ProductAuth> productAuth) {
  283 + this.productAuth = productAuth;
  284 + }
  285 +
  286 + public void setName(String name) {
  287 + this.name = name;
  288 + }
  289 +
  290 + public Video getVideo() {
  291 + return video;
  292 + }
  293 +
  294 + public void setVideo(Video video) {
  295 + this.video = video;
  296 + }
  297 +
  298 + /**
  299 + * 商品类目ID
  300 + */
  301 + public Integer getCid() {
  302 + return cid;
  303 + }
  304 +
  305 + public void setCid(Integer cid) {
  306 + this.cid = cid;
  307 + }
  308 +
  309 +
  310 + public Category getCategoryOut() {
  311 + return categoryOut;
  312 + }
  313 +
  314 + public void setCategoryOut(Category categoryOut) {
  315 + this.categoryOut = categoryOut;
  316 + }
  317 +
  318 + public Integer getSalesNum() {
  319 + return salesNum;
  320 + }
  321 +
  322 + public void setSalesNum(Integer salesNum) {
  323 + this.salesNum = salesNum;
  324 + }
  325 +
  326 + public String getProductionAddr() {
  327 + return productionAddr;
  328 + }
  329 +
  330 + public void setProductionAddr(String productionAddr) {
  331 + this.productionAddr = productionAddr;
  332 + }
  333 +
  334 + public String getSaleType() {
  335 + return saleType;
  336 + }
  337 +
  338 + public void setSaleType(String saleType) {
  339 + this.saleType = saleType;
  340 + }
  341 +
  342 + public Long getSellerID() {
  343 + return sellerID;
  344 + }
  345 +
  346 + public void setSellerID(Long sellerID) {
  347 + this.sellerID = sellerID;
  348 + }
  349 +
  350 + public Long getVendorId() {
  351 + return vendorId;
  352 + }
  353 +
  354 + public void setVendorId(Long vendorId) {
  355 + this.vendorId = vendorId;
  356 + }
  357 +
  358 + public Integer getStatus() {
  359 + return status;
  360 + }
  361 +
  362 + public void setStatus(Integer status) {
  363 + this.status = status;
  364 + }
  365 + public String getSaleUnit() {
  366 + return saleUnit;
  367 + }
  368 + public void setSaleUnit(String saleUnit) {
  369 + this.saleUnit = saleUnit;
  370 + }
  371 +
  372 + public String getDefaultPic() {
  373 + return defaultPic;
  374 + }
  375 +
  376 + public void setDefaultPic(String defaultPic) {
  377 + this.defaultPic = defaultPic;
  378 + }
  379 +
  380 + public Integer getMinPrice() {
  381 + return minPrice;
  382 + }
  383 +
  384 + public void setMinPrice(Integer minPrice) {
  385 + this.minPrice = minPrice;
  386 + }
  387 + public Integer getMaxPrice() {
  388 + return maxPrice;
  389 + }
  390 +
  391 + public void setMaxPrice(Integer maxPrice) {
  392 + this.maxPrice = maxPrice;
  393 + }
  394 +
  395 +
  396 + public Date getOnSaleTime() {
  397 + return onSaleTime;
  398 + }
  399 +
  400 + public void setOnSaleTime(Date onSaleTime) {
  401 + this.onSaleTime = onSaleTime;
  402 + }
  403 +
  404 + public Date getDropsTime() {
  405 + return dropsTime;
  406 + }
  407 +
  408 + public void setDropsTime(Date dropsTime) {
  409 + this.dropsTime = dropsTime;
  410 + }
  411 +
  412 + public List<String> getPictures() {
  413 + return pictures;
  414 + }
  415 +
  416 + public void setPictures(List<String> pictures) {
  417 + this.pictures = pictures;
  418 + }
  419 +
  420 + public List<Sku> getSkus() {
  421 + return skus;
  422 + }
  423 +
  424 + public void setSkus(List<Sku> skus) {
  425 + this.skus = skus;
  426 + }
  427 + public List<Attribute> getDescAtt() {
  428 + return descAtt;
  429 + }
  430 +
  431 + public void setDescAtt(List<Attribute> descAtt) {
  432 + this.descAtt = descAtt;
  433 + }
  434 + public List<Attribute> getSaleAtt() {
  435 + return saleAtt;
  436 + }
  437 +
  438 + public void setSaleAtt(List<Attribute> saleAtt) {
  439 + this.saleAtt = saleAtt;
  440 + }
  441 +
  442 + public List<Attribute> getSearchAtt() {
  443 + return searchAtt;
  444 + }
  445 +
  446 + public void setSearchAtt(List<Attribute> searchAtt) {
  447 + this.searchAtt = searchAtt;
  448 + }
  449 +
  450 + public String getForeignPid() {
  451 + return foreignPid;
  452 + }
  453 +
  454 + public void setForeignPid(String foreignPid) {
  455 + this.foreignPid = foreignPid;
  456 + }
  457 +
  458 + public String getPrepareTime() {
  459 + return prepareTime;
  460 + }
  461 +
  462 + public void setPrepareTime(String prepareTime) {
  463 + this.prepareTime = prepareTime;
  464 + }
  465 +
  466 +
  467 + public Integer getProductionAddrId() {
  468 + return productionAddrId;
  469 + }
  470 +
  471 + public void setProductionAddrId(Integer productionAddrId) {
  472 + this.productionAddrId = productionAddrId;
  473 + }
  474 +
  475 + public Integer getIndate() {
  476 + return indate;
  477 + }
  478 + public void setIndate(Integer indate) {
  479 + this.indate = indate;
  480 + }
  481 +
  482 + public Integer getStoreUnit() {
  483 + return storeUnit;
  484 + }
  485 +
  486 + public void setStoreUnit(Integer storeUnit) {
  487 + this.storeUnit = storeUnit;
  488 + }
  489 +
  490 + public Integer getPublishMode() {
  491 + return publishMode;
  492 + }
  493 +
  494 + public void setPublishMode(Integer publishMode) {
  495 + this.publishMode = publishMode;
  496 + }
  497 +
  498 + public Date getPublishSettime() {
  499 + return publishSettime;
  500 + }
  501 +
  502 + public void setPublishSettime(Date publishSettime) {
  503 + this.publishSettime = publishSettime;
  504 + }
  505 +
  506 + public Date getCtime() {
  507 + return ctime;
  508 + }
  509 +
  510 + public void setCtime(Date ctime) {
  511 + this.ctime = ctime;
  512 + }
  513 +
  514 + public Date getUtime() {
  515 + return utime;
  516 + }
  517 +
  518 + public void setUtime(Date utime) {
  519 + this.utime = utime;
  520 + }
  521 +
  522 + public Integer getUserDefined() {
  523 + return userDefined;
  524 + }
  525 +
  526 + public void setUserDefined(Integer userDefined) {
  527 + this.userDefined = userDefined;
  528 + }
  529 +
  530 + public List<Integer> getSubclassification() {
  531 + return subclassification;
  532 + }
  533 +
  534 + public void setSubclassification(List<Integer> subclassification) {
  535 + this.subclassification = subclassification;
  536 + }
  537 +
  538 + public int getQuotationType() {
  539 + return quotationType;
  540 + }
  541 +
  542 + public void setQuotationType(int quotationType) {
  543 + this.quotationType = quotationType;
  544 + }
  545 +
  546 + public List<ProductQuotation> getProductQuotation() {
  547 + return productQuotation;
  548 + }
  549 +
  550 + public void setProductQuotation(List<ProductQuotation> productQuotation) {
  551 + this.productQuotation = productQuotation;
  552 + }
  553 +
  554 + public String getLocalityAddr() {
  555 + return localityAddr;
  556 + }
  557 +
  558 + public void setLocalityAddr(String localityAddr) {
  559 + this.localityAddr = localityAddr;
  560 + }
  561 +
  562 + public Long getCountryAreaId() {
  563 + return countryAreaId;
  564 + }
  565 +
  566 + public void setCountryAreaId(Long countryAreaId) {
  567 + this.countryAreaId = countryAreaId;
  568 + }
  569 + public Integer getMinNum() {
  570 + return minNum;
  571 + }
  572 +
  573 + public void setMinNum(Integer minNum) {
  574 + this.minNum = minNum;
  575 + }
  576 +
  577 + public Integer getStockNum() {
  578 + return stockNum;
  579 + }
  580 +
  581 + public void setStockNum(Integer stockNum) {
  582 + this.stockNum = stockNum;
  583 + }
  584 +
  585 + public List<Category> getChildCategory() {
  586 + return childCategory;
  587 + }
  588 +
  589 + public void setChildCategory(List<Category> childCategory) {
  590 + this.childCategory = childCategory;
  591 + }
  592 +
  593 + public Long getPublishedLocationID() {
  594 + return publishedLocationID;
  595 + }
  596 +
  597 + public void setPublishedLocationID(Long publishedLocationID) {
  598 + this.publishedLocationID = publishedLocationID;
  599 + }
  600 +
  601 + public String getFeedback() {
  602 + return feedback;
  603 + }
  604 +
  605 + public void setFeedback(String feedback) {
  606 + this.feedback = feedback;
  607 + }
  608 +
  609 + public Integer getCommentNum() {
  610 + return commentNum;
  611 + }
  612 +
  613 + public void setCommentNum(Integer commentNum) {
  614 + this.commentNum = commentNum;
  615 + }
  616 +
  617 + public String getPrepareTimeId() {
  618 + return prepareTimeId;
  619 + }
  620 +
  621 + public void setPrepareTimeId(String prepareTimeId) {
  622 + this.prepareTimeId = prepareTimeId;
  623 + }
  624 +
  625 + public String getSingleBoxCount() {
  626 + return singleBoxCount;
  627 + }
  628 +
  629 + public void setSingleBoxCount(String singleBoxCount) {
  630 + this.singleBoxCount = singleBoxCount;
  631 + }
  632 +
  633 + public String getSingleBoxWeight() {
  634 + return singleBoxWeight;
  635 + }
  636 +
  637 + public void setSingleBoxWeight(String singleBoxWeight) {
  638 + this.singleBoxWeight = singleBoxWeight;
  639 + }
  640 +
  641 + public Integer getHasSpecial() {
  642 + return hasSpecial;
  643 + }
  644 +
  645 + public void setHasSpecial(Integer hasSpecial) {
  646 + this.hasSpecial = hasSpecial;
  647 + }
  648 +
  649 +// public void setExtend(String extend){
  650 +// if(!"".equals(extend) && extend!=null){
  651 +// String[] strings = extend.split("\\|");
  652 +// this.setSingleBoxWeight("-1".equals(strings[0])?null:strings[0]);
  653 +// this.setSingleBoxCount("-1".equals(strings[1])?null:strings[1]);
  654 +// }
  655 +// }
  656 +
  657 + public Long getUnitTog() {
  658 + return unitTog;
  659 + }
  660 +
  661 + public void setUnitTog(Long unitTog) {
  662 + this.unitTog = unitTog;
  663 + }
  664 +
  665 + public Integer getHasExpress() {
  666 + return hasExpress;
  667 + }
  668 +
  669 + public void setHasExpress(Integer hasExpress) {
  670 + this.hasExpress = hasExpress;
  671 + }
  672 +
  673 + public String getLocalityName() {
  674 + return localityName;
  675 + }
  676 +
  677 + public void setLocalityName(String localityName) {
  678 + this.localityName = localityName;
  679 + }
  680 +
  681 + public int getIsAllowDelivery() {
  682 + return isAllowDelivery;
  683 + }
  684 +
  685 + public void setIsAllowDelivery(int isAllowDelivery) {
  686 + this.isAllowDelivery = isAllowDelivery;
  687 + }
  688 +
  689 + public ProductSample getProductSampleObj() {
  690 + return productSampleObj;
  691 + }
  692 +
  693 + public void setProductSampleObj(ProductSample productSampleObj) {
  694 + this.productSampleObj = productSampleObj;
  695 + }
  696 +
  697 + public int getProductType() {
  698 + return productType;
  699 + }
  700 +
  701 + public void setProductType(int productType) {
  702 + this.productType = productType;
  703 + }
  704 +
  705 + public int getProductSample() {
  706 + return productSample;
  707 + }
  708 +
  709 + public void setProductSample(int productSample) {
  710 + this.productSample = productSample;
  711 + }
  712 +
  713 + public ProductPopGroupBuying getProductPopGroupBuying() {
  714 + return productPopGroupBuying;
  715 + }
  716 +
  717 + public void setProductPopGroupBuying(ProductPopGroupBuying productPopGroupBuying) {
  718 + this.productPopGroupBuying = productPopGroupBuying;
  719 + }
  720 +
  721 + public Long getLocalityArea() {
  722 + return localityArea;
  723 + }
  724 +
  725 + public void setLocalityArea(Long localityArea) {
  726 + this.localityArea = localityArea;
  727 + }
  728 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductAuth.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2014 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * productAuth
  11 + * @author dev-center
  12 + * @since 2014-10-29
  13 + */
  14 +public class ProductAuth{
  15 + private Long id;
  16 + private Long pid;
  17 + private String name;
  18 + private Long authId;
  19 + private String authUrl;
  20 + private String authIcon;
  21 + private Integer status;
  22 + private Date authEndTime;
  23 +
  24 + /** 状态 : 生效 */
  25 + public static final Integer PRODUCT_AUTH_STATE_VALID = 1;
  26 +
  27 + /** 状态:失效 */
  28 + public static final Integer PRODUCT_AUTH_STATE_INVALID = 2;
  29 +
  30 + public ProductAuth(){
  31 + //默认无参构造方法
  32 + }
  33 +
  34 + public Long getId() {
  35 + return id;
  36 + }
  37 +
  38 + public void setId(Long id) {
  39 + this.id = id;
  40 + }
  41 +
  42 + public Long getPid() {
  43 + return pid;
  44 + }
  45 +
  46 + public void setPid(Long pid) {
  47 + this.pid = pid;
  48 + }
  49 +
  50 + public String getName() {
  51 + return name;
  52 + }
  53 +
  54 + public void setName(String name) {
  55 + this.name = name;
  56 + }
  57 +
  58 + public Long getAuthId() {
  59 + return authId;
  60 + }
  61 +
  62 + public void setAuthId(Long authId) {
  63 + this.authId = authId;
  64 + }
  65 +
  66 + public String getAuthUrl() {
  67 + return authUrl;
  68 + }
  69 +
  70 + public void setAuthUrl(String authUrl) {
  71 + this.authUrl = authUrl;
  72 + }
  73 +
  74 + public String getAuthIcon() {
  75 + return authIcon;
  76 + }
  77 +
  78 + public void setAuthIcon(String authIcon) {
  79 + this.authIcon = authIcon;
  80 + }
  81 +
  82 + public Integer getStatus() {
  83 + return status;
  84 + }
  85 +
  86 + public void setStatus(Integer status) {
  87 + this.status = status;
  88 + }
  89 +
  90 + public Date getAuthEndTime() {
  91 + return authEndTime;
  92 + }
  93 +
  94 + public void setAuthEndTime(Date authEndTime) {
  95 + this.authEndTime = authEndTime;
  96 + }
  97 +}
0 \ No newline at end of file 98 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductImg.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2014 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +
  7 +/**
  8 + * productImg
  9 + * @author dev-center
  10 + * @since 2014-05-10
  11 + */
  12 +public class ProductImg{
  13 +
  14 + private Long pid;
  15 + private String imgUrl;
  16 + private Long order;
  17 +
  18 + public ProductImg() {
  19 + // 默认无参构造方法
  20 + }
  21 +
  22 + /**
  23 + * 获取 pid
  24 + * @return
  25 + */
  26 + public Long getPid() {
  27 + return pid;
  28 + }
  29 +
  30 + /**
  31 + * 设置 pid
  32 + * @param pid
  33 + */
  34 + public void setPid(Long pid) {
  35 + this.pid = pid;
  36 + }
  37 +
  38 + /**
  39 + * 获取 imgUrl
  40 + * @return
  41 + */
  42 + public String getImgUrl() {
  43 + return imgUrl;
  44 + }
  45 +
  46 + /**
  47 + * 设置 imgUrl
  48 + * @param imgUrl
  49 + */
  50 + public void setImgUrl(String imgUrl) {
  51 + this.imgUrl = imgUrl;
  52 + }
  53 + public Long getOrder() {
  54 + return order;
  55 + }
  56 +
  57 + /**
  58 + * 设置 order
  59 + * @param order
  60 + */
  61 + public void setOrder(Long order) {
  62 + this.order = order;
  63 + }
  64 +}
0 \ No newline at end of file 65 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductPopAudit.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class ProductPopAudit {
  6 +
  7 + public final static int ALLOWED = 1;
  8 + public final static int DENIED = 2;
  9 +
  10 + /**
  11 + * 商品ID
  12 + */
  13 + private Long pid;
  14 + /**
  15 + * 操作人
  16 + */
  17 + private String oper;
  18 + /**
  19 + * 审批状态,拒绝,通过
  20 + */
  21 + private Integer status;
  22 + /**
  23 + * 审批原因
  24 + */
  25 + private String feedback;
  26 + /**
  27 + * 创建时间
  28 + */
  29 + private Date ctime;
  30 +
  31 + public Long getPid() {
  32 + return pid;
  33 + }
  34 +
  35 + public void setPid(Long pid) {
  36 + this.pid = pid;
  37 + }
  38 +
  39 + public String getOper() {
  40 + return oper;
  41 + }
  42 +
  43 + public void setOper(String oper) {
  44 + this.oper = oper;
  45 + }
  46 +
  47 + public Integer getStatus() {
  48 + return status;
  49 + }
  50 +
  51 + public void setStatus(Integer status) {
  52 + this.status = status;
  53 + }
  54 +
  55 + public String getFeedback() {
  56 + return feedback;
  57 + }
  58 +
  59 + public void setFeedback(String feedback) {
  60 + this.feedback = feedback;
  61 + }
  62 +
  63 + public Date getCtime() {
  64 + return ctime;
  65 + }
  66 +
  67 + public void setCtime(Date ctime) {
  68 + this.ctime = ctime;
  69 + }
  70 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductPopGroupBuying.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2016 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 +*/
  5 +package com.diligrp.titan.sdk.domain;
  6 +import java.util.Date;
  7 +
  8 +/**
  9 + * productPopGroupBuying
  10 + * @author dev-center
  11 + * @since 2016-09-13
  12 + */
  13 +public class ProductPopGroupBuying {
  14 + private static final long serialVersionUID = 1L;
  15 + private Long pid;
  16 + private Integer minBuy;
  17 + private Integer dealBuy;
  18 + private Date dealStartTime;
  19 + private Date dealEndTime;
  20 + private Date ctime;
  21 + private String utime;
  22 +
  23 + public ProductPopGroupBuying(){
  24 + //默认无参构造方法
  25 + }
  26 +
  27 + /**
  28 + * 获取 pid
  29 + * @return
  30 + */
  31 + public Long getPid(){
  32 + return pid;
  33 + }
  34 +
  35 + /**
  36 + * 设置 pid
  37 + * @param pid
  38 + */
  39 + public void setPid(Long pid){
  40 + this.pid = pid;
  41 + }
  42 +
  43 + /**
  44 + * 获取 minBuy
  45 + * @return
  46 + */
  47 + public Integer getMinBuy(){
  48 + return minBuy;
  49 + }
  50 +
  51 + /**
  52 + * 设置 minBuy
  53 + * @param minBuy
  54 + */
  55 + public void setMinBuy(Integer minBuy){
  56 + this.minBuy = minBuy;
  57 + }
  58 +
  59 + /**
  60 + * 获取 dealBuy
  61 + * @return
  62 + */
  63 + public Integer getDealBuy(){
  64 + return dealBuy;
  65 + }
  66 +
  67 + /**
  68 + * 设置 dealBuy
  69 + * @param dealBuy
  70 + */
  71 + public void setDealBuy(Integer dealBuy){
  72 + this.dealBuy = dealBuy;
  73 + }
  74 +
  75 + /**
  76 + * 获取 dealStartTime
  77 + * @return
  78 + */
  79 + public Date getDealStartTime(){
  80 + return dealStartTime;
  81 + }
  82 +
  83 + /**
  84 + * 设置 dealStartTime
  85 + * @param dealStartTime
  86 + */
  87 + public void setDealStartTime(Date dealStartTime){
  88 + this.dealStartTime = dealStartTime;
  89 + }
  90 +
  91 + /**
  92 + * 获取 dealEndTime
  93 + * @return
  94 + */
  95 + public Date getDealEndTime(){
  96 + return dealEndTime;
  97 + }
  98 +
  99 + /**
  100 + * 设置 dealEndTime
  101 + * @param dealEndTime
  102 + */
  103 + public void setDealEndTime(Date dealEndTime){
  104 + this.dealEndTime = dealEndTime;
  105 + }
  106 +
  107 + /**
  108 + * 获取 ctime
  109 + * @return
  110 + */
  111 + public Date getCtime(){
  112 + return ctime;
  113 + }
  114 +
  115 + /**
  116 + * 设置 ctime
  117 + * @param ctime
  118 + */
  119 + public void setCtime(Date ctime){
  120 + this.ctime = ctime;
  121 + }
  122 +
  123 + /**
  124 + * 获取 utime
  125 + * @return
  126 + */
  127 + public String getUtime(){
  128 + return utime;
  129 + }
  130 +
  131 + /**
  132 + * 设置 utime
  133 + * @param utime
  134 + */
  135 + public void setUtime(String utime){
  136 + this.utime = utime;
  137 + }
  138 +}
0 \ No newline at end of file 139 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductQuotation.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +/**
  4 + * <B>Description</B>商品报价信息 <br />
  5 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  6 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  7 + * <B>Company</B> 地利集团
  8 + * @createTime 2014年8月27日 下午3:54:44
  9 + * @author yangjianjun
  10 + */
  11 +public class ProductQuotation {
  12 +
  13 + /**
  14 + * 区间价格ID
  15 + */
  16 + private int id;
  17 +
  18 + /**
  19 + * 起批量价格
  20 + */
  21 + private int price;
  22 +
  23 + /**
  24 + * 商品价格区间最小起批量
  25 + */
  26 + private Integer minPurchaseScope;
  27 +
  28 + /**
  29 + * 商品价格区间最大起批量
  30 + */
  31 + private Integer maxPurchaseScope;
  32 +
  33 +
  34 + public int getPrice() {
  35 + return price;
  36 + }
  37 + public void setPrice(int price) {
  38 + this.price = price;
  39 + }
  40 + public Integer getMinPurchaseScope() {
  41 + return minPurchaseScope;
  42 + }
  43 + public void setMinPurchaseScope(Integer minPurchaseScope) {
  44 + this.minPurchaseScope = minPurchaseScope;
  45 + }
  46 + public Integer getMaxPurchaseScope() {
  47 + return maxPurchaseScope;
  48 + }
  49 + public void setMaxPurchaseScope(Integer maxPurchaseScope) {
  50 + this.maxPurchaseScope = maxPurchaseScope;
  51 + }
  52 + public int getId() {
  53 + return id;
  54 + }
  55 + public void setId(int id) {
  56 + this.id = id;
  57 + }
  58 +
  59 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductSample.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2016 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +import java.util.Date;
  7 +
  8 +/**
  9 + * productSample
  10 + * @author dev-center
  11 + * @since 2016-09-13
  12 + */
  13 +public class ProductSample {
  14 + private static final long serialVersionUID = 1L;
  15 + private Long pid;
  16 + private Integer samplePrice;
  17 + private Integer sampleStore;
  18 + private Date ctime;
  19 + private String utime;
  20 +
  21 + public ProductSample(){
  22 + //默认无参构造方法
  23 + }
  24 +
  25 + /**
  26 + * 获取 pid
  27 + * @return
  28 + */
  29 + public Long getPid(){
  30 + return pid;
  31 + }
  32 +
  33 + /**
  34 + * 设置 pid
  35 + * @param pid
  36 + */
  37 + public void setPid(Long pid){
  38 + this.pid = pid;
  39 + }
  40 +
  41 + /**
  42 + * 获取 samplePrice
  43 + * @return
  44 + */
  45 + public Integer getSamplePrice(){
  46 + return samplePrice;
  47 + }
  48 +
  49 + /**
  50 + * 设置 samplePrice
  51 + * @param samplePrice
  52 + */
  53 + public void setSamplePrice(Integer samplePrice){
  54 + this.samplePrice = samplePrice;
  55 + }
  56 +
  57 + /**
  58 + * 获取 sampleStore
  59 + * @return
  60 + */
  61 + public Integer getSampleStore(){
  62 + return sampleStore;
  63 + }
  64 +
  65 + /**
  66 + * 设置 sampleStore
  67 + * @param sampleStore
  68 + */
  69 + public void setSampleStore(Integer sampleStore){
  70 + this.sampleStore = sampleStore;
  71 + }
  72 +
  73 + /**
  74 + * 获取 ctime
  75 + * @return
  76 + */
  77 + public Date getCtime(){
  78 + return ctime;
  79 + }
  80 +
  81 + /**
  82 + * 设置 ctime
  83 + * @param ctime
  84 + */
  85 + public void setCtime(Date ctime){
  86 + this.ctime = ctime;
  87 + }
  88 +
  89 + /**
  90 + * 获取 utime
  91 + * @return
  92 + */
  93 + public String getUtime(){
  94 + return utime;
  95 + }
  96 +
  97 + /**
  98 + * 设置 utime
  99 + * @param utime
  100 + */
  101 + public void setUtime(String utime){
  102 + this.utime = utime;
  103 + }
  104 +}
0 \ No newline at end of file 105 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/ProductSearchSort.java 0 → 100644
  1 +/*
  2 + * Copyright (c) 2014 www.diligrp.com All rights reserved.
  3 + * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
  4 + */
  5 +package com.diligrp.titan.sdk.domain;
  6 +
  7 +/**
  8 + * productSearchSort
  9 + * @author dev-center
  10 + * @since 2014-09-17
  11 + */
  12 +public class ProductSearchSort {
  13 + private Long pid;
  14 + /**
  15 + * 排序优先级,越小越靠前
  16 + */
  17 + private Integer searchSort;
  18 +
  19 + public ProductSearchSort(){
  20 + //默认无参构造方法
  21 + }
  22 +
  23 + /**
  24 + * 获取 pid
  25 + * @return
  26 + */
  27 + public Long getPid(){
  28 + return pid;
  29 + }
  30 +
  31 + /**
  32 + * 设置 pid
  33 + * @param pid
  34 + */
  35 + public void setPid(Long pid){
  36 + this.pid = pid;
  37 + }
  38 +
  39 + /**
  40 + * 获取 searchSort
  41 + * @return
  42 + */
  43 + public Integer getSearchSort(){
  44 + return searchSort;
  45 + }
  46 +
  47 + /**
  48 + * 设置 searchSort
  49 + * @param searchSort
  50 + */
  51 + public void setSearchSort(Integer searchSort){
  52 + this.searchSort = searchSort;
  53 + }
  54 +
  55 +
  56 +}
0 \ No newline at end of file 57 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Purchase.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +import java.util.List;
  6 +
  7 +public class Purchase implements Serializable{
  8 +
  9 + private Long id;
  10 + /**
  11 + * 标题
  12 + */
  13 + private String title;
  14 + /**
  15 + * 联系人
  16 + */
  17 + private String userName;
  18 + /**
  19 + * 分类ID
  20 + */
  21 + private Long categoryId;
  22 + /**
  23 + * 分类名称
  24 + */
  25 + private String cateName;
  26 + /**
  27 + * 产地ID
  28 + */
  29 + private Long producingAreaId;
  30 + /**
  31 + *产地名称
  32 + */
  33 + private String producingArea;
  34 + /**
  35 + * 所在地ID
  36 + */
  37 + private Long localityAreaId;
  38 + /**
  39 + * 所在地
  40 + */
  41 + private String localityArea;
  42 + /**
  43 + * 数量
  44 + */
  45 + private Integer count;
  46 + /**
  47 + * 单位ID
  48 + */
  49 + private Integer unitId;
  50 + /**
  51 + * 单位名称
  52 + */
  53 + private String unitName;
  54 + /**
  55 + * 用户手机号
  56 + */
  57 + private String phone;
  58 + /**
  59 + * 过期时间
  60 + */
  61 + private Date expireTime;
  62 + /**
  63 + * 状态:1待审核,2-审核通过,3-审核失败,4-已过期,-1-删除 详见PpsConstant类定义
  64 + */
  65 + private Integer status;
  66 + /**
  67 + * 用户ID
  68 + */
  69 + private Long userId;
  70 + /**
  71 + * 来源1-PC;2-手机
  72 + */
  73 + private Integer source;
  74 + /**
  75 + * 审核失败 原因
  76 + */
  77 + private String reason;
  78 + /**
  79 + * 描述信息
  80 + */
  81 + private String description;
  82 + private Date ctime;
  83 + private Date utime;
  84 + /**
  85 + * 图片
  86 + */
  87 + private List<String> imgs;
  88 +
  89 + public String getTitle() {
  90 + return title;
  91 + }
  92 +
  93 + public void setTitle(String title) {
  94 + this.title = title;
  95 + }
  96 +
  97 + public String getUserName() {
  98 + return userName;
  99 + }
  100 +
  101 + public void setUserName(String userName) {
  102 + this.userName = userName;
  103 + }
  104 +
  105 + public String getCateName() {
  106 + return cateName;
  107 + }
  108 +
  109 + public void setCateName(String cateName) {
  110 + this.cateName = cateName;
  111 + }
  112 +
  113 + public Long getId() {
  114 + return id;
  115 + }
  116 +
  117 + public void setId(Long id) {
  118 + this.id = id;
  119 + }
  120 +
  121 + public Long getCategoryId() {
  122 + return categoryId;
  123 + }
  124 +
  125 + public void setCategoryId(Long categoryId) {
  126 + this.categoryId = categoryId;
  127 + }
  128 +
  129 + public Long getLocalityAreaId() {
  130 + return localityAreaId;
  131 + }
  132 +
  133 + public void setLocalityAreaId(Long localityAreaId) {
  134 + this.localityAreaId = localityAreaId;
  135 + }
  136 +
  137 + public String getLocalityArea() {
  138 + return localityArea;
  139 + }
  140 +
  141 + public void setLocalityArea(String localityArea) {
  142 + this.localityArea = localityArea;
  143 + }
  144 +
  145 + public Integer getCount() {
  146 + return count;
  147 + }
  148 +
  149 + public void setCount(Integer count) {
  150 + this.count = count;
  151 + }
  152 +
  153 + public Integer getUnitId() {
  154 + return unitId;
  155 + }
  156 +
  157 + public void setUnitId(Integer unitId) {
  158 + this.unitId = unitId;
  159 + }
  160 +
  161 + public String getUnitName() {
  162 + return unitName;
  163 + }
  164 +
  165 + public void setUnitName(String unitName) {
  166 + this.unitName = unitName;
  167 + }
  168 +
  169 + public String getPhone() {
  170 + return phone;
  171 + }
  172 +
  173 + public void setPhone(String phone) {
  174 + this.phone = phone;
  175 + }
  176 +
  177 + public Date getExpireTime() {
  178 + return expireTime;
  179 + }
  180 +
  181 + public void setExpireTime(Date expireTime) {
  182 + this.expireTime = expireTime;
  183 + }
  184 +
  185 + public Integer getStatus() {
  186 + return status;
  187 + }
  188 +
  189 + public void setStatus(Integer status) {
  190 + this.status = status;
  191 + }
  192 +
  193 + public Long getUserId() {
  194 + return userId;
  195 + }
  196 +
  197 + public void setUserId(Long userId) {
  198 + this.userId = userId;
  199 + }
  200 +
  201 + public Integer getSource() {
  202 + return source;
  203 + }
  204 +
  205 + public void setSource(Integer source) {
  206 + this.source = source;
  207 + }
  208 +
  209 + public String getReason() {
  210 + return reason;
  211 + }
  212 +
  213 + public void setReason(String reason) {
  214 + this.reason = reason;
  215 + }
  216 +
  217 + public Date getCtime() {
  218 + return ctime;
  219 + }
  220 +
  221 + public void setCtime(Date ctime) {
  222 + this.ctime = ctime;
  223 + }
  224 +
  225 + public Date getUtime() {
  226 + return utime;
  227 + }
  228 +
  229 + public void setUtime(Date utime) {
  230 + this.utime = utime;
  231 + }
  232 +
  233 + public String getDescription() {
  234 + return description;
  235 + }
  236 +
  237 + public void setDescription(String description) {
  238 + this.description = description;
  239 + }
  240 +
  241 + public Long getProducingAreaId() {
  242 + return producingAreaId;
  243 + }
  244 +
  245 + public void setProducingAreaId(Long producingAreaId) {
  246 + this.producingAreaId = producingAreaId;
  247 + }
  248 +
  249 + public String getProducingArea() {
  250 + return producingArea;
  251 + }
  252 +
  253 + public void setProducingArea(String producingArea) {
  254 + this.producingArea = producingArea;
  255 + }
  256 +
  257 + public List<String> getImgs() {
  258 + return imgs;
  259 + }
  260 +
  261 + public void setImgs(List<String> imgs) {
  262 + this.imgs = imgs;
  263 + }
  264 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/SeoInfo.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +/**
  4 + *
  5 + * <B>Description</B> TODO <br />
  6 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  7 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  8 + * <B>Company</B> 地利集团
  9 + * @createTime 2014年5月14日 下午4:09:08
  10 + * @author dili-guwenwu
  11 + */
  12 +public class SeoInfo {
  13 +
  14 + /**
  15 + * SEO title
  16 + */
  17 + private String title;
  18 + /**
  19 + * SEO keyword
  20 + */
  21 + private String keyword;
  22 + /**
  23 + * SEO Description
  24 + */
  25 + private String description;
  26 +
  27 + /**
  28 + * SEO title
  29 + */
  30 + public String getTitle() {
  31 + return title;
  32 + }
  33 +
  34 + public void setTitle(String title) {
  35 + this.title = title;
  36 + }
  37 +
  38 + /**
  39 + * SEO keyword
  40 + */
  41 + public String getKeyword() {
  42 + return keyword;
  43 + }
  44 +
  45 + public void setKeyword(String keyword) {
  46 + this.keyword = keyword;
  47 + }
  48 +
  49 + /**
  50 + * SEO Description
  51 + */
  52 + public String getDescription() {
  53 + return description;
  54 + }
  55 +
  56 + public void setDescription(String description) {
  57 + this.description = description;
  58 + }
  59 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Sku.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +import java.util.Map;
  3 +public class Sku {
  4 +
  5 + /**
  6 + * 带版本号加密sku
  7 + */
  8 + private String sku;
  9 + /**
  10 + * 解密sku
  11 + */
  12 + private String decodeSku;
  13 + /**
  14 + * 商品sku备注名称
  15 + */
  16 + private String remark;
  17 + /**
  18 + * 商品id
  19 + */
  20 + private long pid;
  21 + /**
  22 + * sku库存量
  23 + */
  24 + private int stockNum;
  25 + /**
  26 + * sku起批量
  27 + */
  28 + private int minNum;
  29 + /**
  30 + * sku价格
  31 + */
  32 + private int price;
  33 +
  34 + /**
  35 + * SKU版本号
  36 + */
  37 + private Integer version;
  38 +
  39 + /**
  40 + * 已销售量
  41 + */
  42 + private Long sales;
  43 +
  44 + private Integer status;
  45 +
  46 + /**
  47 + * sku属性Map
  48 + */
  49 + private Map<String, String> attributesMap;
  50 +
  51 + /**
  52 + * 商品sku
  53 + */
  54 + public String getSku() {
  55 + return sku;
  56 + }
  57 +
  58 + public void setSku(String sku) {
  59 + this.sku = sku;
  60 + }
  61 +
  62 + /**
  63 + * 商品sku备注名称
  64 + */
  65 + public String getRemark() {
  66 + return remark;
  67 + }
  68 +
  69 + public void setRemark(String remark) {
  70 + this.remark = remark;
  71 + }
  72 +
  73 + public long getPid() {
  74 + return pid;
  75 + }
  76 +
  77 + public void setPid(long pid) {
  78 + this.pid = pid;
  79 + }
  80 +
  81 + public int getStockNum() {
  82 + return stockNum;
  83 + }
  84 +
  85 + public void setStockNum(int stockNum) {
  86 + this.stockNum = stockNum;
  87 + }
  88 +
  89 + public int getMinNum() {
  90 + return minNum;
  91 + }
  92 +
  93 + public void setMinNum(int minNum) {
  94 + this.minNum = minNum;
  95 + }
  96 +
  97 + public int getPrice() {
  98 + return price;
  99 + }
  100 +
  101 + public void setPrice(int price) {
  102 + this.price = price;
  103 + }
  104 +
  105 + public Integer getVersion() {
  106 + return version;
  107 + }
  108 +
  109 + public void setVersion(Integer version) {
  110 + this.version = version;
  111 + }
  112 +
  113 +
  114 + public Long getSales() {
  115 + return sales;
  116 + }
  117 +
  118 +
  119 + public void setSales(Long sales) {
  120 + this.sales = sales;
  121 + }
  122 +
  123 + public String getDecodeSku() {
  124 + return decodeSku;
  125 + }
  126 +
  127 + public void setDecodeSku(String decodeSku) {
  128 + this.decodeSku = decodeSku;
  129 + }
  130 +
  131 + public Integer getStatus() {
  132 + return status;
  133 + }
  134 +
  135 + public void setStatus(Integer status) {
  136 + this.status = status;
  137 + }
  138 +
  139 + public Map<String, String> getAttributesMap() {
  140 + return attributesMap;
  141 + }
  142 +
  143 + public void setAttributesMap(Map<String, String> attributesMap) {
  144 + this.attributesMap = attributesMap;
  145 + }
  146 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/StockInfo.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +public class StockInfo {
  4 +
  5 + /**
  6 + * 商品SKU
  7 + */
  8 + private String sku;
  9 + /**
  10 + * 库存量
  11 + */
  12 + private int stockNum;
  13 + /**
  14 + * 上下架状态
  15 + */
  16 + private int status;
  17 +
  18 + /**
  19 + * 商品SKU
  20 + * @return
  21 + */
  22 + public String getSku() {
  23 + return sku;
  24 + }
  25 +
  26 + public void setSku(String sku) {
  27 + this.sku = sku;
  28 + }
  29 +
  30 + /**
  31 + * 商品库存量
  32 + * @return
  33 + */
  34 + public int getStockNum() {
  35 + return stockNum;
  36 + }
  37 +
  38 + public void setStockNum(int stockNum) {
  39 + this.stockNum = stockNum;
  40 + }
  41 +
  42 + /**
  43 + * 商品上下架状态
  44 + * @return
  45 + */
  46 + public int getStatus() {
  47 + return status;
  48 + }
  49 +
  50 + public void setStatus(int status) {
  51 + this.status = status;
  52 + }
  53 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/SupplierInfo.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +public class SupplierInfo {
  4 +
  5 + /**
  6 + * 供应商ID
  7 + */
  8 + private Long supplierId;
  9 + /**
  10 + * 供应商名称
  11 + */
  12 + private String supplierName;
  13 + /**
  14 + * 供应商库存量
  15 + */
  16 + private int stockNum;
  17 + /**
  18 + * 销售数量
  19 + */
  20 + private int salesNum;
  21 + /**
  22 + * 销售单位
  23 + */
  24 + private String saleUnit;
  25 + /**
  26 + * 是否是默认供应商
  27 + */
  28 + private Boolean isDefault;
  29 +
  30 + /**
  31 + * 供应商商品ID
  32 + */
  33 + private Long pid;
  34 +
  35 + /**
  36 + * 供应商SKU
  37 + */
  38 + private String sku;
  39 + /**
  40 + * 销售价格
  41 + */
  42 + private int price;
  43 +
  44 + /**
  45 + * 供应商ID
  46 + * @return
  47 + */
  48 + public Long getSupplierId() {
  49 + return supplierId;
  50 + }
  51 +
  52 + public void setSupplierId(Long supplierId) {
  53 + this.supplierId = supplierId;
  54 + }
  55 +
  56 + /**
  57 + * 供应商库存量
  58 + * @return
  59 + */
  60 + public int getStockNum() {
  61 + return stockNum;
  62 + }
  63 +
  64 + public void setStockNum(int stockNum) {
  65 + this.stockNum = stockNum;
  66 + }
  67 +
  68 + /**
  69 + * 供应商已销售量
  70 + * @return
  71 + */
  72 + public int getSalesNum() {
  73 + return salesNum;
  74 + }
  75 +
  76 + public void setSalesNum(int salesNum) {
  77 + this.salesNum = salesNum;
  78 + }
  79 +
  80 + /**
  81 + * 商品价格
  82 + * @return
  83 + */
  84 + public int getPrice() {
  85 + return price;
  86 + }
  87 +
  88 + public void setPrice(int price) {
  89 + this.price = price;
  90 + }
  91 +
  92 + /**
  93 + * 供应商名称
  94 + * @return
  95 + */
  96 +
  97 + public String getSupplierName() {
  98 + return supplierName;
  99 + }
  100 +
  101 + public void setSupplierName(String supplierName) {
  102 + this.supplierName = supplierName;
  103 + }
  104 +
  105 + public String getSaleUnit() {
  106 + return saleUnit;
  107 + }
  108 +
  109 + public void setSaleUnit(String saleUnit) {
  110 + this.saleUnit = saleUnit;
  111 + }
  112 +
  113 + public Long getPid() {
  114 + return pid;
  115 + }
  116 +
  117 + public void setPid(Long pid) {
  118 + this.pid = pid;
  119 + }
  120 +
  121 + public String getSku() {
  122 + return sku;
  123 + }
  124 +
  125 + public void setSku(String sku) {
  126 + this.sku = sku;
  127 + }
  128 +
  129 + public Boolean getIsDefault() {
  130 + return isDefault;
  131 + }
  132 +
  133 + public void setIsDefault(Boolean isDefault) {
  134 + this.isDefault = isDefault;
  135 + }
  136 +
  137 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Supply.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Date;
  4 +import java.util.List;
  5 +
  6 +public class Supply {
  7 +
  8 + private Long id;
  9 + /**
  10 + * 标题
  11 + */
  12 + private String title;
  13 + /**
  14 + * 联系人
  15 + */
  16 + private String userName;
  17 + /**
  18 + * 分类ID
  19 + */
  20 + private Long categoryId;
  21 + /**
  22 + * 分类名称
  23 + */
  24 + private String cateName;
  25 + /**
  26 + * 所在地ID
  27 + */
  28 + private Long localityAreaId;
  29 + /**
  30 + * 所在地
  31 + */
  32 + private String localityArea;
  33 + /**
  34 + * 产地ID
  35 + */
  36 + private Long producingAreaId;
  37 + /**
  38 + *产地名称
  39 + */
  40 + private String producingArea;
  41 + /**
  42 + * 价格
  43 + */
  44 + private Long price;
  45 + /**
  46 + * 数量
  47 + */
  48 + private Integer count;
  49 + /**
  50 + * 单位ID
  51 + */
  52 + private Integer unitId;
  53 + /**
  54 + * 单位名称
  55 + */
  56 + private String unitName;
  57 + /**
  58 + * 用户ID
  59 + */
  60 + private Long userId;
  61 + /**
  62 + * 用户手机号
  63 + */
  64 + private String phone;
  65 + /**
  66 + * 过期时间
  67 + */
  68 + private Date expireTime;
  69 + /**
  70 + * 状态:1待审核,2-审核通过,3-审核失败,4-已过期,-1-删除 详见PpsConstant类定义
  71 + */
  72 + private Integer status;
  73 + /**
  74 + * 来源1-PC;2-手机
  75 + */
  76 + private Integer source;
  77 + /**
  78 + * 审核失败 原因
  79 + */
  80 + private String reason;
  81 + /**
  82 + * 描述信息
  83 + */
  84 + private String description;
  85 + private Date ctime;
  86 + private Date utime;
  87 + /**
  88 + * 图片
  89 + */
  90 + private List<String> imgs;
  91 +
  92 + public String getTitle() {
  93 + return title;
  94 + }
  95 +
  96 + public void setTitle(String title) {
  97 + this.title = title;
  98 + }
  99 +
  100 + public String getUserName() {
  101 + return userName;
  102 + }
  103 +
  104 + public void setUserName(String userName) {
  105 + this.userName = userName;
  106 + }
  107 +
  108 + public String getCateName() {
  109 + return cateName;
  110 + }
  111 +
  112 + public void setCateName(String cateName) {
  113 + this.cateName = cateName;
  114 + }
  115 +
  116 + public Long getId() {
  117 + return id;
  118 + }
  119 +
  120 + public void setId(Long id) {
  121 + this.id = id;
  122 + }
  123 +
  124 + public Long getCategoryId() {
  125 + return categoryId;
  126 + }
  127 +
  128 + public void setCategoryId(Long categoryId) {
  129 + this.categoryId = categoryId;
  130 + }
  131 +
  132 + public Long getProducingAreaId() {
  133 + return producingAreaId;
  134 + }
  135 +
  136 + public void setProducingAreaId(Long producingAreaId) {
  137 + this.producingAreaId = producingAreaId;
  138 + }
  139 +
  140 + public String getProducingArea() {
  141 + return producingArea;
  142 + }
  143 +
  144 + public void setProducingArea(String producingArea) {
  145 + this.producingArea = producingArea;
  146 + }
  147 +
  148 + public Long getPrice() {
  149 + return price;
  150 + }
  151 +
  152 + public void setPrice(Long price) {
  153 + this.price = price;
  154 + }
  155 +
  156 + public Integer getCount() {
  157 + return count;
  158 + }
  159 +
  160 + public void setCount(Integer count) {
  161 + this.count = count;
  162 + }
  163 +
  164 + public Integer getUnitId() {
  165 + return unitId;
  166 + }
  167 +
  168 + public void setUnitId(Integer unitId) {
  169 + this.unitId = unitId;
  170 + }
  171 +
  172 + public String getUnitName() {
  173 + return unitName;
  174 + }
  175 +
  176 + public void setUnitName(String unitName) {
  177 + this.unitName = unitName;
  178 + }
  179 +
  180 + public Long getUserId() {
  181 + return userId;
  182 + }
  183 +
  184 + public void setUserId(Long userId) {
  185 + this.userId = userId;
  186 + }
  187 +
  188 + public String getPhone() {
  189 + return phone;
  190 + }
  191 +
  192 + public void setPhone(String phone) {
  193 + this.phone = phone;
  194 + }
  195 +
  196 + public Date getExpireTime() {
  197 + return expireTime;
  198 + }
  199 +
  200 + public void setExpireTime(Date expireTime) {
  201 + this.expireTime = expireTime;
  202 + }
  203 +
  204 + public Integer getStatus() {
  205 + return status;
  206 + }
  207 +
  208 + public void setStatus(Integer status) {
  209 + this.status = status;
  210 + }
  211 +
  212 + public Integer getSource() {
  213 + return source;
  214 + }
  215 +
  216 + public void setSource(Integer source) {
  217 + this.source = source;
  218 + }
  219 +
  220 + public String getReason() {
  221 + return reason;
  222 + }
  223 +
  224 + public void setReason(String reason) {
  225 + this.reason = reason;
  226 + }
  227 +
  228 + public String getDescription() {
  229 + return description;
  230 + }
  231 +
  232 + public void setDescription(String description) {
  233 + this.description = description;
  234 + }
  235 +
  236 + public Date getCtime() {
  237 + return ctime;
  238 + }
  239 +
  240 + public void setCtime(Date ctime) {
  241 + this.ctime = ctime;
  242 + }
  243 +
  244 + public Date getUtime() {
  245 + return utime;
  246 + }
  247 +
  248 + public void setUtime(Date utime) {
  249 + this.utime = utime;
  250 + }
  251 +
  252 + public Long getLocalityAreaId() {
  253 + return localityAreaId;
  254 + }
  255 +
  256 + public void setLocalityAreaId(Long localityAreaId) {
  257 + this.localityAreaId = localityAreaId;
  258 + }
  259 +
  260 + public String getLocalityArea() {
  261 + return localityArea;
  262 + }
  263 +
  264 + public void setLocalityArea(String localityArea) {
  265 + this.localityArea = localityArea;
  266 + }
  267 +
  268 + public List<String> getImgs() {
  269 + return imgs;
  270 + }
  271 +
  272 + public void setImgs(List<String> imgs) {
  273 + this.imgs = imgs;
  274 + }
  275 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/domain/Video.java 0 → 100644
  1 +package com.diligrp.titan.sdk.domain;
  2 +
  3 +import java.util.Map;
  4 +
  5 +
  6 +/**
  7 + * <B>Description</B> <br />
  8 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  9 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  10 + * <B>Company</B> 地利集团
  11 + * @createTime 2014-12-25 17:37:24
  12 + * @author template
  13 + */public class Video{
  14 +
  15 + /**
  16 + * MP4清晰度:流畅
  17 + */
  18 + public static final int MP4_LC = 1;
  19 +
  20 + /**
  21 + * MP4清晰度:高清
  22 + */
  23 + public static final int MP4_GQ = 2;
  24 +
  25 + /**
  26 + * M3U8清晰度:流畅
  27 + */
  28 + public static final int M3U8_LC = 1;
  29 +
  30 + /**
  31 + * M3U8清晰度:高清
  32 + */
  33 + public static final int M3U8_GQ = 2;
  34 +
  35 + /**
  36 + * M3U8清晰度:超清
  37 + */
  38 + public static final int M3U8_CQ = 3;
  39 +
  40 + /**
  41 + * M3U8清晰度:720P
  42 + */
  43 + public static final int M3U8_720P = 4;
  44 +
  45 + /**
  46 + * M3U8清晰度:1080P
  47 + */
  48 + public static final int M3U8_1080P = 5;
  49 +
  50 + /**
  51 + * M3U8清晰度:极速
  52 + */
  53 + public static final int M3U8_JS = 96;
  54 + /**
  55 + * 视频来源:第三方
  56 + */
  57 + public static final int VIDEO_SOURCE_POP = 2;
  58 + /**
  59 + * 视频来源:移动端
  60 + */
  61 + public static final int VIDEO_SOURCE_YD = 3;
  62 + /*状态---删除*/
  63 + public static final int STATUS_DELETE = -1;
  64 + /*状态--审核中*/
  65 + public static final int STATUS_AUDIT = 1;
  66 + /*状态--审核通过*/
  67 + public static final int STATUS_AUDIT_COMPLETE = 2;
  68 + /*状态--审核拒绝*/
  69 + public static final int STATUS_AUDIT_REFUSE = 3;
  70 + /**
  71 + * 视频ID
  72 + */
  73 + private Long id;
  74 + /**
  75 + * 视频名称
  76 + */
  77 + private String name;
  78 + /**
  79 + * 视频分类ID
  80 + */
  81 + private Long categoryId;
  82 + /**
  83 + * 视频资源id
  84 + */
  85 + private String fileId;
  86 + /**
  87 + * 视频url
  88 + */
  89 + private String pageUrl;
  90 + /**
  91 + * 视频图片
  92 + */
  93 + private String img;
  94 + /**
  95 + * 视频状态
  96 + */
  97 + private Integer status;
  98 + /**
  99 + * 视频描述
  100 + */
  101 + private String description;
  102 + /**
  103 + * 来源
  104 + */
  105 + private Integer source;
  106 + /**
  107 + * mp4视频地址 key 清晰度 值是地址
  108 + */
  109 + private Map<Integer,String> mp4Url;
  110 +
  111 + /**
  112 + * m3u8视频地址 key 清晰度 值是地址
  113 + */
  114 + private Map<Integer,String> m3u8Url;
  115 +
  116 + public Long getId() {
  117 + return id;
  118 + }
  119 +
  120 + public void setId(Long id) {
  121 + this.id = id;
  122 + }
  123 +
  124 + public void setName (String name){
  125 + this.name = name;
  126 + }
  127 + public String getName(){
  128 + return this.name;
  129 + }
  130 + public void setCategoryId (Long categoryId){
  131 + this.categoryId = categoryId;
  132 + }
  133 + public Long getCategoryId(){
  134 + return this.categoryId;
  135 + }
  136 + public void setStatus (Integer status){
  137 + this.status = status;
  138 + }
  139 + public Integer getStatus(){
  140 + return this.status;
  141 + }
  142 + public void setDescription (String description){
  143 + this.description = description;
  144 + }
  145 + public String getDescription(){
  146 + return this.description;
  147 + }
  148 + public String getFileId() {
  149 + return fileId;
  150 + }
  151 + public void setFileId(String fileId) {
  152 + this.fileId = fileId;
  153 + }
  154 + public String getPageUrl() {
  155 + return pageUrl;
  156 + }
  157 + public void setPageUrl(String pageUrl) {
  158 + this.pageUrl = pageUrl;
  159 + }
  160 + public String getImg() {
  161 + return img;
  162 + }
  163 + public void setImg(String img) {
  164 + this.img = img;
  165 + }
  166 +
  167 + public Integer getSource() {
  168 + return source;
  169 + }
  170 +
  171 + public void setSource(Integer source) {
  172 + this.source = source;
  173 + }
  174 +
  175 + public Map<Integer, String> getMp4Url() {
  176 + return mp4Url;
  177 + }
  178 +
  179 + public void setMp4Url(Map<Integer, String> mp4Url) {
  180 + this.mp4Url = mp4Url;
  181 + }
  182 +
  183 + public Map<Integer, String> getM3u8Url() {
  184 + return m3u8Url;
  185 + }
  186 +
  187 + public void setM3u8Url(Map<Integer, String> m3u8Url) {
  188 + this.m3u8Url = m3u8Url;
  189 + }
  190 +}
0 \ No newline at end of file 191 \ No newline at end of file
titan-sdk/src/main/java/com/diligrp/titan/sdk/http/BasicHttpClient.java 0 → 100644
  1 +package com.diligrp.titan.sdk.http;
  2 +
  3 +import org.apache.http.HttpEntityEnclosingRequest;
  4 +import org.apache.http.HttpRequest;
  5 +import org.apache.http.NoHttpResponseException;
  6 +import org.apache.http.client.HttpClient;
  7 +import org.apache.http.client.HttpRequestRetryHandler;
  8 +import org.apache.http.client.config.CookieSpecs;
  9 +import org.apache.http.client.config.RequestConfig;
  10 +import org.apache.http.config.ConnectionConfig;
  11 +import org.apache.http.config.Registry;
  12 +import org.apache.http.config.RegistryBuilder;
  13 +import org.apache.http.config.SocketConfig;
  14 +import org.apache.http.conn.socket.ConnectionSocketFactory;
  15 +import org.apache.http.conn.socket.PlainConnectionSocketFactory;
  16 +import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
  17 +import org.apache.http.impl.client.CloseableHttpClient;
  18 +import org.apache.http.impl.client.HttpClientBuilder;
  19 +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
  20 +import org.apache.http.protocol.HttpContext;
  21 +import org.apache.http.protocol.HttpCoreContext;
  22 +import org.apache.log4j.Logger;
  23 +
  24 +import javax.net.ssl.SSLHandshakeException;
  25 +import java.io.IOException;
  26 +import java.nio.charset.Charset;
  27 +
  28 +public class BasicHttpClient {
  29 +
  30 + private static final Logger logger = Logger.getLogger(BasicHttpClient.class);
  31 + private static final String USERAGENT = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22";
  32 +
  33 + private static CloseableHttpClient httpclient = null;
  34 +
  35 + private static void init(int timeOut) {
  36 + try {
  37 + Registry<ConnectionSocketFactory> registry = RegistryBuilder.<ConnectionSocketFactory> create()
  38 + .register("http", PlainConnectionSocketFactory.getSocketFactory())
  39 + .register("https", SSLConnectionSocketFactory.getSystemSocketFactory()).build();
  40 +
  41 + PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(registry);
  42 + cm.setDefaultMaxPerRoute(200);
  43 + cm.setMaxTotal(400);
  44 + if(timeOut<=0) timeOut=30000;
  45 + RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(timeOut).setSocketTimeout(timeOut)
  46 + .setCookieSpec(CookieSpecs.BROWSER_COMPATIBILITY).setAuthenticationEnabled(true)
  47 + .setRedirectsEnabled(true).build();
  48 + SocketConfig socketConfig = SocketConfig.custom().setSoTimeout(timeOut).build();
  49 + ConnectionConfig connectionConfig = ConnectionConfig.custom().setCharset(Charset.forName("utf-8")).build();
  50 +
  51 + HttpClientBuilder builder = HttpClientBuilder.create();
  52 + builder.setUserAgent(USERAGENT);
  53 + builder.setDefaultConnectionConfig(connectionConfig);
  54 + builder.setDefaultRequestConfig(requestConfig);
  55 + builder.setDefaultSocketConfig(socketConfig);
  56 + builder.setRetryHandler(new HttpRequestRetryHandler() {
  57 +
  58 + public boolean retryRequest(IOException exception, int executionCount, HttpContext context) {
  59 + if (executionCount >= 3) {
  60 + return false;
  61 + }
  62 + if (exception instanceof NoHttpResponseException) {
  63 + return true;
  64 + }
  65 + if (exception instanceof SSLHandshakeException) {
  66 + return false;
  67 + }
  68 + HttpRequest request = (HttpRequest) context.getAttribute(HttpCoreContext.HTTP_REQUEST);
  69 + boolean idempotent = !(request instanceof HttpEntityEnclosingRequest);
  70 + if (idempotent) {
  71 + return true;
  72 + }
  73 + return false;
  74 + }
  75 + });
  76 + builder.setConnectionManager(cm);
  77 + httpclient = builder.build();
  78 + } catch (Exception e) {
  79 + logger.error("init httpclient error!", e);
  80 + }
  81 + }
  82 +
  83 + /**
  84 + * Get the single httpclient
  85 + *
  86 + * @return
  87 + */
  88 + public static HttpClient getHttpClient(int timeOut) {
  89 + if(httpclient == null){
  90 + init(timeOut);
  91 + }
  92 + return httpclient;
  93 + }
  94 +
  95 + /**
  96 + * shut down the connection manager to ensure immediate deallocation of all
  97 + * system resources
  98 + */
  99 + public static void shutdown() {
  100 + try {
  101 + httpclient.close();
  102 + } catch (Exception e) {
  103 + logger.error(e);
  104 + }
  105 + }
  106 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/input/BaseProductView.java 0 → 100644
  1 +package com.diligrp.titan.sdk.input;
  2 +
  3 +import com.diligrp.titan.sdk.domain.*;
  4 +
  5 +import java.util.List;
  6 +
  7 +public class BaseProductView {
  8 +
  9 + /**
  10 + * 商品名称
  11 + */
  12 + protected String name;
  13 +
  14 + /**
  15 + * 分类ID
  16 + */
  17 + protected Integer cid;
  18 + /**
  19 + * 分类名称
  20 + */
  21 + protected String cname;
  22 + /**
  23 + * 产地id
  24 + */
  25 + protected Long productionAddrId;
  26 +
  27 + /**
  28 + * 所在地名称
  29 + */
  30 + private String localityName;
  31 + /**
  32 + * 所在地ID
  33 + */
  34 + private Long localityArea;
  35 +
  36 + /**
  37 + * 销售单位
  38 + */
  39 + protected Integer saleUnit;
  40 + /**
  41 + * 商品类型(0普通商品,1拼购商品)
  42 + */
  43 + private int productType;
  44 + /**
  45 + * 商品是否存在样品(0无样品、1有样品)
  46 + */
  47 + private int productSample;
  48 + /**
  49 + * 报价类型(1 常规格报价销售,2 价格区间销售)
  50 + */
  51 + protected int quotationType;
  52 + /**
  53 + * 默认图片
  54 + */
  55 + protected String defaultPic;
  56 +
  57 + /**
  58 + * 图片列表
  59 + */
  60 + protected List<String> pictures;
  61 +
  62 + /**
  63 + * 描述详情
  64 + */
  65 + protected String desc;
  66 +
  67 + /**
  68 + * sku列表
  69 + */
  70 + protected List<Sku> skus;
  71 +
  72 +
  73 + /**
  74 + * 商品报价列表
  75 + */
  76 + private List<ProductQuotation> productQuotation;
  77 +
  78 + /**
  79 + * 商品认证
  80 + */
  81 + private List<ProductAuth> productAuth;
  82 +
  83 + /**
  84 + * 描述属性
  85 + */
  86 + protected List<Attribute> descAtt;
  87 + /**
  88 + * 销售属性
  89 + */
  90 + protected List<Attribute> saleAtt;
  91 + /**
  92 + * 商品拼购信息
  93 + */
  94 + private ProductPopGroupBuying productPopGroupBuying;
  95 + /**
  96 + * 商品样品信息
  97 + */
  98 + private ProductSample productSampleObj;
  99 +
  100 + /**
  101 + *
  102 + * 获取商品名称
  103 + * @return
  104 + */
  105 + public String getName() {
  106 + return name;
  107 + }
  108 +
  109 + /**
  110 + * 设置商品名称
  111 + * @param name
  112 + */
  113 + public void setName(String name) {
  114 + this.name = name;
  115 + }
  116 +
  117 + public int getCid() {
  118 + return cid;
  119 + }
  120 +
  121 + public List<ProductAuth> getProductAuth() {
  122 + return productAuth;
  123 + }
  124 +
  125 + public void setProductAuth(List<ProductAuth> productAuth) {
  126 + this.productAuth = productAuth;
  127 + }
  128 +
  129 + /**
  130 + * 设置商品类目ID
  131 + * @param cid
  132 + * @createTime 2014年5月16日 下午5:15:47
  133 + * @author dili-guwenwu
  134 + */
  135 + public void setCid(Integer cid) {
  136 + this.cid = cid;
  137 + }
  138 +
  139 + public Long getProductionAddrId() {
  140 + return productionAddrId;
  141 + }
  142 +
  143 + /**
  144 + * 设置商品产地ID
  145 + * @param productionAddrId
  146 + */
  147 + public void setProductionAddrId(Long productionAddrId) {
  148 + this.productionAddrId = productionAddrId;
  149 + }
  150 +
  151 + public Integer getSaleUnit() {
  152 + return saleUnit;
  153 + }
  154 +
  155 + /**
  156 + * 设置销售单位
  157 + * @param saleUnit
  158 + */
  159 + public void setSaleUnit(Integer saleUnit) {
  160 + this.saleUnit = saleUnit;
  161 + }
  162 +
  163 + public String getDefaultPic() {
  164 + return defaultPic;
  165 + }
  166 +
  167 + public void setDefaultPic(String defaultPic) {
  168 + this.defaultPic = defaultPic;
  169 + }
  170 +
  171 + public List<String> getPictures() {
  172 + return pictures;
  173 + }
  174 +
  175 + public void setPictures(List<String> pictures) {
  176 + this.pictures = pictures;
  177 + }
  178 +
  179 + public String getDesc() {
  180 + return desc;
  181 + }
  182 +
  183 + public void setDesc(String desc) {
  184 + this.desc = desc;
  185 + }
  186 +
  187 + public List<Sku> getSkus() {
  188 + return skus;
  189 + }
  190 +
  191 + public void setSkus(List<Sku> skus) {
  192 + this.skus = skus;
  193 + }
  194 +
  195 + public List<Attribute> getDescAtt() {
  196 + return descAtt;
  197 + }
  198 +
  199 + public void setDescAtt(List<Attribute> descAtt) {
  200 + this.descAtt = descAtt;
  201 + }
  202 +
  203 + public List<Attribute> getSaleAtt() {
  204 + return saleAtt;
  205 + }
  206 +
  207 + public void setSaleAtt(List<Attribute> saleAtt) {
  208 + this.saleAtt = saleAtt;
  209 + }
  210 +
  211 + public String getCname() {
  212 + return cname;
  213 + }
  214 +
  215 + public void setCname(String cname) {
  216 + this.cname = cname;
  217 + }
  218 +
  219 + public int getProductType() {
  220 + return productType;
  221 + }
  222 +
  223 + public void setProductType(int productType) {
  224 + this.productType = productType;
  225 + }
  226 +
  227 + public List<ProductQuotation> getProductQuotation() {
  228 + return productQuotation;
  229 + }
  230 +
  231 + public void setProductQuotation(List<ProductQuotation> productQuotation) {
  232 + this.productQuotation = productQuotation;
  233 + }
  234 +
  235 + public int getQuotationType() {
  236 + return quotationType;
  237 + }
  238 +
  239 + public void setQuotationType(int quotationType) {
  240 + this.quotationType = quotationType;
  241 + }
  242 +
  243 + public String getLocalityName() {
  244 + return localityName;
  245 + }
  246 +
  247 + public void setLocalityName(String localityName) {
  248 + this.localityName = localityName;
  249 + }
  250 +
  251 + public int getProductSample() {
  252 + return productSample;
  253 + }
  254 +
  255 + public void setProductSample(int productSample) {
  256 + this.productSample = productSample;
  257 + }
  258 +
  259 + public ProductSample getProductSampleObj() {
  260 + return productSampleObj;
  261 + }
  262 +
  263 + public void setProductSampleObj(ProductSample productSampleObj) {
  264 + this.productSampleObj = productSampleObj;
  265 + }
  266 +
  267 + public ProductPopGroupBuying getProductPopGroupBuying() {
  268 + return productPopGroupBuying;
  269 + }
  270 +
  271 + public void setProductPopGroupBuying(ProductPopGroupBuying productPopGroupBuying) {
  272 + this.productPopGroupBuying = productPopGroupBuying;
  273 + }
  274 +
  275 + public Long getLocalityArea() {
  276 + return localityArea;
  277 + }
  278 +
  279 + public void setLocalityArea(Long localityArea) {
  280 + this.localityArea = localityArea;
  281 + }
  282 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/input/DefindResult.java 0 → 100644
  1 +package com.diligrp.titan.sdk.input;
  2 +
  3 +/**
  4 + * <p>
  5 + * Title: 〈标题〉
  6 + * </p>
  7 + * <p>
  8 + * Description: 〈描述〉
  9 + * </p>
  10 + * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
  11 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  12 + * <B>Company</B> 地利集团
  13 + * <p>
  14 + * CreateTime:2015/4/7
  15 + * </p>
  16 + *
  17 + * @author gongsz
  18 + */
  19 +public class DefindResult {
  20 +
  21 + /**
  22 + * 描述属性
  23 + */
  24 + public static final String ATTRIBUTE = "attribute";
  25 +
  26 + /**
  27 + * 分类详细信息
  28 + */
  29 + public static final String CATE = "cate";
  30 +
  31 + /**
  32 + * 商品认证
  33 + */
  34 + public static final String AUTH = "auth";
  35 + /**
  36 + * 商品视频
  37 + */
  38 + public static final String VIEDEO = "video";
  39 + /**
  40 + * 子分类
  41 + */
  42 + public static final String SUB_CATES = "subCates";
  43 +
  44 + /**
  45 + * 审核失败原因
  46 + */
  47 + public static final String FEEDBACK = "feedback";
  48 +
  49 + /**
  50 + * 评论数量
  51 + */
  52 + public static final String COMMENT_NUM = "commentCount";
  53 +
  54 +
  55 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/input/ListCatProductInput.java 0 → 100644
  1 +package com.diligrp.titan.sdk.input;
  2 +
  3 +public class ListCatProductInput {
  4 +
  5 + /**
  6 + * 商品类目ID
  7 + */
  8 + private int cid;
  9 + /**
  10 + * 是否返回商品详情,默认返回商品概要 0, 商品概要 1, 商品SKU 2, 商品详情
  11 + */
  12 + private int detail;
  13 + /**
  14 + * 当前页数
  15 + */
  16 + private int page;
  17 + /**
  18 + * 每页大小
  19 + */
  20 + private int pageSize;
  21 +
  22 + public ListCatProductInput() {
  23 + }
  24 +
  25 + public ListCatProductInput(int cid, int detail) {
  26 + super();
  27 + this.cid = cid;
  28 + this.detail = detail;
  29 + }
  30 +
  31 + public int getCid() {
  32 + return cid;
  33 + }
  34 +
  35 + public void setCid(int cid) {
  36 + this.cid = cid;
  37 + }
  38 +
  39 + public int getDetail() {
  40 + return detail;
  41 + }
  42 +
  43 + public void setDetail(int detail) {
  44 + this.detail = detail;
  45 + }
  46 +
  47 + public int getPage() {
  48 + return page;
  49 + }
  50 +
  51 + public void setPage(int page) {
  52 + this.page = page;
  53 + }
  54 +
  55 + public int getPageSize() {
  56 + return pageSize;
  57 + }
  58 +
  59 + public void setPageSize(int pageSize) {
  60 + this.pageSize = pageSize;
  61 + }
  62 +
  63 +}
titan-sdk/src/main/java/com/diligrp/titan/sdk/input/PopProductSearchInput.java 0 → 100644
  1 +package com.diligrp.titan.sdk.input;
  2 +
  3 +import java.util.Date;
  4 +import java.util.List;
  5 +
  6 +/**
  7 + * <B>Description</B> 用户中心商品查询对象 <br />
  8 + * <B>Copyright</B> Copyright (c) 2015 www.diligrp.com All rights reserved. <br />
  9 + * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
  10 + * <B>Company</B> 地利集团
  11 + * @createTime 2015年4月20日 下午5:30:56
  12 + * @author yjj
  13 + */
  14 +public class PopProductSearchInput {
  15 + /**
  16 + * 排序字段 :创建时间
  17 + */
  18 + public static final String ORDER_CREATETIME = "ctime";
  19 + /**
  20 + * 排序字段 :下架时间
  21 + */
  22 + public static final String ORDER_DROPSTIME = "drops_time";
  23 + /**
  24 + * 排序字段 :上架时间
  25 + */
  26 + public static final String ORDER_PUBLISETIME = "publish_time";
  27 + /**
  28 + * 排序规则:倒序
  29 + */
  30 + public static final String ORDERTYPE_DESC ="desc";
  31 + /**
  32 + * 排序规则:正序
  33 + */
  34 + public static final String ORDERTYPE_ASC ="asc";
  35 + /**
  36 + * 店铺ID(必填)
  37 + */
  38 + private Integer storeId;
  39 +
  40 + /**
  41 + * 商品类型(必填 0普通,1 拼购)
  42 + */
  43 + private Integer productType;
  44 +
  45 + private Integer productSample;
  46 + /**
  47 + * 商品状态(-2=预览 -1=删除 1=待审核(新建)2=审核失败 3=在售 >4 ;必填)
  48 + */
  49 + private Integer pstate;
  50 + /**
  51 + * 商品状态(-2=预览 -1=删除 1=待审核(新建)2=审核失败 3=在售 >4 ;必填)
  52 + */
  53 + private List<Integer> pstates;
  54 + /**
  55 + * 商品标题
  56 + */
  57 + private String title;
  58 + /**
  59 + * 类目名
  60 + */
  61 + private String cname;
  62 + /**
  63 + * 下架时间段的开始时间
  64 + */
  65 + private Date begin;
  66 + /**
  67 + * 下架时间段的结束时间
  68 + */
  69 + private Date end;
  70 + /**
  71 + * 创建时间段的开始时间
  72 + */
  73 + private Date createBegin;
  74 + /**
  75 + * 创建时间段的结束时间
  76 + */
  77 + private Date createEnd;
  78 + private String orderField;// 排序字段
  79 +
  80 + private String orderFieldType;// 排序字段类型
  81 + public Integer getStoreId() {
  82 + return storeId;
  83 + }
  84 + public void setStoreId(Integer storeId) {
  85 + this.storeId = storeId;
  86 + }
  87 + public Integer getPstate() {
  88 + return pstate;
  89 + }
  90 + public void setPstate(Integer pstate) {
  91 + this.pstate = pstate;
  92 + }
  93 + public String getTitle() {
  94 + return title;
  95 + }
  96 + public void setTitle(String title) {
  97 + this.title = title;
  98 + }
  99 + public String getCname() {
  100 + return cname;
  101 + }
  102 + public void setCname(String cname) {
  103 + this.cname = cname;
  104 + }
  105 + public Date getBegin() {
  106 + return begin;
  107 + }
  108 + public void setBegin(Date begin) {
  109 + this.begin = begin;
  110 + }
  111 + public Date getEnd() {
  112 + return end;
  113 + }
  114 + public void setEnd(Date end) {
  115 + this.end = end;
  116 + }
  117 +
  118 + public String getOrderField() {
  119 + return orderField;
  120 + }
  121 +
  122 + public void setOrderField(String orderField) {
  123 + this.orderField = orderField;
  124 + }
  125 +
  126 + public String getOrderFieldType() {
  127 + return orderFieldType;
  128 + }
  129 +
  130 + public void setOrderFieldType(String orderFieldType) {
  131 + this.orderFieldType = orderFieldType;
  132 + }
  133 +
  134 + public Date getCreateBegin() {
  135 + return createBegin;
  136 + }
  137 +
  138 + public void setCreateBegin(Date createBegin) {
  139 + this.createBegin = createBegin;
  140 + }
  141 +
  142 + public Date getCreateEnd() {
  143 + return createEnd;
  144 + }
  145 +
  146 + public void setCreateEnd(Date createEnd) {
  147 + this.createEnd = createEnd;
  148 + }
  149 +
  150 + public List<Integer> getPstates() {
  151 + return pstates;
  152 + }
  153 +
  154 + public void setPstates(List<Integer> pstates) {
  155 + this.pstates = pstates;
  156 + }
  157 +
  158 + public Integer getProductType() {
  159 + return productType;
  160 + }
  161 +
  162 + public void setProductType(Integer productType) {
  163 + this.productType = productType;
  164 + }
  165 +
  166 + public Integer getProductSample() {
  167 + return productSample;
  168 + }
  169 +
  170 + public void setProductSample(Integer productSample) {
  171 + this.productSample = productSample;
  172 + }
  173 +}