商品管理初始化

dev
DongZeLiang 2024-02-27 11:54:18 +08:00
parent b156eedfa2
commit b94816191f
116 changed files with 5481 additions and 39 deletions

View File

@ -1,5 +1,6 @@
package com.muyu.common.core.web.domain; package com.muyu.common.core.web.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -25,6 +26,7 @@ public class TreeEntity extends BaseEntity {
/** /**
* *
*/ */
@TableField(exist = false)
private String parentName; private String parentName;
/** /**
@ -35,55 +37,19 @@ public class TreeEntity extends BaseEntity {
/** /**
* *
*/ */
@TableField(exist = false)
private Integer orderNum; private Integer orderNum;
/** /**
* *
*/ */
@TableField(exist = false)
private String ancestors; private String ancestors;
/** /**
* *
*/ */
@TableField(exist = false)
private List<?> children = new ArrayList<>(); private List<?> children = new ArrayList<>();
public String getParentName () {
return parentName;
}
public void setParentName (String parentName) {
this.parentName = parentName;
}
public Long getParentId () {
return parentId;
}
public void setParentId (Long parentId) {
this.parentId = parentId;
}
public Integer getOrderNum () {
return orderNum;
}
public void setOrderNum (Integer orderNum) {
this.orderNum = orderNum;
}
public String getAncestors () {
return ancestors;
}
public void setAncestors (String ancestors) {
this.ancestors = ancestors;
}
public List<?> getChildren () {
return children;
}
public void setChildren (List<?> children) {
this.children = children;
}
} }

View File

@ -0,0 +1,47 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_brand_project
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("as_brand_project")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AsBrandProject", description = "品牌商品中间")
public class AsBrandProject extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品牌id */
@Excel(name = "品牌id")
@ApiModelProperty(name = "品牌id", value = "品牌id", required = true)
private Long brandId;
/** 商品id */
@Excel(name = "商品id")
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private String projectId;
}

View File

@ -0,0 +1,48 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_attribute
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("as_category_attribute")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AsCategoryAttribute", description = "品类属性中间")
public class AsCategoryAttribute extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品类id */
@Excel(name = "品类id")
@ApiModelProperty(name = "品类id", value = "品类id", required = true)
private Long categoryId;
/** 属性id */
@Excel(name = "属性id")
@ApiModelProperty(name = "属性id", value = "属性id", required = true)
private Long attributeId;
}

View File

@ -0,0 +1,48 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_attribute_group
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("as_category_attribute_group")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AsCategoryAttributeGroup", description = "品类属性组中间")
public class AsCategoryAttributeGroup extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品类id */
@Excel(name = "品类id")
@ApiModelProperty(name = "品类id", value = "品类id", required = true)
private Long categoryId;
/** 属性组 */
@Excel(name = "属性组")
@ApiModelProperty(name = "属性组", value = "属性组", required = true)
private Long attributeGroupId;
}

View File

@ -0,0 +1,47 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_brand
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("as_category_brand")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AsCategoryBrand", description = "品类品牌中间")
public class AsCategoryBrand extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品类id */
@Excel(name = "品类id")
@ApiModelProperty(name = "品类id", value = "品类id", required = true)
private Long categoryId;
/** 品牌id */
@Excel(name = "品牌id")
@ApiModelProperty(name = "品牌id", value = "品牌id", required = true)
private Long brandId;
}

View File

@ -0,0 +1,65 @@
package com.muyu.product.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_product_attribute_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("as_product_attribute_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AsProductAttributeInfo", description = "商品属性")
public class AsProductAttributeInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性编号 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "属性编号", value = "属性编号")
private Long id;
/** 商品 */
@Excel(name = "商品")
@ApiModelProperty(name = "商品", value = "商品", required = true)
private Long productId;
/** 属性 */
@Excel(name = "属性")
@ApiModelProperty(name = "属性", value = "属性", required = true)
private Long attributeId;
/** 属性值 */
@Excel(name = "属性值")
@ApiModelProperty(name = "属性值", value = "属性值", required = true)
private String value;
/** 更新人 */
@Excel(name = "更新人")
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,100 @@
package com.muyu.product.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.AttributeGroupQueryReq;
import com.muyu.product.domain.req.AttributeGroupSaveReq;
import com.muyu.product.domain.req.AttributeGroupEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_group
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("attribute_group")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AttributeGroup", description = "属性组")
public class AttributeGroup extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性组编号 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "属性组编号", value = "属性组编号")
private Long id;
/** 组名称 */
@Excel(name = "组名称")
@ApiModelProperty(name = "组名称", value = "组名称", required = true)
private String name;
/** 状态 */
@Excel(name = "状态")
@ApiModelProperty(name = "状态", value = "状态", required = true)
private String states;
/** 更新人 */
@Excel(name = "更新人")
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
/**
*
*/
public static AttributeGroup queryBuild( AttributeGroupQueryReq attributeGroupQueryReq){
return AttributeGroup.builder()
.name(attributeGroupQueryReq.getName())
.states(attributeGroupQueryReq.getStates())
.updataBy(attributeGroupQueryReq.getUpdataBy())
.updataTime(attributeGroupQueryReq.getUpdataTime())
.build();
}
/**
*
*/
public static AttributeGroup saveBuild(AttributeGroupSaveReq attributeGroupSaveReq){
return AttributeGroup.builder()
.name(attributeGroupSaveReq.getName())
.states(attributeGroupSaveReq.getStates())
.updataBy(attributeGroupSaveReq.getUpdataBy())
.updataTime(attributeGroupSaveReq.getUpdataTime())
.build();
}
/**
*
*/
public static AttributeGroup editBuild(Long id, AttributeGroupEditReq attributeGroupEditReq){
return AttributeGroup.builder()
.id(id)
.name(attributeGroupEditReq.getName())
.states(attributeGroupEditReq.getStates())
.updataBy(attributeGroupEditReq.getUpdataBy())
.updataTime(attributeGroupEditReq.getUpdataTime())
.build();
}
}

View File

@ -0,0 +1,100 @@
package com.muyu.product.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.AttributeInfoQueryReq;
import com.muyu.product.domain.req.AttributeInfoSaveReq;
import com.muyu.product.domain.req.AttributeInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("attribute_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AttributeInfo", description = "商品属性")
public class AttributeInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性编号 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "属性编号", value = "属性编号")
private Long id;
/** 属性名 */
@Excel(name = "属性名")
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
private String name;
/** 分组 */
@Excel(name = "分组")
@ApiModelProperty(name = "分组", value = "分组")
private Long groupId;
/** 更新人 */
@Excel(name = "更新人")
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
/**
*
*/
public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){
return AttributeInfo.builder()
.name(attributeInfoQueryReq.getName())
.groupId(attributeInfoQueryReq.getGroupId())
.updataBy(attributeInfoQueryReq.getUpdataBy())
.updataTime(attributeInfoQueryReq.getUpdataTime())
.build();
}
/**
*
*/
public static AttributeInfo saveBuild(AttributeInfoSaveReq attributeInfoSaveReq){
return AttributeInfo.builder()
.name(attributeInfoSaveReq.getName())
.groupId(attributeInfoSaveReq.getGroupId())
.updataBy(attributeInfoSaveReq.getUpdataBy())
.updataTime(attributeInfoSaveReq.getUpdataTime())
.build();
}
/**
*
*/
public static AttributeInfo editBuild(Long id, AttributeInfoEditReq attributeInfoEditReq){
return AttributeInfo.builder()
.id(id)
.name(attributeInfoEditReq.getName())
.groupId(attributeInfoEditReq.getGroupId())
.updataBy(attributeInfoEditReq.getUpdataBy())
.updataTime(attributeInfoEditReq.getUpdataTime())
.build();
}
}

View File

@ -0,0 +1,97 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.BrandInfoQueryReq;
import com.muyu.product.domain.req.BrandInfoSaveReq;
import com.muyu.product.domain.req.BrandInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* brand_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("brand_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BrandInfo", description = "品牌信息")
public class BrandInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品牌名称 */
@Excel(name = "品牌名称")
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam;
/** LOGO */
@Excel(name = "LOGO")
@ApiModelProperty(name = "LOGO", value = "LOGO", required = true)
private String logo;
/** 是否启用 */
@Excel(name = "是否启用")
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@Excel(name = "介绍")
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
/**
*
*/
public static BrandInfo queryBuild( BrandInfoQueryReq brandInfoQueryReq){
return BrandInfo.builder()
.nam(brandInfoQueryReq.getNam())
.logo(brandInfoQueryReq.getLogo())
.start(brandInfoQueryReq.getStart())
.introduction(brandInfoQueryReq.getIntroduction())
.build();
}
/**
*
*/
public static BrandInfo saveBuild(BrandInfoSaveReq brandInfoSaveReq){
return BrandInfo.builder()
.nam(brandInfoSaveReq.getNam())
.logo(brandInfoSaveReq.getLogo())
.start(brandInfoSaveReq.getStart())
.introduction(brandInfoSaveReq.getIntroduction())
.build();
}
/**
*
*/
public static BrandInfo editBuild(Long id, BrandInfoEditReq brandInfoEditReq){
return BrandInfo.builder()
.id(id)
.nam(brandInfoEditReq.getNam())
.logo(brandInfoEditReq.getLogo())
.start(brandInfoEditReq.getStart())
.introduction(brandInfoEditReq.getIntroduction())
.build();
}
}

View File

