dev-v2 #3
|
@ -1,13 +0,0 @@
|
||||||
package com.atguigu;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Hello world!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class App
|
|
||||||
{
|
|
||||||
public static void main( String[] args )
|
|
||||||
{
|
|
||||||
System.out.println( "Hello World!" );
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.atguigu.spzx.model.dto.h5;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.order.OrderItem;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class OrderInfoDto {
|
||||||
|
|
||||||
|
//送货地址id
|
||||||
|
private Long userAddressId;
|
||||||
|
|
||||||
|
//运费
|
||||||
|
private BigDecimal feightFee;
|
||||||
|
|
||||||
|
//备注
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
//订单明细
|
||||||
|
private List<OrderItem> orderItemList;
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.atguigu.spzx.model.dto.h5;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "商品列表搜索条件实体类")
|
||||||
|
public class ProductSkuDto {
|
||||||
|
|
||||||
|
@Schema(description = "关键字")
|
||||||
|
private String keyword;
|
||||||
|
|
||||||
|
@Schema(description = "品牌id")
|
||||||
|
private Long brandId;
|
||||||
|
|
||||||
|
@Schema(description = "一级分类id")
|
||||||
|
private Long category1Id;
|
||||||
|
|
||||||
|
@Schema(description = "二级分类id")
|
||||||
|
private Long category2Id;
|
||||||
|
|
||||||
|
@Schema(description = "三级分类id")
|
||||||
|
private Long category3Id;
|
||||||
|
|
||||||
|
@Schema(description = "排序(综合排序:1 价格升序:2 价格降序:3)")
|
||||||
|
private Integer order = 1;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.atguigu.spzx.model.dto.h5;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户登录请求参数")
|
||||||
|
public class UserLoginDto {
|
||||||
|
|
||||||
|
@Schema(description = "用户名")
|
||||||
|
private String username ;
|
||||||
|
|
||||||
|
@Schema(description = "密码")
|
||||||
|
private String password ;
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.atguigu.spzx.model.dto.h5;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description="注册对象")
|
||||||
|
public class UserRegisterDto {
|
||||||
|
|
||||||
|
@Schema(description = "用户名")
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
@Schema(description = "密码")
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
|
private String nickName;
|
||||||
|
|
||||||
|
@Schema(description = "手机验证码")
|
||||||
|
private String code ;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.dto.order;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "搜索条件实体类")
|
||||||
|
public class OrderStatisticsDto {
|
||||||
|
|
||||||
|
@Schema(description = "开始时间")
|
||||||
|
private String createTimeBegin;
|
||||||
|
|
||||||
|
@Schema(description = "结束时间")
|
||||||
|
private String createTimeEnd;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.dto.product;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "搜索条件实体类")
|
||||||
|
public class CategoryBrandDto {
|
||||||
|
|
||||||
|
@Schema(description = "品牌id")
|
||||||
|
private Long brandId;
|
||||||
|
|
||||||
|
@Schema(description = "分类id")
|
||||||
|
private Long categoryId;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.atguigu.spzx.model.dto.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "商品搜索条件实体类")
|
||||||
|
public class ProductDto extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "品牌id")
|
||||||
|
private Long brandId;
|
||||||
|
|
||||||
|
@Schema(description = "一级分类id")
|
||||||
|
private Long category1Id;
|
||||||
|
|
||||||
|
@Schema(description = "二级分类id")
|
||||||
|
private Long category2Id;
|
||||||
|
|
||||||
|
@Schema(description = "三级分类id")
|
||||||
|
private Long category3Id;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.atguigu.spzx.model.dto.product;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SkuSaleDto {
|
||||||
|
|
||||||
|
private Long skuId;
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "请求参数实体类")
|
||||||
|
public class AssginMenuDto {
|
||||||
|
|
||||||
|
@Schema(description = "角色id")
|
||||||
|
private Long roleId; // 角色id
|
||||||
|
|
||||||
|
@Schema(description = "选中的菜单id的集合")
|
||||||
|
private List<Map<String , Number>> menuIdList; // 选中的菜单id的集合; Map的键表示菜单的id,值表示是否为半开; 0否,1是
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "请求参数实体类")
|
||||||
|
public class AssginRoleDto {
|
||||||
|
|
||||||
|
@Schema(description = "用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "角色id的List集合")
|
||||||
|
private List<Long> roleIdList;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户登录请求参数")
|
||||||
|
public class LoginDto {
|
||||||
|
|
||||||
|
@Schema(description = "用户名")
|
||||||
|
private String userName ;
|
||||||
|
|
||||||
|
@Schema(description = "密码")
|
||||||
|
private String password ;
|
||||||
|
|
||||||
|
@Schema(description = "提交验证码")
|
||||||
|
private String captcha ;
|
||||||
|
|
||||||
|
@Schema(description = "验证码key")
|
||||||
|
private String codeKey ;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "请求参数实体类")
|
||||||
|
public class SysOperLogDto {
|
||||||
|
|
||||||
|
@Schema(description = "模块名称")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@Schema(description = "操作用户名")
|
||||||
|
private String operName;
|
||||||
|
|
||||||
|
@Schema(description = "开始时间")
|
||||||
|
private String createTimeBegin;
|
||||||
|
|
||||||
|
@Schema(description = "结束时间")
|
||||||
|
private String createTimeEnd;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "请求参数实体类")
|
||||||
|
public class SysRoleDto {
|
||||||
|
|
||||||
|
@Schema(description = "角色名称")
|
||||||
|
private String roleName ;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.atguigu.spzx.model.dto.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "请求参数实体类")
|
||||||
|
public class SysUserDto {
|
||||||
|
|
||||||
|
@Schema(description = "搜索关键字")
|
||||||
|
private String keyword ;
|
||||||
|
|
||||||
|
@Schema(description = "开始时间")
|
||||||
|
private String createTimeBegin ;
|
||||||
|
|
||||||
|
@Schema(description = "结束时间")
|
||||||
|
private String createTimeEnd;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.atguigu.spzx.model.entity.base;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class BaseEntity implements Serializable {
|
||||||
|
|
||||||
|
@Schema(description = "唯一标识")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Schema(description = "修改时间")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@Schema(description = "是否删除")
|
||||||
|
private Integer isDeleted;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.atguigu.spzx.model.entity.base;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "产品单元实体类")
|
||||||
|
public class ProductUnit extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.atguigu.spzx.model.entity.base;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "区域实体类")
|
||||||
|
public class Region extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "区域编码")
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
@Schema(description = "父区域编码")
|
||||||
|
private Long parentCode;
|
||||||
|
|
||||||
|
@Schema(description = "父区名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "地区级别:1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县")
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.atguigu.spzx.model.entity.h5;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "购物车实体类")
|
||||||
|
public class CartInfo extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "skuid")
|
||||||
|
private Long skuId;
|
||||||
|
|
||||||
|
@Schema(description = "放入购物车时价格")
|
||||||
|
private BigDecimal cartPrice;
|
||||||
|
|
||||||
|
@Schema(description = "数量")
|
||||||
|
private Integer skuNum;
|
||||||
|
|
||||||
|
@Schema(description = "图片文件")
|
||||||
|
private String imgUrl;
|
||||||
|
|
||||||
|
@Schema(description = "sku名称 (冗余)")
|
||||||
|
private String skuName;
|
||||||
|
|
||||||
|
@Schema(description = "isChecked")
|
||||||
|
private Integer isChecked;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,89 @@
|
||||||
|
package com.atguigu.spzx.model.entity.order;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "OrderInfo")
|
||||||
|
public class OrderInfo extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "会员_id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
|
private String nickName;
|
||||||
|
|
||||||
|
@Schema(description = "订单号")
|
||||||
|
private String orderNo;
|
||||||
|
|
||||||
|
@Schema(description = "使用的优惠券")
|
||||||
|
private Long couponId;
|
||||||
|
|
||||||
|
@Schema(description = "订单总额")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
|
||||||
|
@Schema(description = "优惠券")
|
||||||
|
private BigDecimal couponAmount;
|
||||||
|
|
||||||
|
@Schema(description = "原价金额")
|
||||||
|
private BigDecimal originalTotalAmount;
|
||||||
|
|
||||||
|
@Schema(description = "运费")
|
||||||
|
private BigDecimal feightFee;
|
||||||
|
|
||||||
|
@Schema(description = "支付方式【1->微信】")
|
||||||
|
private Integer payType;
|
||||||
|
|
||||||
|
@Schema(description = "订单状态【0->待付款;1->待发货;2->已发货;3->待用户收货,已完成;-1->已取消】")
|
||||||
|
private Integer orderStatus;
|
||||||
|
|
||||||
|
@Schema(description = "收货人姓名")
|
||||||
|
private String receiverName;
|
||||||
|
|
||||||
|
@Schema(description = "收货人电话")
|
||||||
|
private String receiverPhone;
|
||||||
|
|
||||||
|
@Schema(description = "收货人地址标签")
|
||||||
|
private String receiverTagName;
|
||||||
|
|
||||||
|
@Schema(description = "省份/直辖市")
|
||||||
|
private String receiverProvince;
|
||||||
|
|
||||||
|
@Schema(description = "城市")
|
||||||
|
private String receiverCity;
|
||||||
|
|
||||||
|
@Schema(description = "区")
|
||||||
|
private String receiverDistrict;
|
||||||
|
|
||||||
|
@Schema(description = "详细地址")
|
||||||
|
private String receiverAddress;
|
||||||
|
|
||||||
|
@Schema(description = "支付时间")
|
||||||
|
private Date paymentTime;
|
||||||
|
|
||||||
|
@Schema(description = "发货时间")
|
||||||
|
private Date deliveryTime;
|
||||||
|
|
||||||
|
@Schema(description = "确认收货时间")
|
||||||
|
private Date receiveTime;
|
||||||
|
|
||||||
|
@Schema(description = "订单备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "取消订单时间")
|
||||||
|
private Date cancelTime;
|
||||||
|
|
||||||
|
@Schema(description = "取消订单原因")
|
||||||
|
private String cancelReason;
|
||||||
|
|
||||||
|
@Schema(description = "订单项列表")
|
||||||
|
private List<OrderItem> orderItemList;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.atguigu.spzx.model.entity.order;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "订单项实体类")
|
||||||
|
public class OrderItem extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "订单id")
|
||||||
|
private Long orderId;
|
||||||
|
|
||||||
|
@Schema(description = "商品sku编号")
|
||||||
|
private Long skuId;
|
||||||
|
|
||||||
|
@Schema(description = "商品sku名字")
|
||||||
|
private String skuName;
|
||||||
|
|
||||||
|
@Schema(description = "商品sku图片")
|
||||||
|
private String thumbImg;
|
||||||
|
|
||||||
|
@Schema(description = "商品sku价格")
|
||||||
|
private BigDecimal skuPrice;
|
||||||
|
|
||||||
|
@Schema(description = "商品购买的数量")
|
||||||
|
private Integer skuNum;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.atguigu.spzx.model.entity.order;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "订单日志实体对象")
|
||||||
|
public class OrderLog extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "订单id")
|
||||||
|
private Long orderId;
|
||||||
|
|
||||||
|
@Schema(description = "操作人:用户;系统;后台管理员")
|
||||||
|
private String operateUser;
|
||||||
|
|
||||||
|
@Schema(description = "订单状态")
|
||||||
|
private Integer processStatus;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String note;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.entity.order;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class OrderStatistics extends BaseEntity {
|
||||||
|
|
||||||
|
private Date orderDate;
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
private Integer totalNum;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.atguigu.spzx.model.entity.pay;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "支付信息实体类")
|
||||||
|
public class PaymentInfo extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "订单号")
|
||||||
|
private String orderNo;
|
||||||
|
|
||||||
|
@Schema(description = "付款方式:1-微信 2-支付宝")
|
||||||
|
private Integer payType;
|
||||||
|
|
||||||
|
@Schema(description = "交易编号(微信或支付)")
|
||||||
|
private String outTradeNo;
|
||||||
|
|
||||||
|
@Schema(description = "支付金额")
|
||||||
|
private BigDecimal amount;
|
||||||
|
|
||||||
|
@Schema(description = "交易内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
@Schema(description = "支付状态:0-未支付 1-已支付")
|
||||||
|
private Integer paymentStatus;
|
||||||
|
|
||||||
|
@Schema(description = "回调时间")
|
||||||
|
private Date callbackTime;
|
||||||
|
|
||||||
|
@Schema(description = "回调信息")
|
||||||
|
private String callbackContent;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "品牌实体类")
|
||||||
|
public class Brand extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "品牌名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "品牌logo")
|
||||||
|
private String logo;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "分类实体类")
|
||||||
|
public class Category extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "分类名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "分类图片url")
|
||||||
|
private String imageUrl;
|
||||||
|
|
||||||
|
@Schema(description = "父节点id")
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
@Schema(description = "分类状态: 是否显示[0-不显示,1显示]")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "排序字段")
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
@Schema(description = "是否存在子节点")
|
||||||
|
private Boolean hasChildren;
|
||||||
|
|
||||||
|
@Schema(description = "子节点List集合")
|
||||||
|
private List<Category> children;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "分类品牌实体类")
|
||||||
|
public class CategoryBrand extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "品牌id")
|
||||||
|
private Long brandId;
|
||||||
|
|
||||||
|
@Schema(description = "分类id")
|
||||||
|
private Long categoryId;
|
||||||
|
|
||||||
|
@Schema(description = "分类名称" , required = false)
|
||||||
|
private String categoryName;
|
||||||
|
|
||||||
|
@Schema(description = "品牌名称" , required = false)
|
||||||
|
private String brandName;
|
||||||
|
|
||||||
|
@Schema(description = "品牌logo" , required = false)
|
||||||
|
private String logo;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,65 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "商品实体类")
|
||||||
|
public class Product extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "商品名称")
|
||||||
|
private String name; // 商品名称
|
||||||
|
|
||||||
|
@Schema(description = "品牌id")
|
||||||
|
private Long brandId; // 品牌ID
|
||||||
|
|
||||||
|
@Schema(description = "一级分类id")
|
||||||
|
private Long category1Id; // 一级分类id
|
||||||
|
|
||||||
|
@Schema(description = "二级分类id")
|
||||||
|
private Long category2Id; // 二级分类id
|
||||||
|
|
||||||
|
@Schema(description = "三级分类id")
|
||||||
|
private Long category3Id; // 三级分类id
|
||||||
|
|
||||||
|
@Schema(description = "计量单位")
|
||||||
|
private String unitName; // 计量单位
|
||||||
|
|
||||||
|
@Schema(description = "轮播图url")
|
||||||
|
private String sliderUrls; // 轮播图
|
||||||
|
|
||||||
|
@Schema(description = "商品规格值json串")
|
||||||
|
private String specValue; // 商品规格值json串
|
||||||
|
|
||||||
|
@Schema(description = "线上状态:0-初始值,1-上架,-1-自主下架")
|
||||||
|
private Integer status; // 线上状态:0-初始值,1-上架,-1-自主下架
|
||||||
|
|
||||||
|
@Schema(description = "审核状态")
|
||||||
|
private Integer auditStatus; // 审核状态
|
||||||
|
|
||||||
|
@Schema(description = "审核信息")
|
||||||
|
private String auditMessage; // 审核信息
|
||||||
|
|
||||||
|
// 扩展的属性,用来封装响应的数据
|
||||||
|
@Schema(description = "品牌名称")
|
||||||
|
private String brandName; // 品牌
|
||||||
|
|
||||||
|
@Schema(description = "一级分类名称")
|
||||||
|
private String category1Name; // 一级分类
|
||||||
|
|
||||||
|
@Schema(description = "二级分类名称")
|
||||||
|
private String category2Name; // 二级分类
|
||||||
|
|
||||||
|
@Schema(description = "三级分类名称")
|
||||||
|
private String category3Name; // 三级分类
|
||||||
|
|
||||||
|
@Schema(description = "sku列表集合")
|
||||||
|
private List<ProductSku> productSkuList; // sku列表集合
|
||||||
|
|
||||||
|
@Schema(description = "图片详情列表")
|
||||||
|
private String detailsImageUrls; // 图片详情列表
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ProductDetails extends BaseEntity {
|
||||||
|
|
||||||
|
private Long productId;
|
||||||
|
private String imageUrls;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,53 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "ProductSku")
|
||||||
|
public class ProductSku extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "商品编号")
|
||||||
|
private String skuCode;
|
||||||
|
|
||||||
|
@Schema(description = "skuName")
|
||||||
|
private String skuName;
|
||||||
|
|
||||||
|
@Schema(description = "商品ID")
|
||||||
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "缩略图路径")
|
||||||
|
private String thumbImg;
|
||||||
|
|
||||||
|
@Schema(description = "售价")
|
||||||
|
private BigDecimal salePrice;
|
||||||
|
|
||||||
|
@Schema(description = "市场价")
|
||||||
|
private BigDecimal marketPrice;
|
||||||
|
|
||||||
|
@Schema(description = "成本价")
|
||||||
|
private BigDecimal costPrice;
|
||||||
|
|
||||||
|
@Schema(description = "库存数")
|
||||||
|
private Integer stockNum;
|
||||||
|
|
||||||
|
@Schema(description = "销量")
|
||||||
|
private Integer saleNum;
|
||||||
|
|
||||||
|
@Schema(description = "sku规格信息json")
|
||||||
|
private String skuSpec;
|
||||||
|
|
||||||
|
@Schema(description = "重量")
|
||||||
|
private String weight;
|
||||||
|
|
||||||
|
@Schema(description = "体积")
|
||||||
|
private String volume;
|
||||||
|
|
||||||
|
@Schema(description = "线上状态:0-初始值,1-上架,-1-自主下架")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.atguigu.spzx.model.entity.product;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "商品规格实体类")
|
||||||
|
public class ProductSpec extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "规格名称")
|
||||||
|
private String specName; // 规格名称
|
||||||
|
|
||||||
|
@Schema(description = "规格值")
|
||||||
|
private String specValue; // 规格值
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.atguigu.spzx.model.entity.system;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "系统菜单实体类")
|
||||||
|
@Data
|
||||||
|
public class SysMenu extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "父节点id")
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
@Schema(description = "节点标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@Schema(description = "组件名称")
|
||||||
|
private String component;
|
||||||
|
|
||||||
|
@Schema(description = "排序值")
|
||||||
|
private Integer sortValue;
|
||||||
|
|
||||||
|
@Schema(description = "状态(0:禁止,1:正常)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
// 下级列表
|
||||||
|
@Schema(description = "子节点")
|
||||||
|
private List<SysMenu> children;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,48 @@
|
||||||
|
package com.atguigu.spzx.model.entity.system;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "SysOperLog")
|
||||||
|
public class SysOperLog extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "模块标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@Schema(description = "方法名称")
|
||||||
|
private String method;
|
||||||
|
|
||||||
|
@Schema(description = "请求方式")
|
||||||
|
private String requestMethod;
|
||||||
|
|
||||||
|
private Integer businessType ; // 业务类型(0其它 1新增 2修改 3删除)
|
||||||
|
|
||||||
|
@Schema(description = "操作类别(0其它 1后台用户 2手机端用户)")
|
||||||
|
private String operatorType;
|
||||||
|
|
||||||
|
@Schema(description = "操作人员")
|
||||||
|
private String operName;
|
||||||
|
|
||||||
|
@Schema(description = "请求URL")
|
||||||
|
private String operUrl;
|
||||||
|
|
||||||
|
@Schema(description = "主机地址")
|
||||||
|
private String operIp;
|
||||||
|
|
||||||
|
@Schema(description = "请求参数")
|
||||||
|
private String operParam;
|
||||||
|
|
||||||
|
@Schema(description = "返回参数")
|
||||||
|
private String jsonResult;
|
||||||
|
|
||||||
|
@Schema(description = "操作状态(0正常 1异常)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "错误消息")
|
||||||
|
private String errorMsg;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.atguigu.spzx.model.entity.system;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "角色实体类")
|
||||||
|
public class SysRole extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "角色名称")
|
||||||
|
private String roleName;
|
||||||
|
|
||||||
|
@Schema(description = "角色编码")
|
||||||
|
private String roleCode;
|
||||||
|
|
||||||
|
@Schema(description = "描述")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.atguigu.spzx.model.entity.system;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SysRoleUser extends BaseEntity {
|
||||||
|
|
||||||
|
private Long roleId; // 角色id
|
||||||
|
private Long userId; // 用户id
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.atguigu.spzx.model.entity.system;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "系统用户实体类")
|
||||||
|
public class SysUser extends BaseEntity {
|
||||||
|
|
||||||
|
@Schema(description = "用户名")
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
@Schema(description = "密码")
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "手机号码")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "图像")
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
|
@Schema(description = "描述")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@Schema(description = "状态(1:正常 0:停用)")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.atguigu.spzx.model.entity.user;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户地址实体类")
|
||||||
|
public class UserAddress extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "用户ID")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "name")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "标签名称")
|
||||||
|
private String tagName;
|
||||||
|
|
||||||
|
@Schema(description = "provinceCode")
|
||||||
|
private String provinceCode;
|
||||||
|
|
||||||
|
@Schema(description = "cityCode")
|
||||||
|
private String cityCode;
|
||||||
|
|
||||||
|
@Schema(description = "districtCode")
|
||||||
|
private String districtCode;
|
||||||
|
|
||||||
|
@Schema(description = "详细地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@Schema(description = "完整地址")
|
||||||
|
private String fullAddress;
|
||||||
|
|
||||||
|
@Schema(description = "是否默认地址(0:否 1:是)")
|
||||||
|
private Integer isDefault;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.atguigu.spzx.model.entity.user;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.base.BaseEntity;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户实体类")
|
||||||
|
public class UserInfo extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "用户名")
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
@Schema(description = "密码")
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
|
private String nickName;
|
||||||
|
|
||||||
|
@Schema(description = "头像")
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
|
@Schema(description = "性别")
|
||||||
|
private Integer sex;
|
||||||
|
|
||||||
|
@Schema(description = "电话号码")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String memo;
|
||||||
|
|
||||||
|
@Schema(description = "微信open id")
|
||||||
|
private String openId;
|
||||||
|
|
||||||
|
@Schema(description = "微信开放平台unionID")
|
||||||
|
private String unionId;
|
||||||
|
|
||||||
|
@Schema(description = "最后一次登录ip")
|
||||||
|
private String lastLoginIp;
|
||||||
|
|
||||||
|
@Schema(description = "最后一次登录时间")
|
||||||
|
private Date lastLoginTime;
|
||||||
|
|
||||||
|
@Schema(description = "状态:1为正常,0为禁止")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.atguigu.spzx.model.vo.common;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "响应结果实体类")
|
||||||
|
public class Result<T> {
|
||||||
|
|
||||||
|
//返回码
|
||||||
|
@Schema(description = "业务状态码")
|
||||||
|
private Integer code;
|
||||||
|
|
||||||
|
//返回消息
|
||||||
|
@Schema(description = "响应消息")
|
||||||
|
private String message;
|
||||||
|
|
||||||
|
//返回数据
|
||||||
|
@Schema(description = "业务数据")
|
||||||
|
private T data;
|
||||||
|
|
||||||
|
// 私有化构造
|
||||||
|
private Result() {}
|
||||||
|
|
||||||
|
// 返回数据
|
||||||
|
public static <T> Result<T> build(T body, Integer code, String message) {
|
||||||
|
Result<T> result = new Result<>();
|
||||||
|
result.setData(body);
|
||||||
|
result.setCode(code);
|
||||||
|
result.setMessage(message);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 通过枚举构造Result对象
|
||||||
|
public static <T> Result build(T body , ResultCodeEnum resultCodeEnum) {
|
||||||
|
return build(body , resultCodeEnum.getCode() , resultCodeEnum.getMessage()) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.atguigu.spzx.model.vo.common;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
@Getter // 提供获取属性值的getter方法
|
||||||
|
public enum ResultCodeEnum {
|
||||||
|
|
||||||
|
SUCCESS(200 , "操作成功") ,
|
||||||
|
LOGIN_ERROR(201 , "用户名或者密码错误"),
|
||||||
|
VALIDATECODE_ERROR(202 , "验证码错误") ,
|
||||||
|
LOGIN_AUTH(208 , "用户未登录"),
|
||||||
|
USER_NAME_IS_EXISTS(209 , "用户名已经存在"),
|
||||||
|
SYSTEM_ERROR(9999 , "您的网络有问题请稍后重试"),
|
||||||
|
NODE_ERROR( 217, "该节点下有子节点,不可以删除"),
|
||||||
|
DATA_ERROR(204, "数据异常"),
|
||||||
|
ACCOUNT_STOP( 216, "账号已停用"),
|
||||||
|
|
||||||
|
STOCK_LESS( 219, "库存不足"),
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
private Integer code ; // 业务状态码
|
||||||
|
private String message ; // 响应消息
|
||||||
|
|
||||||
|
private ResultCodeEnum(Integer code , String message) {
|
||||||
|
this.code = code ;
|
||||||
|
this.message = message ;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.atguigu.spzx.model.vo.h5;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.product.Category;
|
||||||
|
import com.atguigu.spzx.model.entity.product.ProductSku;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class IndexVo {
|
||||||
|
|
||||||
|
private List<Category> categoryList ; // 一级分类的类别数据
|
||||||
|
private List<ProductSku> productSkuList ; // 畅销商品列表数据
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.atguigu.spzx.model.vo.h5;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.atguigu.spzx.model.entity.product.Product;
|
||||||
|
import com.atguigu.spzx.model.entity.product.ProductSku;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "商品详情对象")
|
||||||
|
public class ProductItemVo {
|
||||||
|
|
||||||
|
@Schema(description = "商品sku信息")
|
||||||
|
private ProductSku productSku;
|
||||||
|
|
||||||
|
@Schema(description = "商品信息")
|
||||||
|
private Product product;
|
||||||
|
|
||||||
|
@Schema(description = "商品轮播图列表")
|
||||||
|
private List<String> sliderUrlList;
|
||||||
|
|
||||||
|
@Schema(description = "商品详情图片列表")
|
||||||
|
private List<String> detailsImageUrlList;
|
||||||
|
|
||||||
|
@Schema(description = "商品规格信息")
|
||||||
|
private JSONArray specValueList;
|
||||||
|
|
||||||
|
@Schema(description = "商品规格对应商品skuId信息")
|
||||||
|
private Map<String,Object> skuSpecValueMap;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.atguigu.spzx.model.vo.h5;
|
||||||
|
|
||||||
|
import com.atguigu.spzx.model.entity.order.OrderItem;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "结算实体类")
|
||||||
|
public class TradeVo {
|
||||||
|
|
||||||
|
@Schema(description = "结算总金额")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
|
||||||
|
@Schema(description = "结算商品列表")
|
||||||
|
private List<OrderItem> orderItemList;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.vo.h5;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户类")
|
||||||
|
public class UserInfoVo {
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
|
private String nickName;
|
||||||
|
|
||||||
|
@Schema(description = "头像")
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.atguigu.spzx.model.vo.order;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "统计结果实体类")
|
||||||
|
public class OrderStatisticsVo {
|
||||||
|
|
||||||
|
@Schema(description = "日期数据集合")
|
||||||
|
private List<String> dateList ;
|
||||||
|
|
||||||
|
@Schema(description = "总金额数据集合")
|
||||||
|
private List<BigDecimal> amountList ;
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.atguigu.spzx.model.vo.product;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class CategoryExcelVo {
|
||||||
|
|
||||||
|
@ExcelProperty(value = "id" ,index = 0)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ExcelProperty(value = "名称" ,index = 1)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ExcelProperty(value = "图片url" ,index = 2)
|
||||||
|
private String imageUrl ;
|
||||||
|
|
||||||
|
@ExcelProperty(value = "上级id" ,index = 3)
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
@ExcelProperty(value = "状态" ,index = 4)
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ExcelProperty(value = "排序" ,index = 5)
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.vo.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "登录成功响应结果实体类")
|
||||||
|
public class LoginVo {
|
||||||
|
|
||||||
|
@Schema(description = "令牌")
|
||||||
|
private String token ;
|
||||||
|
|
||||||
|
@Schema(description = "刷新令牌,可以为空")
|
||||||
|
private String refresh_token ;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.atguigu.spzx.model.vo.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "系统菜单响应结果实体类")
|
||||||
|
public class SysMenuVo {
|
||||||
|
|
||||||
|
@Schema(description = "系统菜单标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@Schema(description = "系统菜单名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "系统菜单子菜单列表")
|
||||||
|
private List<SysMenuVo> children;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.atguigu.spzx.model.vo.system;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "验证码响应结果实体类")
|
||||||
|
public class ValidateCodeVo {
|
||||||
|
|
||||||
|
@Schema(description = "验证码key")
|
||||||
|
private String codeKey ; // 验证码的key
|
||||||
|
|
||||||
|
@Schema(description = "验证码value")
|
||||||
|
private String codeValue ; // 图片验证码对应的字符串数据
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue