feat:外部接口接入
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.cool.store.request.bigdata;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/27 17:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ProfitDataRequest {
|
||||
|
||||
private String store_code;
|
||||
|
||||
private String bill_date;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 20:30
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class BerthOperationRequest {
|
||||
@ApiModelProperty(" 操作类型: 1(新增), 2(更新), 3(删除)")
|
||||
private String opType;
|
||||
@ApiModelProperty("机会点编号")
|
||||
private String code;
|
||||
@ApiModelProperty("关注人用户编号")
|
||||
private String userId;
|
||||
@ApiModelProperty("关注用户手机号")
|
||||
private String mobile;
|
||||
@ApiModelProperty("关注人用户名")
|
||||
private String userName;
|
||||
@ApiModelProperty("铺位ID")
|
||||
private Integer berthId;
|
||||
@ApiModelProperty("铺位名称")
|
||||
private String name;
|
||||
@ApiModelProperty("铺位地址")
|
||||
private String address;
|
||||
@ApiModelProperty("铺位经纬度")
|
||||
private String location;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 16:15
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class CityRequest {
|
||||
|
||||
|
||||
@ApiModelProperty("父ID")
|
||||
private Integer pid;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 18:50
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class FollowRequest {
|
||||
|
||||
private Integer opType;
|
||||
|
||||
private String code;
|
||||
|
||||
private String userId;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String userName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 20:05
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class InspectionRequest {
|
||||
private String code;
|
||||
|
||||
private String userId;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String userName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 18:47
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class OpportunityBaseRequest {
|
||||
|
||||
@NotNull(message = "notice不能为空")
|
||||
private Integer notice;
|
||||
|
||||
@NotNull(message = "timestamp不能为空")
|
||||
private Long timestamp;
|
||||
|
||||
@NotBlank(message = "key不能为空")
|
||||
private String key;
|
||||
|
||||
private String sign;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 17:23
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class OpportunityDetailRequest{
|
||||
|
||||
private String code;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:38
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class OpportunityListRequest{
|
||||
private String latLng;
|
||||
private String code;
|
||||
private Integer province;
|
||||
private Integer city;
|
||||
private Integer district;
|
||||
private String userId;
|
||||
private Integer orderType = 1;
|
||||
private Integer inspectionStatus ;
|
||||
private Integer pageNum = 1;
|
||||
private Integer pageSize = 20;
|
||||
|
||||
|
||||
public String getLatLng() {
|
||||
return latLng;
|
||||
}
|
||||
|
||||
public void setLatLng(String latLng) {
|
||||
this.latLng = latLng;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(Integer province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public Integer getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(Integer city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public Integer getDistrict() {
|
||||
return district;
|
||||
}
|
||||
|
||||
public void setDistrict(Integer district) {
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getOrderType() {
|
||||
return orderType;
|
||||
}
|
||||
|
||||
public void setOrderType(Integer orderType) {
|
||||
this.orderType = orderType;
|
||||
}
|
||||
|
||||
public Integer getInspectionStatus() {
|
||||
return inspectionStatus;
|
||||
}
|
||||
|
||||
public void setInspectionStatus(Integer inspectionStatus) {
|
||||
this.inspectionStatus = inspectionStatus;
|
||||
}
|
||||
|
||||
public Integer getPageNum() {
|
||||
return pageNum;
|
||||
}
|
||||
|
||||
public void setPageNum(Integer pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
}
|
||||
|
||||
public Integer getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 20:31
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
public class StoreOperationRequest {
|
||||
/**
|
||||
* 操作类型:1-新开门店,2-更新门店,3-闭店
|
||||
*/
|
||||
private String opType;
|
||||
|
||||
/**
|
||||
* 机会点编号
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 门店ID
|
||||
*/
|
||||
private Integer storeId;
|
||||
|
||||
/**
|
||||
* 门店编号
|
||||
*/
|
||||
private String storeSn;
|
||||
|
||||
/**
|
||||
* 门店模式:1-加盟,2-强管
|
||||
*/
|
||||
private Integer storeModel;
|
||||
|
||||
/**
|
||||
* 门店品牌(默认值:正新鸡排)
|
||||
*/
|
||||
private String storeBrand = "正新鸡排";
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 门店地址
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 门店经纬度geohash
|
||||
*/
|
||||
private String location;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.cool.store.request.oppty;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 18:53
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class UserRequest {
|
||||
|
||||
private String userId;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String userName;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.cool.store.response.bigdata;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 13:42
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ActDataResponse {
|
||||
|
||||
private String act_total_amt;
|
||||
|
||||
private String Store_code;
|
||||
|
||||
private String act_amt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.cool.store.response.bigdata;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 10:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ApiResponse<T> {
|
||||
private String msg;
|
||||
private int code;
|
||||
private T data;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.cool.store.response.bigdata;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/27 17:46
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ProfitDataResponse {
|
||||
private String store_code;
|
||||
private Double profit_total_amt;
|
||||
private Double profit_amt;
|
||||
private Double profit_rate;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.cool.store.response.bigdata;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 13:25
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ProfitRateResponse {
|
||||
private String profit_amt ;
|
||||
private String store_code ;
|
||||
private String profit_rate;
|
||||
private String bill_date;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:33
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class BerthInfoResponse {
|
||||
/**
|
||||
* 铺位ID
|
||||
*/
|
||||
private Integer berthId;
|
||||
/**
|
||||
* 铺位名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 铺位地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 铺位经纬度
|
||||
*/
|
||||
private String geohash;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:29
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class BrandResponse {
|
||||
/**
|
||||
* 品牌编号
|
||||
*/
|
||||
private String brandCode;
|
||||
/**
|
||||
* 品牌名称
|
||||
*/
|
||||
private String brandName;
|
||||
/**
|
||||
* 品牌Logo base64编码
|
||||
*/
|
||||
private String brandLogo;
|
||||
/**
|
||||
* 该品牌门店所在位置
|
||||
*/
|
||||
private String geohash;
|
||||
/**
|
||||
* 品牌数量
|
||||
*/
|
||||
private Integer count;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 16:16
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CityResponse {
|
||||
|
||||
private Integer code;
|
||||
private Integer name;
|
||||
private Integer pid;
|
||||
private String location;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 10:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class OpportunityApiResponse<T> {
|
||||
private String msg;
|
||||
private int code;
|
||||
private Boolean success;
|
||||
private T data;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
import org.apache.catalina.User;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 17:24
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class OpportunityDetailResponse {
|
||||
|
||||
private String code; // 机会点编号
|
||||
private Integer level; // 等级
|
||||
private String name; // 名称
|
||||
private String address; // 地址
|
||||
private String geohash; // GeoHash
|
||||
private Integer province; // 省份编码
|
||||
private Integer city; // 城市编码
|
||||
private Integer district; // 区县编码
|
||||
private UserResponse bdUser; // 拓展人信息
|
||||
private List<UserResponse> atUsers; // 关注人列表
|
||||
private List<BrandResponse> brandStats; // 周边品牌
|
||||
private StoreInfoResponse storeInfo; // 门店信息
|
||||
private List<BerthInfoResponse> berthInfo;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 18:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class OpportunityInfoPageResponse {
|
||||
|
||||
|
||||
private PageResponse page;
|
||||
|
||||
private List<OpportunityInfoResponse> pageData;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class OpportunityInfoResponse {
|
||||
private String code;
|
||||
private Integer level;
|
||||
private String name;
|
||||
private String address;
|
||||
private String geohash;
|
||||
private Integer province;
|
||||
private Integer city;
|
||||
private Integer district;
|
||||
private Integer berthNum;
|
||||
private List<UserResponse> atUser;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:27
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class PageResponse {
|
||||
|
||||
private Integer currentPage;
|
||||
private Integer pageSize;
|
||||
private Integer total;
|
||||
private Integer count;
|
||||
private Boolean first;
|
||||
private Boolean last;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:31
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class StoreInfoResponse {
|
||||
/**
|
||||
* 门店ID
|
||||
*/
|
||||
private Integer storeId;
|
||||
/**
|
||||
* 门店编号
|
||||
*/
|
||||
private String storeSn;
|
||||
/**
|
||||
* 门店模式:1:加盟 2:强管
|
||||
*/
|
||||
private Integer storeModel;
|
||||
/**
|
||||
* 门店品牌 预留,不传默认正新鸡排
|
||||
*/
|
||||
private String storeBrand;
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
/**
|
||||
* 门店地址
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* 门店经纬度
|
||||
*/
|
||||
private String geohash;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.cool.store.response.oppty;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/3/26 14:28
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class UserResponse {
|
||||
private String userId;
|
||||
private String mobile;
|
||||
private String userName;
|
||||
private String atTime;
|
||||
|
||||
private String inspectionStatus;
|
||||
|
||||
private String inspectionTime;
|
||||
}
|
||||
Reference in New Issue
Block a user