@ -0,0 +1,97 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.CategoryInfoQueryReq;
import com.muyu.product.domain.req.CategoryInfoSaveReq;
import com.muyu.product.domain.req.CategoryInfoEditReq;
import com.muyu.common.core.web.domain.TreeEntity;
/**
* category_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("category_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CategoryInfo", description = "品类信息")
public class CategoryInfo extends TreeEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品类名称 */
@Excel(name = "品类名称")
@ApiModelProperty(name = "品类名称", value = "品类名称", required = true)
private String name;
/** 图片 */
@Excel(name = "图片")
@ApiModelProperty(name = "图片", value = "图片", required = true)
private String image;
/** 是否启用 */
@Excel(name = "是否启用")
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@Excel(name = "介绍")
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
/**
*
*/
public static CategoryInfo queryBuild( CategoryInfoQueryReq categoryInfoQueryReq){
return CategoryInfo.builder()
.name(categoryInfoQueryReq.getName())
.image(categoryInfoQueryReq.getImage())
.start(categoryInfoQueryReq.getStart())
.introduction(categoryInfoQueryReq.getIntroduction())
.build();
}
/**
*
*/
public static CategoryInfo saveBuild(CategoryInfoSaveReq categoryInfoSaveReq){
return CategoryInfo.builder()
.name(categoryInfoSaveReq.getName())
.image(categoryInfoSaveReq.getImage())
.start(categoryInfoSaveReq.getStart())
.introduction(categoryInfoSaveReq.getIntroduction())
.build();
}
/**
*
*/
public static CategoryInfo editBuild(Long id, CategoryInfoEditReq categoryInfoEditReq){
return CategoryInfo.builder()
.id(id)
.name(categoryInfoEditReq.getName())
.image(categoryInfoEditReq.getImage())
.start(categoryInfoEditReq.getStart())
.introduction(categoryInfoEditReq.getIntroduction())
.build();
}
}

View File

@ -0,0 +1,97 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.CommentInfoQueryReq;
import com.muyu.product.domain.req.CommentInfoSaveReq;
import com.muyu.product.domain.req.CommentInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("comment_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CommentInfo", description = "商品评论")
public class CommentInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品id */
@Excel(name = "商品id")
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** 评论 */
@Excel(name = "评论")
@ApiModelProperty(name = "评论", value = "评论")
private String comment;
/** 图片 */
@Excel(name = "图片")
@ApiModelProperty(name = "图片", value = "图片")
private String images;
/** 父类id */
@Excel(name = "父类id")
@ApiModelProperty(name = "父类id", value = "父类id")
private String parentId;
/**
*
*/
public static CommentInfo queryBuild( CommentInfoQueryReq commentInfoQueryReq){
return CommentInfo.builder()
.projectId(commentInfoQueryReq.getProjectId())
.comment(commentInfoQueryReq.getComment())
.images(commentInfoQueryReq.getImages())
.parentId(commentInfoQueryReq.getParentId())
.build();
}
/**
*
*/
public static CommentInfo saveBuild(CommentInfoSaveReq commentInfoSaveReq){
return CommentInfo.builder()
.projectId(commentInfoSaveReq.getProjectId())
.comment(commentInfoSaveReq.getComment())
.images(commentInfoSaveReq.getImages())
.parentId(commentInfoSaveReq.getParentId())
.build();
}
/**
*
*/
public static CommentInfo editBuild(Long id, CommentInfoEditReq commentInfoEditReq){
return CommentInfo.builder()
.id(id)
.projectId(commentInfoEditReq.getProjectId())
.comment(commentInfoEditReq.getComment())
.images(commentInfoEditReq.getImages())
.parentId(commentInfoEditReq.getParentId())
.build();
}
}

View File

@ -0,0 +1,81 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.CommentLikeInfoQueryReq;
import com.muyu.product.domain.req.CommentLikeInfoSaveReq;
import com.muyu.product.domain.req.CommentLikeInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_like_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("comment_like_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CommentLikeInfo", description = "评论点赞")
public class CommentLikeInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 评论id */
@Excel(name = "评论id")
@ApiModelProperty(name = "评论id", value = "评论id", required = true)
private Long commentId;
/** 点赞人id */
@Excel(name = "点赞人id")
@ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true)
private Long userId;
/**
*
*/
public static CommentLikeInfo queryBuild( CommentLikeInfoQueryReq commentLikeInfoQueryReq){
return CommentLikeInfo.builder()
.commentId(commentLikeInfoQueryReq.getCommentId())
.userId(commentLikeInfoQueryReq.getUserId())
.build();
}
/**
*
*/
public static CommentLikeInfo saveBuild(CommentLikeInfoSaveReq commentLikeInfoSaveReq){
return CommentLikeInfo.builder()
.commentId(commentLikeInfoSaveReq.getCommentId())
.userId(commentLikeInfoSaveReq.getUserId())
.build();
}
/**
*
*/
public static CommentLikeInfo editBuild(Long id, CommentLikeInfoEditReq commentLikeInfoEditReq){
return CommentLikeInfo.builder()
.id(id)
.commentId(commentLikeInfoEditReq.getCommentId())
.userId(commentLikeInfoEditReq.getUserId())
.build();
}
}

View File

@ -0,0 +1,145 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.ProjectInfoQueryReq;
import com.muyu.product.domain.req.ProjectInfoSaveReq;
import com.muyu.product.domain.req.ProjectInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* project_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("project_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProjectInfo", description = "商品信息")
public class ProjectInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品名称 */
@Excel(name = "商品名称")
@ApiModelProperty(name = "商品名称", value = "商品名称")
private String name;
/** 商品描述 */
@Excel(name = "商品描述")
@ApiModelProperty(name = "商品描述", value = "商品描述")
private String introduction;
/** 主类型 */
@Excel(name = "主类型")
@ApiModelProperty(name = "主类型", value = "主类型")
private String mianType;
/** 父类型 */
@Excel(name = "父类型")
@ApiModelProperty(name = "父类型", value = "父类型")
private String parentType;
/** 商品类型 */
@Excel(name = "商品类型")
@ApiModelProperty(name = "商品类型", value = "商品类型")
private String type;
/** 商品图片 */
@Excel(name = "商品图片")
@ApiModelProperty(name = "商品图片", value = "商品图片")
private String image;
/** 商品轮播图 */
@Excel(name = "商品轮播图")
@ApiModelProperty(name = "商品轮播图", value = "商品轮播图")
private String carouselImages;
/** 商品状态 */
@Excel(name = "商品状态")
@ApiModelProperty(name = "商品状态", value = "商品状态")
private String status;
/** 规格 */
@Excel(name = "规格")
@ApiModelProperty(name = "规格", value = "规格")
private Long ruleId;
/** 品牌 */
@Excel(name = "品牌")
@ApiModelProperty(name = "品牌", value = "品牌")
private Long brandId;
/**
*
*/
public static ProjectInfo queryBuild( ProjectInfoQueryReq projectInfoQueryReq){
return ProjectInfo.builder()
.name(projectInfoQueryReq.getName())
.introduction(projectInfoQueryReq.getIntroduction())
.mianType(projectInfoQueryReq.getMianType())
.parentType(projectInfoQueryReq.getParentType())
.type(projectInfoQueryReq.getType())
.image(projectInfoQueryReq.getImage())
.carouselImages(projectInfoQueryReq.getCarouselImages())
.status(projectInfoQueryReq.getStatus())
.ruleId(projectInfoQueryReq.getRuleId())
.brandId(projectInfoQueryReq.getBrandId())
.build();
}
/**
*
*/
public static ProjectInfo saveBuild(ProjectInfoSaveReq projectInfoSaveReq){
return ProjectInfo.builder()
.name(projectInfoSaveReq.getName())
.introduction(projectInfoSaveReq.getIntroduction())
.mianType(projectInfoSaveReq.getMianType())
.parentType(projectInfoSaveReq.getParentType())
.type(projectInfoSaveReq.getType())
.image(projectInfoSaveReq.getImage())
.carouselImages(projectInfoSaveReq.getCarouselImages())
.status(projectInfoSaveReq.getStatus())
.ruleId(projectInfoSaveReq.getRuleId())
.brandId(projectInfoSaveReq.getBrandId())
.build();
}
/**
*
*/
public static ProjectInfo editBuild(Long id, ProjectInfoEditReq projectInfoEditReq){
return ProjectInfo.builder()
.id(id)
.name(projectInfoEditReq.getName())
.introduction(projectInfoEditReq.getIntroduction())
.mianType(projectInfoEditReq.getMianType())
.parentType(projectInfoEditReq.getParentType())
.type(projectInfoEditReq.getType())
.image(projectInfoEditReq.getImage())
.carouselImages(projectInfoEditReq.getCarouselImages())
.status(projectInfoEditReq.getStatus())
.ruleId(projectInfoEditReq.getRuleId())
.brandId(projectInfoEditReq.getBrandId())
.build();
}
}

View File

@ -0,0 +1,106 @@
package com.muyu.product.domain;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.ProjectSkuInfoQueryReq;
import com.muyu.product.domain.req.ProjectSkuInfoSaveReq;
import com.muyu.product.domain.req.ProjectSkuInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* SKU project_sku_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("project_sku_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProjectSkuInfo", description = "商品SKU")
public class ProjectSkuInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品id */
@Excel(name = "商品id")
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** sku */
@Excel(name = "sku")
@ApiModelProperty(name = "sku", value = "sku", required = true)
private String sku;
/** 商品库存 */
@Excel(name = "商品库存")
@ApiModelProperty(name = "商品库存", value = "商品库存", required = true)
private Long stock;
/** 商品价格 */
@Excel(name = "商品价格")
@ApiModelProperty(name = "商品价格", value = "商品价格", required = true)
private BigDecimal price;
/** 规格图片 */
@Excel(name = "规格图片")
@ApiModelProperty(name = "规格图片", value = "规格图片", required = true)
private String image;
/**
*
*/
public static ProjectSkuInfo queryBuild( ProjectSkuInfoQueryReq projectSkuInfoQueryReq){
return ProjectSkuInfo.builder()
.projectId(projectSkuInfoQueryReq.getProjectId())
.sku(projectSkuInfoQueryReq.getSku())
.stock(projectSkuInfoQueryReq.getStock())
.price(projectSkuInfoQueryReq.getPrice())
.image(projectSkuInfoQueryReq.getImage())
.build();
}
/**
*
*/
public static ProjectSkuInfo saveBuild(ProjectSkuInfoSaveReq projectSkuInfoSaveReq){
return ProjectSkuInfo.builder()
.projectId(projectSkuInfoSaveReq.getProjectId())
.sku(projectSkuInfoSaveReq.getSku())
.stock(projectSkuInfoSaveReq.getStock())
.price(projectSkuInfoSaveReq.getPrice())
.image(projectSkuInfoSaveReq.getImage())
.build();
}
/**
*
*/
public static ProjectSkuInfo editBuild(Long id, ProjectSkuInfoEditReq projectSkuInfoEditReq){
return ProjectSkuInfo.builder()
.id(id)
.projectId(projectSkuInfoEditReq.getProjectId())
.sku(projectSkuInfoEditReq.getSku())
.stock(projectSkuInfoEditReq.getStock())
.price(projectSkuInfoEditReq.getPrice())
.image(projectSkuInfoEditReq.getImage())
.build();
}
}

View File

@ -0,0 +1,89 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.RuleAttrInfoQueryReq;
import com.muyu.product.domain.req.RuleAttrInfoSaveReq;
import com.muyu.product.domain.req.RuleAttrInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_attr_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("rule_attr_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RuleAttrInfo", description = "规格详情")
public class RuleAttrInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 规格id */
@Excel(name = "规格id")
@ApiModelProperty(name = "规格id", value = "规格id", required = true)
private Long ruleId;
/** 类目名称 */
@Excel(name = "类目名称")
@ApiModelProperty(name = "类目名称", value = "类目名称")
private String name;
/** 规格值 */
@Excel(name = "规格值")
@ApiModelProperty(name = "规格值", value = "规格值")
private String attrValue;
/**
*
*/
public static RuleAttrInfo queryBuild( RuleAttrInfoQueryReq ruleAttrInfoQueryReq){
return RuleAttrInfo.builder()
.ruleId(ruleAttrInfoQueryReq.getRuleId())
.name(ruleAttrInfoQueryReq.getName())
.attrValue(ruleAttrInfoQueryReq.getAttrValue())
.build();
}
/**
*
*/
public static RuleAttrInfo saveBuild(RuleAttrInfoSaveReq ruleAttrInfoSaveReq){
return RuleAttrInfo.builder()
.ruleId(ruleAttrInfoSaveReq.getRuleId())
.name(ruleAttrInfoSaveReq.getName())
.attrValue(ruleAttrInfoSaveReq.getAttrValue())
.build();
}
/**
*
*/
public static RuleAttrInfo editBuild(Long id, RuleAttrInfoEditReq ruleAttrInfoEditReq){
return RuleAttrInfo.builder()
.id(id)
.ruleId(ruleAttrInfoEditReq.getRuleId())
.name(ruleAttrInfoEditReq.getName())
.attrValue(ruleAttrInfoEditReq.getAttrValue())
.build();
}
}

View File

@ -0,0 +1,81 @@
package com.muyu.product.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.product.domain.req.RuleInfoQueryReq;
import com.muyu.product.domain.req.RuleInfoSaveReq;
import com.muyu.product.domain.req.RuleInfoEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("rule_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RuleInfo", description = "商品规格")
public class RuleInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 规格名称 */
@Excel(name = "规格名称")
@ApiModelProperty(name = "规格名称", value = "规格名称")
private String name;
/** 规格状态 */
@Excel(name = "规格状态")
@ApiModelProperty(name = "规格状态", value = "规格状态")
private String status;
/**
*
*/
public static RuleInfo queryBuild( RuleInfoQueryReq ruleInfoQueryReq){
return RuleInfo.builder()
.name(ruleInfoQueryReq.getName())
.status(ruleInfoQueryReq.getStatus())
.build();
}
/**
*
*/
public static RuleInfo saveBuild(RuleInfoSaveReq ruleInfoSaveReq){
return RuleInfo.builder()
.name(ruleInfoSaveReq.getName())
.status(ruleInfoSaveReq.getStatus())
.build();
}
/**
*
*/
public static RuleInfo editBuild(Long id, RuleInfoEditReq ruleInfoEditReq){
return RuleInfo.builder()
.id(id)
.name(ruleInfoEditReq.getName())
.status(ruleInfoEditReq.getStatus())
.build();
}
}

View File

@ -0,0 +1,45 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_group
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeGroupEditReq", description = "属性组")
public class AttributeGroupEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 组名称 */
@ApiModelProperty(name = "组名称", value = "组名称", required = true)
private String name;
/** 状态 */
@ApiModelProperty(name = "状态", value = "状态", required = true)
private String states;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,45 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_group
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeGroupQueryReq", description = "属性组")
public class AttributeGroupQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 组名称 */
@ApiModelProperty(name = "组名称", value = "组名称")
private String name;
/** 状态 */
@ApiModelProperty(name = "状态", value = "状态")
private String states;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,54 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_group
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeGroupSaveReq", description = "属性组")
public class AttributeGroupSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性组编号 */
@ApiModelProperty(name = "属性组编号", value = "属性组编号")
private Long id;
/** 组名称 */
@ApiModelProperty(name = "组名称", value = "组名称", required = true)
private String name;
/** 状态 */
@ApiModelProperty(name = "状态", value = "状态", required = true)
private String states;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,45 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeInfoEditReq", description = "商品属性")
public class AttributeInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性名 */
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
private String name;
/** 分组 */
@ApiModelProperty(name = "分组", value = "分组")
private Long groupId;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,45 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeInfoQueryReq", description = "商品属性")
public class AttributeInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性名 */
@ApiModelProperty(name = "属性名", value = "属性名")
private String name;
/** 分组 */
@ApiModelProperty(name = "分组", value = "分组")
private Long groupId;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,54 @@
package com.muyu.product.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AttributeInfoSaveReq", description = "商品属性")
public class AttributeInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 属性编号 */
@ApiModelProperty(name = "属性编号", value = "属性编号")
private Long id;
/** 属性名 */
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
private String name;
/** 分组 */
@ApiModelProperty(name = "分组", value = "分组")
private Long groupId;
/** 更新人 */
@ApiModelProperty(name = "更新人", value = "更新人")
private String updataBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "更新时间", value = "更新时间")
private Date updataTime;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* brand_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "BrandInfoEditReq", description = "品牌信息")
public class BrandInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam;
/** LOGO */
@ApiModelProperty(name = "LOGO", value = "LOGO", required = true)
private String logo;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* brand_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "BrandInfoQueryReq", description = "品牌信息")
public class BrandInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称")
private String nam;
/** LOGO */
@ApiModelProperty(name = "LOGO", value = "LOGO")
private String logo;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用")
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,51 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* brand_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "BrandInfoSaveReq", description = "品牌信息")
public class BrandInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam;
/** LOGO */
@ApiModelProperty(name = "LOGO", value = "LOGO", required = true)
private String logo;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.TreeEntity;
/**
* category_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CategoryInfoEditReq", description = "品类信息")
public class CategoryInfoEditReq extends TreeEntity {
private static final long serialVersionUID = 1L;
/** 品类名称 */
@ApiModelProperty(name = "品类名称", value = "品类名称", required = true)
private String name;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片", required = true)
private String image;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.TreeEntity;
/**
* category_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CategoryInfoQueryReq", description = "品类信息")
public class CategoryInfoQueryReq extends TreeEntity {
private static final long serialVersionUID = 1L;
/** 品类名称 */
@ApiModelProperty(name = "品类名称", value = "品类名称")
private String name;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片")
private String image;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用")
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,51 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.TreeEntity;
/**
* category_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CategoryInfoSaveReq", description = "品类信息")
public class CategoryInfoSaveReq extends TreeEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 品类名称 */
@ApiModelProperty(name = "品类名称", value = "品类名称", required = true)
private String name;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片", required = true)
private String image;
/** 是否启用 */
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
private String start;
/** 介绍 */
@ApiModelProperty(name = "介绍", value = "介绍")
private String introduction;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentInfoEditReq", description = "商品评论")
public class CommentInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** 评论 */
@ApiModelProperty(name = "评论", value = "评论")
private String comment;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片")
private String images;
/** 父类id */
@ApiModelProperty(name = "父类id", value = "父类id")
private String parentId;
}

View File

@ -0,0 +1,42 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentInfoQueryReq", description = "商品评论")
public class CommentInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id")
private Long projectId;
/** 评论 */
@ApiModelProperty(name = "评论", value = "评论")
private String comment;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片")
private String images;
/** 父类id */
@ApiModelProperty(name = "父类id", value = "父类id")
private String parentId;
}

View File

@ -0,0 +1,51 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentInfoSaveReq", description = "商品评论")
public class CommentInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** 评论 */
@ApiModelProperty(name = "评论", value = "评论")
private String comment;
/** 图片 */
@ApiModelProperty(name = "图片", value = "图片")
private String images;
/** 父类id */
@ApiModelProperty(name = "父类id", value = "父类id")
private String parentId;
}

View File

@ -0,0 +1,34 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_like_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentLikeInfoEditReq", description = "评论点赞")
public class CommentLikeInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 评论id */
@ApiModelProperty(name = "评论id", value = "评论id", required = true)
private Long commentId;
/** 点赞人id */
@ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true)
private Long userId;
}

View File

@ -0,0 +1,34 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_like_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentLikeInfoQueryReq", description = "评论点赞")
public class CommentLikeInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 评论id */
@ApiModelProperty(name = "评论id", value = "评论id")
private Long commentId;
/** 点赞人id */
@ApiModelProperty(name = "点赞人id", value = "点赞人id")
private Long userId;
}

View File

@ -0,0 +1,41 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_like_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CommentLikeInfoSaveReq", description = "评论点赞")
public class CommentLikeInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 评论id */
@ApiModelProperty(name = "评论id", value = "评论id", required = true)
private Long commentId;
/** 点赞人id */
@ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true)
private Long userId;
}

View File

@ -0,0 +1,66 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* project_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectInfoEditReq", description = "商品信息")
public class ProjectInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品名称 */
@ApiModelProperty(name = "商品名称", value = "商品名称")
private String name;
/** 商品描述 */
@ApiModelProperty(name = "商品描述", value = "商品描述")
private String introduction;
/** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型")
private String mianType;
/** 父类型 */
@ApiModelProperty(name = "父类型", value = "父类型")
private String parentType;
/** 商品类型 */
@ApiModelProperty(name = "商品类型", value = "商品类型")
private String type;
/** 商品图片 */
@ApiModelProperty(name = "商品图片", value = "商品图片")
private String image;
/** 商品轮播图 */
@ApiModelProperty(name = "商品轮播图", value = "商品轮播图")
private String carouselImages;
/** 商品状态 */
@ApiModelProperty(name = "商品状态", value = "商品状态")
private String status;
/** 规格 */
@ApiModelProperty(name = "规格", value = "规格")
private Long ruleId;
/** 品牌 */
@ApiModelProperty(name = "品牌", value = "品牌")
private Long brandId;
}

View File

@ -0,0 +1,66 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* project_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectInfoQueryReq", description = "商品信息")
public class ProjectInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品名称 */
@ApiModelProperty(name = "商品名称", value = "商品名称")
private String name;
/** 商品描述 */
@ApiModelProperty(name = "商品描述", value = "商品描述")
private String introduction;
/** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型")
private String mianType;
/** 父类型 */
@ApiModelProperty(name = "父类型", value = "父类型")
private String parentType;
/** 商品类型 */
@ApiModelProperty(name = "商品类型", value = "商品类型")
private String type;
/** 商品图片 */
@ApiModelProperty(name = "商品图片", value = "商品图片")
private String image;
/** 商品轮播图 */
@ApiModelProperty(name = "商品轮播图", value = "商品轮播图")
private String carouselImages;
/** 商品状态 */
@ApiModelProperty(name = "商品状态", value = "商品状态")
private String status;
/** 规格 */
@ApiModelProperty(name = "规格", value = "规格")
private Long ruleId;
/** 品牌 */
@ApiModelProperty(name = "品牌", value = "品牌")
private Long brandId;
}

View File

@ -0,0 +1,81 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* project_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectInfoSaveReq", description = "商品信息")
public class ProjectInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品名称 */
@ApiModelProperty(name = "商品名称", value = "商品名称")
private String name;
/** 商品描述 */
@ApiModelProperty(name = "商品描述", value = "商品描述")
private String introduction;
/** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型")
private String mianType;
/** 父类型 */
@ApiModelProperty(name = "父类型", value = "父类型")
private String parentType;
/** 商品类型 */
@ApiModelProperty(name = "商品类型", value = "商品类型")
private String type;
/** 商品图片 */
@ApiModelProperty(name = "商品图片", value = "商品图片")
private String image;
/** 商品轮播图 */
@ApiModelProperty(name = "商品轮播图", value = "商品轮播图")
private String carouselImages;
/** 商品状态 */
@ApiModelProperty(name = "商品状态", value = "商品状态")
private String status;
/** 规格 */
@ApiModelProperty(name = "规格", value = "规格")
private Long ruleId;
/** 品牌 */
@ApiModelProperty(name = "品牌", value = "品牌")
private Long brandId;
}

View File

@ -0,0 +1,47 @@
package com.muyu.product.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* SKU project_sku_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectSkuInfoEditReq", description = "商品SKU")
public class ProjectSkuInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** sku */
@ApiModelProperty(name = "sku", value = "sku", required = true)
private String sku;
/** 商品库存 */
@ApiModelProperty(name = "商品库存", value = "商品库存", required = true)
private Long stock;
/** 商品价格 */
@ApiModelProperty(name = "商品价格", value = "商品价格", required = true)
private BigDecimal price;
/** 规格图片 */
@ApiModelProperty(name = "规格图片", value = "规格图片", required = true)
private String image;
}

View File

@ -0,0 +1,47 @@
package com.muyu.product.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* SKU project_sku_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectSkuInfoQueryReq", description = "商品SKU")
public class ProjectSkuInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id")
private Long projectId;
/** sku */
@ApiModelProperty(name = "sku", value = "sku")
private String sku;
/** 商品库存 */
@ApiModelProperty(name = "商品库存", value = "商品库存")
private Long stock;
/** 商品价格 */
@ApiModelProperty(name = "商品价格", value = "商品价格")
private BigDecimal price;
/** 规格图片 */
@ApiModelProperty(name = "规格图片", value = "规格图片")
private String image;
}

View File

@ -0,0 +1,57 @@
package com.muyu.product.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* SKU project_sku_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProjectSkuInfoSaveReq", description = "商品SKU")
public class ProjectSkuInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 商品id */
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
private Long projectId;
/** sku */
@ApiModelProperty(name = "sku", value = "sku", required = true)
private String sku;
/** 商品库存 */
@ApiModelProperty(name = "商品库存", value = "商品库存", required = true)
private Long stock;
/** 商品价格 */
@ApiModelProperty(name = "商品价格", value = "商品价格", required = true)
private BigDecimal price;
/** 规格图片 */
@ApiModelProperty(name = "规格图片", value = "规格图片", required = true)
private String image;
}

View File

@ -0,0 +1,38 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_attr_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleAttrInfoEditReq", description = "规格详情")
public class RuleAttrInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 规格id */
@ApiModelProperty(name = "规格id", value = "规格id", required = true)
private Long ruleId;
/** 类目名称 */
@ApiModelProperty(name = "类目名称", value = "类目名称")
private String name;
/** 规格值 */
@ApiModelProperty(name = "规格值", value = "规格值")
private String attrValue;
}

View File

@ -0,0 +1,38 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_attr_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleAttrInfoQueryReq", description = "规格详情")
public class RuleAttrInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 规格id */
@ApiModelProperty(name = "规格id", value = "规格id")
private Long ruleId;
/** 类目名称 */
@ApiModelProperty(name = "类目名称", value = "类目名称")
private String name;
/** 规格值 */
@ApiModelProperty(name = "规格值", value = "规格值")
private String attrValue;
}

View File

@ -0,0 +1,46 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_attr_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleAttrInfoSaveReq", description = "规格详情")
public class RuleAttrInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 规格id */
@ApiModelProperty(name = "规格id", value = "规格id", required = true)
private Long ruleId;
/** 类目名称 */
@ApiModelProperty(name = "类目名称", value = "类目名称")
private String name;
/** 规格值 */
@ApiModelProperty(name = "规格值", value = "规格值")
private String attrValue;
}

View File

@ -0,0 +1,34 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleInfoEditReq", description = "商品规格")
public class RuleInfoEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 规格名称 */
@ApiModelProperty(name = "规格名称", value = "规格名称")
private String name;
/** 规格状态 */
@ApiModelProperty(name = "规格状态", value = "规格状态")
private String status;
}

View File

@ -0,0 +1,34 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleInfoQueryReq", description = "商品规格")
public class RuleInfoQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 规格名称 */
@ApiModelProperty(name = "规格名称", value = "规格名称")
private String name;
/** 规格状态 */
@ApiModelProperty(name = "规格状态", value = "规格状态")
private String status;
}

View File

@ -0,0 +1,41 @@
package com.muyu.product.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_info
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "RuleInfoSaveReq", description = "商品规格")
public class RuleInfoSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 规格名称 */
@ApiModelProperty(name = "规格名称", value = "规格名称")
private String name;
/** 规格状态 */
@ApiModelProperty(name = "规格状态", value = "规格状态")
private String status;
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.domain.req.AttributeGroupQueryReq;
import com.muyu.product.domain.req.AttributeGroupSaveReq;
import com.muyu.product.domain.req.AttributeGroupEditReq;
import com.muyu.product.service.AttributeGroupService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "属性组")
@RestController
@RequestMapping("/attributeGroup")
public class AttributeGroupController extends BaseController {
@Autowired
private AttributeGroupService attributeGroupService;
/**
*
*/
@ApiOperation("获取属性组列表")
@RequiresPermissions("product:attributeGroup:list")
@GetMapping("/list")
public Result<TableDataInfo<AttributeGroup>> list(AttributeGroupQueryReq attributeGroupQueryReq) {
startPage();
List<AttributeGroup> list = attributeGroupService.list(AttributeGroup.queryBuild(attributeGroupQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出属性组列表")
@RequiresPermissions("product:attributeGroup:export")
@Log(title = "属性组", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AttributeGroup attributeGroup) {
List<AttributeGroup> list = attributeGroupService.list(attributeGroup);
ExcelUtil<AttributeGroup> util = new ExcelUtil<AttributeGroup>(AttributeGroup.class);
util.exportExcel(response, list, "属性组数据");
}
/**
*
*/
@ApiOperation("获取属性组详细信息")
@RequiresPermissions("product:attributeGroup:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<AttributeGroup> getInfo(@PathVariable("id") Long id) {
return Result.success(attributeGroupService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:add")
@Log(title = "属性组", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增属性组")
public Result<String> add(@RequestBody AttributeGroupSaveReq attributeGroupSaveReq) {
return toAjax(attributeGroupService.save(AttributeGroup.saveBuild(attributeGroupSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:edit")
@Log(title = "属性组", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改属性组")
public Result<String> edit(@PathVariable Long id, @RequestBody AttributeGroupEditReq attributeGroupEditReq) {
return toAjax(attributeGroupService.updateById(AttributeGroup.editBuild(id,attributeGroupEditReq)));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:remove")
@Log(title = "属性组", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除属性组")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(attributeGroupService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.AttributeInfo;
import com.muyu.product.domain.req.AttributeInfoQueryReq;
import com.muyu.product.domain.req.AttributeInfoSaveReq;
import com.muyu.product.domain.req.AttributeInfoEditReq;
import com.muyu.product.service.AttributeInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "商品属性")
@RestController
@RequestMapping("/attribute")
public class AttributeInfoController extends BaseController {
@Autowired
private AttributeInfoService attributeInfoService;
/**
*
*/
@ApiOperation("获取商品属性列表")
@RequiresPermissions("product:attribute:list")
@GetMapping("/list")
public Result<TableDataInfo<AttributeInfo>> list(AttributeInfoQueryReq attributeInfoQueryReq) {
startPage();
List<AttributeInfo> list = attributeInfoService.list(AttributeInfo.queryBuild(attributeInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出商品属性列表")
@RequiresPermissions("product:attribute:export")
@Log(title = "商品属性", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AttributeInfo attributeInfo) {
List<AttributeInfo> list = attributeInfoService.list(attributeInfo);
ExcelUtil<AttributeInfo> util = new ExcelUtil<AttributeInfo>(AttributeInfo.class);
util.exportExcel(response, list, "商品属性数据");
}
/**
*
*/
@ApiOperation("获取商品属性详细信息")
@RequiresPermissions("product:attribute:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<AttributeInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(attributeInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:attribute:add")
@Log(title = "商品属性", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品属性")
public Result<String> add(@RequestBody AttributeInfoSaveReq attributeInfoSaveReq) {
return toAjax(attributeInfoService.save(AttributeInfo.saveBuild(attributeInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:attribute:edit")
@Log(title = "商品属性", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品属性")
public Result<String> edit(@PathVariable Long id, @RequestBody AttributeInfoEditReq attributeInfoEditReq) {
return toAjax(attributeInfoService.updateById(AttributeInfo.editBuild(id,attributeInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:attribute:remove")
@Log(title = "商品属性", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除商品属性")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(attributeInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.BrandInfo;
import com.muyu.product.domain.req.BrandInfoQueryReq;
import com.muyu.product.domain.req.BrandInfoSaveReq;
import com.muyu.product.domain.req.BrandInfoEditReq;
import com.muyu.product.service.BrandInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "品牌信息")
@RestController
@RequestMapping("/brand")
public class BrandInfoController extends BaseController {
@Autowired
private BrandInfoService brandInfoService;
/**
*
*/
@ApiOperation("获取品牌信息列表")
@RequiresPermissions("product:brand:list")
@GetMapping("/list")
public Result<TableDataInfo<BrandInfo>> list(BrandInfoQueryReq brandInfoQueryReq) {
startPage();
List<BrandInfo> list = brandInfoService.list(BrandInfo.queryBuild(brandInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出品牌信息列表")
@RequiresPermissions("product:brand:export")
@Log(title = "品牌信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BrandInfo brandInfo) {
List<BrandInfo> list = brandInfoService.list(brandInfo);
ExcelUtil<BrandInfo> util = new ExcelUtil<BrandInfo>(BrandInfo.class);
util.exportExcel(response, list, "品牌信息数据");
}
/**
*
*/
@ApiOperation("获取品牌信息详细信息")
@RequiresPermissions("product:brand:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<BrandInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(brandInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:brand:add")
@Log(title = "品牌信息", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增品牌信息")
public Result<String> add(@RequestBody BrandInfoSaveReq brandInfoSaveReq) {
return toAjax(brandInfoService.save(BrandInfo.saveBuild(brandInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:brand:edit")
@Log(title = "品牌信息", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改品牌信息")
public Result<String> edit(@PathVariable Long id, @RequestBody BrandInfoEditReq brandInfoEditReq) {
return toAjax(brandInfoService.updateById(BrandInfo.editBuild(id,brandInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:brand:remove")
@Log(title = "品牌信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除品牌信息")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(brandInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,109 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CategoryInfo;
import com.muyu.product.domain.req.CategoryInfoQueryReq;
import com.muyu.product.domain.req.CategoryInfoSaveReq;
import com.muyu.product.domain.req.CategoryInfoEditReq;
import com.muyu.product.service.CategoryInfoService;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "品类信息")
@RestController
@RequestMapping("/category")
public class CategoryInfoController extends BaseController {
@Autowired
private CategoryInfoService categoryInfoService;
/**
*
*/
@ApiOperation("获取品类信息列表")
@RequiresPermissions("product:category:list")
@GetMapping("/list")
public Result<List<CategoryInfo>> list(CategoryInfo categoryInfo) {
List<CategoryInfo> list = categoryInfoService.list(categoryInfo);
return Result.success(list);
}
/**
*
*/
@ApiOperation("导出品类信息列表")
@RequiresPermissions("product:category:export")
@Log(title = "品类信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CategoryInfo categoryInfo) {
List<CategoryInfo> list = categoryInfoService.list(categoryInfo);
ExcelUtil<CategoryInfo> util = new ExcelUtil<CategoryInfo>(CategoryInfo.class);
util.exportExcel(response, list, "品类信息数据");
}
/**
*
*/
@ApiOperation("获取品类信息详细信息")
@RequiresPermissions("product:category:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<CategoryInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(categoryInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:category:add")
@Log(title = "品类信息", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增品类信息")
public Result<String> add(@RequestBody CategoryInfoSaveReq categoryInfoSaveReq) {
return toAjax(categoryInfoService.save(CategoryInfo.saveBuild(categoryInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:category:edit")
@Log(title = "品类信息", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改品类信息")
public Result<String> edit(@PathVariable Long id, @RequestBody CategoryInfoEditReq categoryInfoEditReq) {
return toAjax(categoryInfoService.updateById(CategoryInfo.editBuild(id,categoryInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:category:remove")
@Log(title = "品类信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除品类信息")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(categoryInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CommentInfo;
import com.muyu.product.domain.req.CommentInfoQueryReq;
import com.muyu.product.domain.req.CommentInfoSaveReq;
import com.muyu.product.domain.req.CommentInfoEditReq;
import com.muyu.product.service.CommentInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "商品评论")
@RestController
@RequestMapping("/comment")
public class CommentInfoController extends BaseController {
@Autowired
private CommentInfoService commentInfoService;
/**
*
*/
@ApiOperation("获取商品评论列表")
@RequiresPermissions("product:comment:list")
@GetMapping("/list")
public Result<TableDataInfo<CommentInfo>> list(CommentInfoQueryReq commentInfoQueryReq) {
startPage();
List<CommentInfo> list = commentInfoService.list(CommentInfo.queryBuild(commentInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出商品评论列表")
@RequiresPermissions("product:comment:export")
@Log(title = "商品评论", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CommentInfo commentInfo) {
List<CommentInfo> list = commentInfoService.list(commentInfo);
ExcelUtil<CommentInfo> util = new ExcelUtil<CommentInfo>(CommentInfo.class);
util.exportExcel(response, list, "商品评论数据");
}
/**
*
*/
@ApiOperation("获取商品评论详细信息")
@RequiresPermissions("product:comment:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<CommentInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(commentInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:comment:add")
@Log(title = "商品评论", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品评论")
public Result<String> add(@RequestBody CommentInfoSaveReq commentInfoSaveReq) {
return toAjax(commentInfoService.save(CommentInfo.saveBuild(commentInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:comment:edit")
@Log(title = "商品评论", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品评论")
public Result<String> edit(@PathVariable Long id, @RequestBody CommentInfoEditReq commentInfoEditReq) {
return toAjax(commentInfoService.updateById(CommentInfo.editBuild(id,commentInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:comment:remove")
@Log(title = "商品评论", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除商品评论")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(commentInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CommentLikeInfo;
import com.muyu.product.domain.req.CommentLikeInfoQueryReq;
import com.muyu.product.domain.req.CommentLikeInfoSaveReq;
import com.muyu.product.domain.req.CommentLikeInfoEditReq;
import com.muyu.product.service.CommentLikeInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "评论点赞")
@RestController
@RequestMapping("/commentLike")
public class CommentLikeInfoController extends BaseController {
@Autowired
private CommentLikeInfoService commentLikeInfoService;
/**
*
*/
@ApiOperation("获取评论点赞列表")
@RequiresPermissions("product:commentLike:list")
@GetMapping("/list")
public Result<TableDataInfo<CommentLikeInfo>> list(CommentLikeInfoQueryReq commentLikeInfoQueryReq) {
startPage();
List<CommentLikeInfo> list = commentLikeInfoService.list(CommentLikeInfo.queryBuild(commentLikeInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出评论点赞列表")
@RequiresPermissions("product:commentLike:export")
@Log(title = "评论点赞", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CommentLikeInfo commentLikeInfo) {
List<CommentLikeInfo> list = commentLikeInfoService.list(commentLikeInfo);
ExcelUtil<CommentLikeInfo> util = new ExcelUtil<CommentLikeInfo>(CommentLikeInfo.class);
util.exportExcel(response, list, "评论点赞数据");
}
/**
*
*/
@ApiOperation("获取评论点赞详细信息")
@RequiresPermissions("product:commentLike:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<CommentLikeInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(commentLikeInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:commentLike:add")
@Log(title = "评论点赞", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增评论点赞")
public Result<String> add(@RequestBody CommentLikeInfoSaveReq commentLikeInfoSaveReq) {
return toAjax(commentLikeInfoService.save(CommentLikeInfo.saveBuild(commentLikeInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:commentLike:edit")
@Log(title = "评论点赞", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改评论点赞")
public Result<String> edit(@PathVariable Long id, @RequestBody CommentLikeInfoEditReq commentLikeInfoEditReq) {
return toAjax(commentLikeInfoService.updateById(CommentLikeInfo.editBuild(id,commentLikeInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:commentLike:remove")
@Log(title = "评论点赞", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除评论点赞")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(commentLikeInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.ProjectInfo;
import com.muyu.product.domain.req.ProjectInfoQueryReq;
import com.muyu.product.domain.req.ProjectInfoSaveReq;
import com.muyu.product.domain.req.ProjectInfoEditReq;
import com.muyu.product.service.ProjectInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "商品信息")
@RestController
@RequestMapping("/info")
public class ProjectInfoController extends BaseController {
@Autowired
private ProjectInfoService projectInfoService;
/**
*
*/
@ApiOperation("获取商品信息列表")
@RequiresPermissions("product:info:list")
@GetMapping("/list")
public Result<TableDataInfo<ProjectInfo>> list(ProjectInfoQueryReq projectInfoQueryReq) {
startPage();
List<ProjectInfo> list = projectInfoService.list(ProjectInfo.queryBuild(projectInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出商品信息列表")
@RequiresPermissions("product:info:export")
@Log(title = "商品信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProjectInfo projectInfo) {
List<ProjectInfo> list = projectInfoService.list(projectInfo);
ExcelUtil<ProjectInfo> util = new ExcelUtil<ProjectInfo>(ProjectInfo.class);
util.exportExcel(response, list, "商品信息数据");
}
/**
*
*/
@ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<ProjectInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(projectInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:info:add")
@Log(title = "商品信息", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品信息")
public Result<String> add(@RequestBody ProjectInfoSaveReq projectInfoSaveReq) {
return toAjax(projectInfoService.save(ProjectInfo.saveBuild(projectInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:info:edit")
@Log(title = "商品信息", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品信息")
public Result<String> edit(@PathVariable Long id, @RequestBody ProjectInfoEditReq projectInfoEditReq) {
return toAjax(projectInfoService.updateById(ProjectInfo.editBuild(id,projectInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:info:remove")
@Log(title = "商品信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除商品信息")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(projectInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.ProjectSkuInfo;
import com.muyu.product.domain.req.ProjectSkuInfoQueryReq;
import com.muyu.product.domain.req.ProjectSkuInfoSaveReq;
import com.muyu.product.domain.req.ProjectSkuInfoEditReq;
import com.muyu.product.service.ProjectSkuInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* SKUController
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "商品SKU")
@RestController
@RequestMapping("/sku")
public class ProjectSkuInfoController extends BaseController {
@Autowired
private ProjectSkuInfoService projectSkuInfoService;
/**
* SKU
*/
@ApiOperation("获取商品SKU列表")
@RequiresPermissions("product:sku:list")
@GetMapping("/list")
public Result<TableDataInfo<ProjectSkuInfo>> list(ProjectSkuInfoQueryReq projectSkuInfoQueryReq) {
startPage();
List<ProjectSkuInfo> list = projectSkuInfoService.list(ProjectSkuInfo.queryBuild(projectSkuInfoQueryReq));
return getDataTable(list);
}
/**
* SKU
*/
@ApiOperation("导出商品SKU列表")
@RequiresPermissions("product:sku:export")
@Log(title = "商品SKU", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProjectSkuInfo projectSkuInfo) {
List<ProjectSkuInfo> list = projectSkuInfoService.list(projectSkuInfo);
ExcelUtil<ProjectSkuInfo> util = new ExcelUtil<ProjectSkuInfo>(ProjectSkuInfo.class);
util.exportExcel(response, list, "商品SKU数据");
}
/**
* SKU
*/
@ApiOperation("获取商品SKU详细信息")
@RequiresPermissions("product:sku:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<ProjectSkuInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(projectSkuInfoService.getById(id));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:add")
@Log(title = "商品SKU", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品SKU")
public Result<String> add(@RequestBody ProjectSkuInfoSaveReq projectSkuInfoSaveReq) {
return toAjax(projectSkuInfoService.save(ProjectSkuInfo.saveBuild(projectSkuInfoSaveReq)));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:edit")
@Log(title = "商品SKU", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品SKU")
public Result<String> edit(@PathVariable Long id, @RequestBody ProjectSkuInfoEditReq projectSkuInfoEditReq) {
return toAjax(projectSkuInfoService.updateById(ProjectSkuInfo.editBuild(id,projectSkuInfoEditReq)));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:remove")
@Log(title = "商品SKU", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除商品SKU")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(projectSkuInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.RuleAttrInfo;
import com.muyu.product.domain.req.RuleAttrInfoQueryReq;
import com.muyu.product.domain.req.RuleAttrInfoSaveReq;
import com.muyu.product.domain.req.RuleAttrInfoEditReq;
import com.muyu.product.service.RuleAttrInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "规格详情")
@RestController
@RequestMapping("/ruleAttr")
public class RuleAttrInfoController extends BaseController {
@Autowired
private RuleAttrInfoService ruleAttrInfoService;
/**
*
*/
@ApiOperation("获取规格详情列表")
@RequiresPermissions("product:ruleAttr:list")
@GetMapping("/list")
public Result<TableDataInfo<RuleAttrInfo>> list(RuleAttrInfoQueryReq ruleAttrInfoQueryReq) {
startPage();
List<RuleAttrInfo> list = ruleAttrInfoService.list(RuleAttrInfo.queryBuild(ruleAttrInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出规格详情列表")
@RequiresPermissions("product:ruleAttr:export")
@Log(title = "规格详情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, RuleAttrInfo ruleAttrInfo) {
List<RuleAttrInfo> list = ruleAttrInfoService.list(ruleAttrInfo);
ExcelUtil<RuleAttrInfo> util = new ExcelUtil<RuleAttrInfo>(RuleAttrInfo.class);
util.exportExcel(response, list, "规格详情数据");
}
/**
*
*/
@ApiOperation("获取规格详情详细信息")
@RequiresPermissions("product:ruleAttr:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<RuleAttrInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(ruleAttrInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:add")
@Log(title = "规格详情", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增规格详情")
public Result<String> add(@RequestBody RuleAttrInfoSaveReq ruleAttrInfoSaveReq) {
return toAjax(ruleAttrInfoService.save(RuleAttrInfo.saveBuild(ruleAttrInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:edit")
@Log(title = "规格详情", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改规格详情")
public Result<String> edit(@PathVariable Long id, @RequestBody RuleAttrInfoEditReq ruleAttrInfoEditReq) {
return toAjax(ruleAttrInfoService.updateById(RuleAttrInfo.editBuild(id,ruleAttrInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:remove")
@Log(title = "规格详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除规格详情")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(ruleAttrInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.RuleInfo;
import com.muyu.product.domain.req.RuleInfoQueryReq;
import com.muyu.product.domain.req.RuleInfoSaveReq;
import com.muyu.product.domain.req.RuleInfoEditReq;
import com.muyu.product.service.RuleInfoService;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Api(tags = "商品规格")
@RestController
@RequestMapping("/rule")
public class RuleInfoController extends BaseController {
@Autowired
private RuleInfoService ruleInfoService;
/**
*
*/
@ApiOperation("获取商品规格列表")
@RequiresPermissions("product:rule:list")
@GetMapping("/list")
public Result<TableDataInfo<RuleInfo>> list(RuleInfoQueryReq ruleInfoQueryReq) {
startPage();
List<RuleInfo> list = ruleInfoService.list(RuleInfo.queryBuild(ruleInfoQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出商品规格列表")
@RequiresPermissions("product:rule:export")
@Log(title = "商品规格", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, RuleInfo ruleInfo) {
List<RuleInfo> list = ruleInfoService.list(ruleInfo);
ExcelUtil<RuleInfo> util = new ExcelUtil<RuleInfo>(RuleInfo.class);
util.exportExcel(response, list, "商品规格数据");
}
/**
*
*/
@ApiOperation("获取商品规格详细信息")
@RequiresPermissions("product:rule:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<RuleInfo> getInfo(@PathVariable("id") Long id) {
return Result.success(ruleInfoService.getById(id));
}
/**
*
*/
@RequiresPermissions("product:rule:add")
@Log(title = "商品规格", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增商品规格")
public Result<String> add(@RequestBody RuleInfoSaveReq ruleInfoSaveReq) {
return toAjax(ruleInfoService.save(RuleInfo.saveBuild(ruleInfoSaveReq)));
}
/**
*
*/
@RequiresPermissions("product:rule:edit")
@Log(title = "商品规格", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改商品规格")
public Result<String> edit(@PathVariable Long id, @RequestBody RuleInfoEditReq ruleInfoEditReq) {
return toAjax(ruleInfoService.updateById(RuleInfo.editBuild(id,ruleInfoEditReq)));
}
/**
*
*/
@RequiresPermissions("product:rule:remove")
@Log(title = "商品规格", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除商品规格")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(ruleInfoService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsBrandProject;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsBrandProjectMapper extends BaseMapper<AsBrandProject> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsCategoryAttributeGroup;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryAttributeGroupMapper extends BaseMapper<AsCategoryAttributeGroup> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsCategoryAttribute;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryAttributeMapper extends BaseMapper<AsCategoryAttribute> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsCategoryBrand;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryBrandMapper extends BaseMapper<AsCategoryBrand> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsProductAttributeInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsProductAttributeInfoMapper extends BaseMapper<AsProductAttributeInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AttributeGroup;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AttributeGroupMapper extends BaseMapper<AttributeGroup> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AttributeInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AttributeInfoMapper extends BaseMapper<AttributeInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.BrandInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface BrandInfoMapper extends BaseMapper<BrandInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CategoryInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CategoryInfoMapper extends BaseMapper<CategoryInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CommentInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CommentInfoMapper extends BaseMapper<CommentInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CommentLikeInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CommentLikeInfoMapper extends BaseMapper<CommentLikeInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.ProjectInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.ProjectSkuInfo;
/**
* SKUMapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface ProjectSkuInfoMapper extends BaseMapper<ProjectSkuInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.RuleAttrInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface RuleAttrInfoMapper extends BaseMapper<RuleAttrInfo> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.product.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.RuleInfo;
/**
* Mapper
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface RuleInfoMapper extends BaseMapper<RuleInfo> {
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsBrandProject;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsBrandProjectService extends IService<AsBrandProject> {
/**
*
*
* @param asBrandProject
* @return
*/
public List<AsBrandProject> list(AsBrandProject asBrandProject);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttributeGroup;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryAttributeGroupService extends IService<AsCategoryAttributeGroup> {
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public List<AsCategoryAttributeGroup> list(AsCategoryAttributeGroup asCategoryAttributeGroup);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttribute;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryAttributeService extends IService<AsCategoryAttribute> {
/**
*
*
* @param asCategoryAttribute
* @return
*/
public List<AsCategoryAttribute> list(AsCategoryAttribute asCategoryAttribute);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryBrand;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsCategoryBrandService extends IService<AsCategoryBrand> {
/**
*
*
* @param asCategoryBrand
* @return
*/
public List<AsCategoryBrand> list(AsCategoryBrand asCategoryBrand);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsProductAttributeInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsProductAttributeInfoService extends IService<AsProductAttributeInfo> {
/**
*
*
* @param asProductAttributeInfo
* @return
*/
public List<AsProductAttributeInfo> list(AsProductAttributeInfo asProductAttributeInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AttributeGroup;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AttributeGroupService extends IService<AttributeGroup> {
/**
*
*
* @param attributeGroup
* @return
*/
public List<AttributeGroup> list(AttributeGroup attributeGroup);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AttributeInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AttributeInfoService extends IService<AttributeInfo> {
/**
*
*
* @param attributeInfo
* @return
*/
public List<AttributeInfo> list(AttributeInfo attributeInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.BrandInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface BrandInfoService extends IService<BrandInfo> {
/**
*
*
* @param brandInfo
* @return
*/
public List<BrandInfo> list(BrandInfo brandInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CategoryInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CategoryInfoService extends IService<CategoryInfo> {
/**
*
*
* @param categoryInfo
* @return
*/
public List<CategoryInfo> list(CategoryInfo categoryInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CommentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CommentInfoService extends IService<CommentInfo> {
/**
*
*
* @param commentInfo
* @return
*/
public List<CommentInfo> list(CommentInfo commentInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CommentLikeInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface CommentLikeInfoService extends IService<CommentLikeInfo> {
/**
*
*
* @param commentLikeInfo
* @return
*/
public List<CommentLikeInfo> list(CommentLikeInfo commentLikeInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.ProjectInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface ProjectInfoService extends IService<ProjectInfo> {
/**
*
*
* @param projectInfo
* @return
*/
public List<ProjectInfo> list(ProjectInfo projectInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.ProjectSkuInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* SKUService
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface ProjectSkuInfoService extends IService<ProjectSkuInfo> {
/**
* SKU
*
* @param projectSkuInfo SKU
* @return SKU
*/
public List<ProjectSkuInfo> list(ProjectSkuInfo projectSkuInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.RuleAttrInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface RuleAttrInfoService extends IService<RuleAttrInfo> {
/**
*
*
* @param ruleAttrInfo
* @return
*/
public List<RuleAttrInfo> list(RuleAttrInfo ruleAttrInfo);
}

View File

@ -0,0 +1,22 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.RuleInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface RuleInfoService extends IService<RuleInfo> {
/**
*
*
* @param ruleInfo
* @return
*/
public List<RuleInfo> list(RuleInfo ruleInfo);
}

View File

@ -0,0 +1,49 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsBrandProjectMapper;
import com.muyu.product.domain.AsBrandProject;
import com.muyu.product.service.AsBrandProjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AsBrandProjectServiceImpl extends ServiceImpl<AsBrandProjectMapper, AsBrandProject> implements AsBrandProjectService {
/**
*
*
* @param asBrandProject
* @return
*/
@Override
public List<AsBrandProject> list(AsBrandProject asBrandProject) {
LambdaQueryWrapper<AsBrandProject> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asBrandProject.getBrandId())){
queryWrapper.eq(AsBrandProject::getBrandId, asBrandProject.getBrandId());
}
if (ObjUtils.notNull(asBrandProject.getProjectId())){
queryWrapper.eq(AsBrandProject::getProjectId, asBrandProject.getProjectId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,49 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryAttributeGroupMapper;
import com.muyu.product.domain.AsCategoryAttributeGroup;
import com.muyu.product.service.AsCategoryAttributeGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AsCategoryAttributeGroupServiceImpl extends ServiceImpl<AsCategoryAttributeGroupMapper, AsCategoryAttributeGroup> implements AsCategoryAttributeGroupService {
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
@Override
public List<AsCategoryAttributeGroup> list(AsCategoryAttributeGroup asCategoryAttributeGroup) {
LambdaQueryWrapper<AsCategoryAttributeGroup> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asCategoryAttributeGroup.getCategoryId())){
queryWrapper.eq(AsCategoryAttributeGroup::getCategoryId, asCategoryAttributeGroup.getCategoryId());
}
if (ObjUtils.notNull(asCategoryAttributeGroup.getAttributeGroupId())){
queryWrapper.eq(AsCategoryAttributeGroup::getAttributeGroupId, asCategoryAttributeGroup.getAttributeGroupId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,49 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryAttributeMapper;
import com.muyu.product.domain.AsCategoryAttribute;
import com.muyu.product.service.AsCategoryAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AsCategoryAttributeServiceImpl extends ServiceImpl<AsCategoryAttributeMapper, AsCategoryAttribute> implements AsCategoryAttributeService {
/**
*
*
* @param asCategoryAttribute
* @return
*/
@Override
public List<AsCategoryAttribute> list(AsCategoryAttribute asCategoryAttribute) {
LambdaQueryWrapper<AsCategoryAttribute> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asCategoryAttribute.getCategoryId())){
queryWrapper.eq(AsCategoryAttribute::getCategoryId, asCategoryAttribute.getCategoryId());
}
if (ObjUtils.notNull(asCategoryAttribute.getAttributeId())){
queryWrapper.eq(AsCategoryAttribute::getAttributeId, asCategoryAttribute.getAttributeId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,49 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryBrandMapper;
import com.muyu.product.domain.AsCategoryBrand;
import com.muyu.product.service.AsCategoryBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AsCategoryBrandServiceImpl extends ServiceImpl<AsCategoryBrandMapper, AsCategoryBrand> implements AsCategoryBrandService {
/**
*
*
* @param asCategoryBrand
* @return
*/
@Override
public List<AsCategoryBrand> list(AsCategoryBrand asCategoryBrand) {
LambdaQueryWrapper<AsCategoryBrand> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asCategoryBrand.getCategoryId())){
queryWrapper.eq(AsCategoryBrand::getCategoryId, asCategoryBrand.getCategoryId());
}
if (ObjUtils.notNull(asCategoryBrand.getBrandId())){
queryWrapper.eq(AsCategoryBrand::getBrandId, asCategoryBrand.getBrandId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,59 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsProductAttributeInfoMapper;
import com.muyu.product.domain.AsProductAttributeInfo;
import com.muyu.product.service.AsProductAttributeInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AsProductAttributeInfoServiceImpl extends ServiceImpl<AsProductAttributeInfoMapper, AsProductAttributeInfo> implements AsProductAttributeInfoService {
/**
*
*
* @param asProductAttributeInfo
* @return
*/
@Override
public List<AsProductAttributeInfo> list(AsProductAttributeInfo asProductAttributeInfo) {
LambdaQueryWrapper<AsProductAttributeInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asProductAttributeInfo.getProductId())){
queryWrapper.eq(AsProductAttributeInfo::getProductId, asProductAttributeInfo.getProductId());
}
if (ObjUtils.notNull(asProductAttributeInfo.getAttributeId())){
queryWrapper.eq(AsProductAttributeInfo::getAttributeId, asProductAttributeInfo.getAttributeId());
}
if (ObjUtils.notNull(asProductAttributeInfo.getValue())){
queryWrapper.eq(AsProductAttributeInfo::getValue, asProductAttributeInfo.getValue());
}
if (ObjUtils.notNull(asProductAttributeInfo.getUpdataBy())){
queryWrapper.eq(AsProductAttributeInfo::getUpdataBy, asProductAttributeInfo.getUpdataBy());
}
if (ObjUtils.notNull(asProductAttributeInfo.getUpdataTime())){
queryWrapper.eq(AsProductAttributeInfo::getUpdataTime, asProductAttributeInfo.getUpdataTime());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,55 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AttributeGroupMapper;
import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.service.AttributeGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AttributeGroupServiceImpl extends ServiceImpl<AttributeGroupMapper, AttributeGroup> implements AttributeGroupService {
/**
*
*
* @param attributeGroup
* @return
*/
@Override
public List<AttributeGroup> list(AttributeGroup attributeGroup) {
LambdaQueryWrapper<AttributeGroup> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(attributeGroup.getName())){
queryWrapper.like(AttributeGroup::getName, attributeGroup.getName());
}
if (ObjUtils.notNull(attributeGroup.getStates())){
queryWrapper.eq(AttributeGroup::getStates, attributeGroup.getStates());
}
if (ObjUtils.notNull(attributeGroup.getUpdataBy())){
queryWrapper.eq(AttributeGroup::getUpdataBy, attributeGroup.getUpdataBy());
}
if (ObjUtils.notNull(attributeGroup.getUpdataTime())){
queryWrapper.eq(AttributeGroup::getUpdataTime, attributeGroup.getUpdataTime());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,55 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AttributeInfoMapper;
import com.muyu.product.domain.AttributeInfo;
import com.muyu.product.service.AttributeInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class AttributeInfoServiceImpl extends ServiceImpl<AttributeInfoMapper, AttributeInfo> implements AttributeInfoService {
/**
*
*
* @param attributeInfo
* @return
*/
@Override
public List<AttributeInfo> list(AttributeInfo attributeInfo) {
LambdaQueryWrapper<AttributeInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(attributeInfo.getName())){
queryWrapper.like(AttributeInfo::getName, attributeInfo.getName());
}
if (ObjUtils.notNull(attributeInfo.getGroupId())){
queryWrapper.eq(AttributeInfo::getGroupId, attributeInfo.getGroupId());
}
if (ObjUtils.notNull(attributeInfo.getUpdataBy())){
queryWrapper.eq(AttributeInfo::getUpdataBy, attributeInfo.getUpdataBy());
}
if (ObjUtils.notNull(attributeInfo.getUpdataTime())){
queryWrapper.eq(AttributeInfo::getUpdataTime, attributeInfo.getUpdataTime());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,57 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.BrandInfoMapper;
import com.muyu.product.domain.BrandInfo;
import com.muyu.product.service.BrandInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class BrandInfoServiceImpl extends ServiceImpl<BrandInfoMapper, BrandInfo> implements BrandInfoService {
/**
*
*
* @param brandInfo
* @return
*/
@Override
public List<BrandInfo> list(BrandInfo brandInfo) {
LambdaQueryWrapper<BrandInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(brandInfo.getNam())){
queryWrapper.eq(BrandInfo::getNam, brandInfo.getNam());
}
if (ObjUtils.notNull(brandInfo.getLogo())){
queryWrapper.eq(BrandInfo::getLogo, brandInfo.getLogo());
}
if (ObjUtils.notNull(brandInfo.getStart())){
queryWrapper.eq(BrandInfo::getStart, brandInfo.getStart());
}
if (ObjUtils.notNull(brandInfo.getIntroduction())){
queryWrapper.eq(BrandInfo::getIntroduction, brandInfo.getIntroduction());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CategoryInfoMapper;
import com.muyu.product.domain.CategoryInfo;
import com.muyu.product.service.CategoryInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class CategoryInfoServiceImpl extends ServiceImpl<CategoryInfoMapper, CategoryInfo> implements CategoryInfoService {
/**
*
*
* @param categoryInfo
* @return
*/
@Override
public List<CategoryInfo> list(CategoryInfo categoryInfo) {
LambdaQueryWrapper<CategoryInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(categoryInfo.getName())){
queryWrapper.like(CategoryInfo::getName, categoryInfo.getName());
}
if (ObjUtils.notNull(categoryInfo.getImage())){
queryWrapper.eq(CategoryInfo::getImage, categoryInfo.getImage());
}
if (ObjUtils.notNull(categoryInfo.getParentId())){
queryWrapper.eq(CategoryInfo::getParentId, categoryInfo.getParentId());
}
if (ObjUtils.notNull(categoryInfo.getStart())){
queryWrapper.eq(CategoryInfo::getStart, categoryInfo.getStart());
}
if (ObjUtils.notNull(categoryInfo.getIntroduction())){
queryWrapper.eq(CategoryInfo::getIntroduction, categoryInfo.getIntroduction());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,57 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CommentInfoMapper;
import com.muyu.product.domain.CommentInfo;
import com.muyu.product.service.CommentInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class CommentInfoServiceImpl extends ServiceImpl<CommentInfoMapper, CommentInfo> implements CommentInfoService {
/**
*
*
* @param commentInfo
* @return
*/
@Override
public List<CommentInfo> list(CommentInfo commentInfo) {
LambdaQueryWrapper<CommentInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(commentInfo.getProjectId())){
queryWrapper.eq(CommentInfo::getProjectId, commentInfo.getProjectId());
}
if (ObjUtils.notNull(commentInfo.getComment())){
queryWrapper.eq(CommentInfo::getComment, commentInfo.getComment());
}
if (ObjUtils.notNull(commentInfo.getImages())){
queryWrapper.eq(CommentInfo::getImages, commentInfo.getImages());
}
if (ObjUtils.notNull(commentInfo.getParentId())){
queryWrapper.eq(CommentInfo::getParentId, commentInfo.getParentId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,49 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CommentLikeInfoMapper;
import com.muyu.product.domain.CommentLikeInfo;
import com.muyu.product.service.CommentLikeInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class CommentLikeInfoServiceImpl extends ServiceImpl<CommentLikeInfoMapper, CommentLikeInfo> implements CommentLikeInfoService {
/**
*
*
* @param commentLikeInfo
* @return
*/
@Override
public List<CommentLikeInfo> list(CommentLikeInfo commentLikeInfo) {
LambdaQueryWrapper<CommentLikeInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(commentLikeInfo.getCommentId())){
queryWrapper.eq(CommentLikeInfo::getCommentId, commentLikeInfo.getCommentId());
}
if (ObjUtils.notNull(commentLikeInfo.getUserId())){
queryWrapper.eq(CommentLikeInfo::getUserId, commentLikeInfo.getUserId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,81 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.ProjectInfoMapper;
import com.muyu.product.domain.ProjectInfo;
import com.muyu.product.service.ProjectInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, ProjectInfo> implements ProjectInfoService {
/**
*
*
* @param projectInfo
* @return
*/
@Override
public List<ProjectInfo> list(ProjectInfo projectInfo) {
LambdaQueryWrapper<ProjectInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(projectInfo.getName())){
queryWrapper.like(ProjectInfo::getName, projectInfo.getName());
}
if (ObjUtils.notNull(projectInfo.getIntroduction())){
queryWrapper.eq(ProjectInfo::getIntroduction, projectInfo.getIntroduction());
}
if (ObjUtils.notNull(projectInfo.getMianType())){
queryWrapper.eq(ProjectInfo::getMianType, projectInfo.getMianType());
}
if (ObjUtils.notNull(projectInfo.getParentType())){
queryWrapper.eq(ProjectInfo::getParentType, projectInfo.getParentType());
}
if (ObjUtils.notNull(projectInfo.getType())){
queryWrapper.eq(ProjectInfo::getType, projectInfo.getType());
}
if (ObjUtils.notNull(projectInfo.getImage())){
queryWrapper.eq(ProjectInfo::getImage, projectInfo.getImage());
}
if (ObjUtils.notNull(projectInfo.getCarouselImages())){
queryWrapper.eq(ProjectInfo::getCarouselImages, projectInfo.getCarouselImages());
}
if (ObjUtils.notNull(projectInfo.getStatus())){
queryWrapper.eq(ProjectInfo::getStatus, projectInfo.getStatus());
}
if (ObjUtils.notNull(projectInfo.getRuleId())){
queryWrapper.eq(ProjectInfo::getRuleId, projectInfo.getRuleId());
}
if (ObjUtils.notNull(projectInfo.getBrandId())){
queryWrapper.eq(ProjectInfo::getBrandId, projectInfo.getBrandId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.ProjectSkuInfoMapper;
import com.muyu.product.domain.ProjectSkuInfo;
import com.muyu.product.service.ProjectSkuInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* SKUService
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class ProjectSkuInfoServiceImpl extends ServiceImpl<ProjectSkuInfoMapper, ProjectSkuInfo> implements ProjectSkuInfoService {
/**
* SKU
*
* @param projectSkuInfo SKU
* @return SKU
*/
@Override
public List<ProjectSkuInfo> list(ProjectSkuInfo projectSkuInfo) {
LambdaQueryWrapper<ProjectSkuInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(projectSkuInfo.getProjectId())){
queryWrapper.eq(ProjectSkuInfo::getProjectId, projectSkuInfo.getProjectId());
}
if (ObjUtils.notNull(projectSkuInfo.getSku())){
queryWrapper.eq(ProjectSkuInfo::getSku, projectSkuInfo.getSku());
}
if (ObjUtils.notNull(projectSkuInfo.getStock())){
queryWrapper.eq(ProjectSkuInfo::getStock, projectSkuInfo.getStock());
}
if (ObjUtils.notNull(projectSkuInfo.getPrice())){
queryWrapper.eq(ProjectSkuInfo::getPrice, projectSkuInfo.getPrice());
}
if (ObjUtils.notNull(projectSkuInfo.getImage())){
queryWrapper.eq(ProjectSkuInfo::getImage, projectSkuInfo.getImage());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,53 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.RuleAttrInfoMapper;
import com.muyu.product.domain.RuleAttrInfo;
import com.muyu.product.service.RuleAttrInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
@Slf4j
@Service
public class RuleAttrInfoServiceImpl extends ServiceImpl<RuleAttrInfoMapper, RuleAttrInfo> implements RuleAttrInfoService {
/**
*
*
* @param ruleAttrInfo
* @return
*/
@Override
public List<RuleAttrInfo> list(RuleAttrInfo ruleAttrInfo) {
LambdaQueryWrapper<RuleAttrInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(ruleAttrInfo.getRuleId())){
queryWrapper.eq(RuleAttrInfo::getRuleId, ruleAttrInfo.getRuleId());
}
if (ObjUtils.notNull(ruleAttrInfo.getName())){
queryWrapper.like(RuleAttrInfo::getName, ruleAttrInfo.getName());
}
if (ObjUtils.notNull(ruleAttrInfo.getAttrValue())){
queryWrapper.eq(RuleAttrInfo::getAttrValue, ruleAttrInfo.getAttrValue());
}
return list(queryWrapper);
}
}

Some files were not shown because too many files have changed in this diff Show More