商品属性组、品类完成
parent
3d2c517729
commit
42963e7d20
|
@ -0,0 +1,65 @@
|
|||
package com.muyu.common.core.utils;
|
||||
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 对象工具类
|
||||
* @Date 2023-10-9 下午 04:56
|
||||
*/
|
||||
public class ObjUtils {
|
||||
|
||||
/**
|
||||
* 兼容
|
||||
* CharSequence: 如果长度为零,则认为为空。
|
||||
* Array: 如果长度为零,则认为为空。
|
||||
* Collection: 如果元素为零,则认为为空。
|
||||
* Map: 如果键值映射为零,则认为为空。
|
||||
* @param o 对象
|
||||
* @return 如果对象具有受支持的类型并且为空或null,则为true,否则为false
|
||||
*/
|
||||
public static boolean notNull(Object o){
|
||||
return ObjectUtils.isNotEmpty(o);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断long类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(Long val){
|
||||
return ObjectUtils.isNotEmpty(val) && val != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断Integer类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(Integer val){
|
||||
return ObjectUtils.isNotEmpty(val) && val != 0;
|
||||
}
|
||||
/**
|
||||
* 判断BigDecimal类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(BigDecimal val){
|
||||
return ObjectUtils.isNotEmpty(val) && val.doubleValue() == 0.00;
|
||||
}
|
||||
/**
|
||||
* 判断BigDecimal类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notChildNull(Object[] val){
|
||||
for (Object o : val) {
|
||||
if (!notNull(o)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,70 +1,60 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 属性与组中间对象 as_attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-03-01
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AsAttributeGroup extends BaseEntity
|
||||
{
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("as_attribute_group")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "AsAttributeGroup", description = "属性与组中间")
|
||||
public class AsAttributeGroup extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private Long id;
|
||||
|
||||
/** 组id */
|
||||
@Excel(name = "组id")
|
||||
/** 组ID */
|
||||
@Excel(name = "组ID")
|
||||
@ApiModelProperty(name = "组ID", value = "组ID", required = true)
|
||||
private Long groupId;
|
||||
|
||||
/** 属性id */
|
||||
@Excel(name = "属性id")
|
||||
@ApiModelProperty(name = "属性id", value = "属性id", required = true)
|
||||
private Long attributeId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGroupId(Long groupId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
public void setAttributeId(Long attributeId)
|
||||
{
|
||||
this.attributeId = attributeId;
|
||||
}
|
||||
|
||||
public Long getAttributeId()
|
||||
{
|
||||
return attributeId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("groupId", getGroupId())
|
||||
.append("attributeId", getAttributeId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
public static AsAttributeGroup buildGroup (Long attributeGroupId,
|
||||
Long attributeId, String username) {
|
||||
return AsAttributeGroup.builder()
|
||||
.groupId(attributeGroupId)
|
||||
.attributeId(attributeId)
|
||||
.createBy(username)
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,48 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品牌商品中间对象 as_brand_project
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AsBrandProject extends BaseEntity
|
||||
{
|
||||
@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")
|
||||
private Long projectId;
|
||||
@ApiModelProperty(name = "商品id", value = "商品id", required = true)
|
||||
private String projectId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setBrandId(Long brandId)
|
||||
{
|
||||
this.brandId = brandId;
|
||||
}
|
||||
|
||||
public Long getBrandId()
|
||||
{
|
||||
return brandId;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("brandId", getBrandId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", SecurityUtils.getUsername())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,61 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.base.CategoryBase;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品类属性中间对象 as_category_attribute
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AsCategoryAttribute extends BaseEntity
|
||||
{
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("as_category_attribute")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "AsCategoryAttribute", description = "品类属性中间")
|
||||
public class AsCategoryAttribute extends BaseEntity implements CategoryBase {
|
||||
|
||||
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;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setAttributeId(Long attributeId)
|
||||
{
|
||||
this.attributeId = attributeId;
|
||||
}
|
||||
|
||||
public Long getAttributeId()
|
||||
{
|
||||
return attributeId;
|
||||
public static AsCategoryAttribute categoryBuild(Long categoryInfoId, Long attributeId) {
|
||||
return AsCategoryAttribute.builder()
|
||||
.categoryId(categoryInfoId)
|
||||
.attributeId(attributeId)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("attributeId", getAttributeId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
public Long getBaseId () {
|
||||
return this.attributeId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,61 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.base.CategoryBase;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品类属性组中间对象 as_category_attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AsCategoryAttributeGroup extends BaseEntity
|
||||
{
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("as_category_attribute_group")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "AsCategoryAttributeGroup", description = "品类属性组中间")
|
||||
public class AsCategoryAttributeGroup extends BaseEntity implements CategoryBase {
|
||||
|
||||
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;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setAttributeGroupId(Long attributeGroupId)
|
||||
{
|
||||
this.attributeGroupId = attributeGroupId;
|
||||
}
|
||||
|
||||
public Long getAttributeGroupId()
|
||||
{
|
||||
return attributeGroupId;
|
||||
public static AsCategoryAttributeGroup categoryBuild(Long categoryInfoId, Long attributeGroupId) {
|
||||
return AsCategoryAttributeGroup.builder()
|
||||
.attributeGroupId(attributeGroupId)
|
||||
.categoryId(categoryInfoId)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("attributeGroupId", getAttributeGroupId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
public Long getBaseId () {
|
||||
return this.attributeGroupId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,60 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.base.CategoryBase;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品类品牌中间对象 as_category_brand
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AsCategoryBrand extends BaseEntity
|
||||
{
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("as_category_brand")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "AsCategoryBrand", description = "品类品牌中间")
|
||||
public class AsCategoryBrand extends BaseEntity implements CategoryBase {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "主键", value = "主键")
|
||||
private Long id;
|
||||
|
||||
/** 品类 */
|
||||
@Excel(name = "品类")
|
||||
/** 品类id */
|
||||
@Excel(name = "品类id")
|
||||
@ApiModelProperty(name = "品类id", value = "品类id", required = true)
|
||||
private Long categoryId;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
/** 品牌id */
|
||||
@Excel(name = "品牌id")
|
||||
@ApiModelProperty(name = "品牌id", value = "品牌id", required = true)
|
||||
private Long brandId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setBrandId(Long brandId)
|
||||
{
|
||||
this.brandId = brandId;
|
||||
}
|
||||
|
||||
public Long getBrandId()
|
||||
{
|
||||
return brandId;
|
||||
public static AsCategoryBrand categoryBuild(Long categoryInfoId, Long brandId) {
|
||||
return AsCategoryBrand.builder()
|
||||
.brandId(brandId)
|
||||
.categoryId(categoryInfoId)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("brandId", getBrandId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
public Long getBaseId () {
|
||||
return this.brandId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品属性对象 as_product_attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -1,85 +0,0 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 属性信息对象 as_produt_attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public class AsProdutAttributeInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 商品 */
|
||||
@Excel(name = "商品")
|
||||
private Long productId;
|
||||
|
||||
/** 属性 */
|
||||
@Excel(name = "属性")
|
||||
private String attributeId;
|
||||
|
||||
/** 属性值 */
|
||||
@Excel(name = "属性值")
|
||||
private String value;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProductId(Long productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
public void setAttributeId(String attributeId)
|
||||
{
|
||||
this.attributeId = attributeId;
|
||||
}
|
||||
|
||||
public String getAttributeId()
|
||||
{
|
||||
return attributeId;
|
||||
}
|
||||
public void setValue(String value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("productId", getProductId())
|
||||
.append("attributeId", getAttributeId())
|
||||
.append("value", getValue())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -1,71 +1,83 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.AttributeGroupEditReq;
|
||||
import com.muyu.product.domain.req.AttributeGroupQueryReq;
|
||||
import com.muyu.product.domain.req.AttributeGroupSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 属性组对象 attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AttributeGroup extends BaseEntity
|
||||
{
|
||||
@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 = "状态")
|
||||
private String status;
|
||||
@ApiModelProperty(name = "状态", value = "状态", required = true)
|
||||
private String states;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static AttributeGroup queryBuild( AttributeGroupQueryReq attributeGroupQueryReq){
|
||||
return AttributeGroup.builder()
|
||||
.name(attributeGroupQueryReq.getName())
|
||||
.states(attributeGroupQueryReq.getStates())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static AttributeGroup saveBuild(AttributeGroupSaveReq attributeGroupSaveReq){
|
||||
return AttributeGroup.builder()
|
||||
.name(attributeGroupSaveReq.getName())
|
||||
.states(attributeGroupSaveReq.getStates())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static AttributeGroup editBuild(Long id, AttributeGroupEditReq attributeGroupEditReq){
|
||||
return AttributeGroup.builder()
|
||||
.id(id)
|
||||
.name(attributeGroupEditReq.getName())
|
||||
.states(attributeGroupEditReq.getStates())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("status", getStatus())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,70 +1,83 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.AttributeInfoEditReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoQueryReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品属性对象 attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-03-01
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class AttributeInfo extends BaseEntity
|
||||
{
|
||||
@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 code;
|
||||
|
||||
/** 属性名称 */
|
||||
@Excel(name = "属性名称")
|
||||
/** 属性名 */
|
||||
@Excel(name = "属性名")
|
||||
@ApiModelProperty(name = "属性名", value = "属性名", required = true)
|
||||
private String name;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){
|
||||
return AttributeInfo.builder()
|
||||
.name(attributeInfoQueryReq.getName())
|
||||
.code(attributeInfoQueryReq.getCode())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static AttributeInfo saveBuild(AttributeInfoSaveReq attributeInfoSaveReq){
|
||||
return AttributeInfo.builder()
|
||||
.name(attributeInfoSaveReq.getName())
|
||||
.code(attributeInfoSaveReq.getCode())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static AttributeInfo editBuild(Long id, AttributeInfoEditReq attributeInfoEditReq){
|
||||
return AttributeInfo.builder()
|
||||
.id(id)
|
||||
.name(attributeInfoEditReq.getName())
|
||||
.code(attributeInfoEditReq.getCode())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("name", getName())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,99 +1,114 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.BrandInfoEditReq;
|
||||
import com.muyu.product.domain.req.BrandInfoQueryReq;
|
||||
import com.muyu.product.domain.req.BrandInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品品牌对象 brand_info
|
||||
* 品牌信息对象 brand_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class BrandInfo extends BaseEntity
|
||||
{
|
||||
@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 = "品牌名称")
|
||||
private String name;
|
||||
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
|
||||
private String nam;
|
||||
|
||||
/** Logo */
|
||||
@Excel(name = "Logo")
|
||||
/**
|
||||
* LOGO
|
||||
*/
|
||||
@Excel(name = "LOGO")
|
||||
@ApiModelProperty(name = "LOGO", value = "LOGO", required = true)
|
||||
private String logo;
|
||||
|
||||
/** 介绍 */
|
||||
@Excel(name = "介绍")
|
||||
private String introduction;
|
||||
|
||||
/** 是否启用 */
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@Excel(name = "是否启用")
|
||||
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
|
||||
private String start;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 介绍
|
||||
*/
|
||||
@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 Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static BrandInfo saveBuild(BrandInfoSaveReq brandInfoSaveReq) {
|
||||
return BrandInfo.builder()
|
||||
.nam(brandInfoSaveReq.getNam())
|
||||
.logo(brandInfoSaveReq.getLogo())
|
||||
.start(brandInfoSaveReq.getStart())
|
||||
.introduction(brandInfoSaveReq.getIntroduction())
|
||||
.remark(brandInfoSaveReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setLogo(String logo)
|
||||
{
|
||||
this.logo = logo;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
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())
|
||||
.createBy(brandInfoEditReq.getCreateBy())
|
||||
.createTime(brandInfoEditReq.getCreateTime())
|
||||
.updateBy(brandInfoEditReq.getUpdateBy())
|
||||
.createTime(brandInfoEditReq.getCreateTime())
|
||||
.remark(brandInfoEditReq.getRemark())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getLogo()
|
||||
{
|
||||
return logo;
|
||||
}
|
||||
public void setIntroduction(String introduction)
|
||||
{
|
||||
this.introduction = introduction;
|
||||
}
|
||||
|
||||
public String getIntroduction()
|
||||
{
|
||||
return introduction;
|
||||
}
|
||||
public void setStart(String start)
|
||||
{
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public String getStart()
|
||||
{
|
||||
return start;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("logo", getLogo())
|
||||
.append("introduction", getIntroduction())
|
||||
.append("start", getStart())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,113 +1,116 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import com.muyu.product.domain.model.CategoryInfoSaveModel;
|
||||
import com.muyu.product.domain.req.CategoryInfoEditReq;
|
||||
import com.muyu.product.domain.req.CategoryInfoQueryReq;
|
||||
import com.muyu.product.domain.req.CategoryInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* 品类信息对象 category_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class CategoryInfo extends BaseEntity
|
||||
{
|
||||
@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 = "父级品类")
|
||||
private Long parentId;
|
||||
|
||||
/** 是否启用 */
|
||||
@Excel(name = "是否启用")
|
||||
@ApiModelProperty(name = "是否启用", value = "是否启用", required = true)
|
||||
private String start;
|
||||
|
||||
/** 介绍 */
|
||||
@Excel(name = "介绍")
|
||||
private String introductoin;
|
||||
@ApiModelProperty(name = "介绍", value = "介绍")
|
||||
private String introduction;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static CategoryInfo queryBuild( CategoryInfoQueryReq categoryInfoQueryReq){
|
||||
return CategoryInfo.builder()
|
||||
.name(categoryInfoQueryReq.getName())
|
||||
.image(categoryInfoQueryReq.getImage())
|
||||
.start(categoryInfoQueryReq.getStart())
|
||||
.introduction(categoryInfoQueryReq.getIntroduction())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static CategoryInfo saveBuild(CategoryInfoSaveReq categoryInfoSaveReq, Supplier<String> supplier){
|
||||
return CategoryInfo.builder()
|
||||
.name(categoryInfoSaveReq.getName())
|
||||
.image(categoryInfoSaveReq.getImage())
|
||||
.start(categoryInfoSaveReq.getStart())
|
||||
.introduction(categoryInfoSaveReq.getIntroduction())
|
||||
.parentId(categoryInfoSaveReq.getParentId())
|
||||
.createBy(supplier.get())
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setStart(String start)
|
||||
{
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public String getStart()
|
||||
{
|
||||
return start;
|
||||
}
|
||||
public void setIntroductoin(String introductoin)
|
||||
{
|
||||
this.introductoin = introductoin;
|
||||
}
|
||||
|
||||
public String getIntroductoin()
|
||||
{
|
||||
return introductoin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("image", getImage())
|
||||
.append("parentId", getParentId())
|
||||
.append("start", getStart())
|
||||
.append("introductoin", getIntroductoin())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
public static CategoryInfo saveModelBuild(CategoryInfoSaveModel categoryInfoSaveModel) {
|
||||
return CategoryInfo.builder()
|
||||
.name(categoryInfoSaveModel.getName())
|
||||
.image(categoryInfoSaveModel.getImage())
|
||||
.start(categoryInfoSaveModel.getStart())
|
||||
.introduction(categoryInfoSaveModel.getIntroduction())
|
||||
.parentId(categoryInfoSaveModel.getParentId())
|
||||
.createBy(categoryInfoSaveModel.getCreateBy())
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,99 +1,98 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.CommentInfoEditReq;
|
||||
import com.muyu.product.domain.req.CommentInfoQueryReq;
|
||||
import com.muyu.product.domain.req.CommentInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品评论对象 comment_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class CommentInfo extends BaseEntity
|
||||
{
|
||||
@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 = "评价")
|
||||
/** 评论 */
|
||||
@Excel(name = "评论")
|
||||
@ApiModelProperty(name = "评论", value = "评论")
|
||||
private String comment;
|
||||
|
||||
/** 图片 */
|
||||
@Excel(name = "图片")
|
||||
private String image;
|
||||
@ApiModelProperty(name = "图片", value = "图片")
|
||||
private String images;
|
||||
|
||||
/** 父类id */
|
||||
@Excel(name = "父类id")
|
||||
private Long parentId;
|
||||
@ApiModelProperty(name = "父类id", value = "父类id")
|
||||
private String parentId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static CommentInfo queryBuild( CommentInfoQueryReq commentInfoQueryReq){
|
||||
return CommentInfo.builder()
|
||||
.projectId(commentInfoQueryReq.getProjectId())
|
||||
.comment(commentInfoQueryReq.getComment())
|
||||
.images(commentInfoQueryReq.getImages())
|
||||
.parentId(commentInfoQueryReq.getParentId())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static CommentInfo saveBuild(CommentInfoSaveReq commentInfoSaveReq){
|
||||
return CommentInfo.builder()
|
||||
.projectId(commentInfoSaveReq.getProjectId())
|
||||
.comment(commentInfoSaveReq.getComment())
|
||||
.images(commentInfoSaveReq.getImages())
|
||||
.parentId(commentInfoSaveReq.getParentId())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setComment(String comment)
|
||||
{
|
||||
this.comment = comment;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
public String getComment()
|
||||
{
|
||||
return comment;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comment", getComment())
|
||||
.append("image", getImage())
|
||||
.append("parentId", getParentId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,82 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoEditReq;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoQueryReq;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 评论点赞对象 comment_like_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class CommentLikeInfo extends BaseEntity
|
||||
{
|
||||
@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 void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static CommentLikeInfo queryBuild( CommentLikeInfoQueryReq commentLikeInfoQueryReq){
|
||||
return CommentLikeInfo.builder()
|
||||
.commentId(commentLikeInfoQueryReq.getCommentId())
|
||||
.userId(commentLikeInfoQueryReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCommentId(Long commentId)
|
||||
{
|
||||
this.commentId = commentId;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static CommentLikeInfo saveBuild(CommentLikeInfoSaveReq commentLikeInfoSaveReq){
|
||||
return CommentLikeInfo.builder()
|
||||
.commentId(commentLikeInfoSaveReq.getCommentId())
|
||||
.userId(commentLikeInfoSaveReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getCommentId()
|
||||
{
|
||||
return commentId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static CommentLikeInfo editBuild(Long id, CommentLikeInfoEditReq commentLikeInfoEditReq){
|
||||
return CommentLikeInfo.builder()
|
||||
.id(id)
|
||||
.commentId(commentLikeInfoEditReq.getCommentId())
|
||||
.userId(commentLikeInfoEditReq.getUserId())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("commentId", getCommentId())
|
||||
.append("userId", getUserId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,198 +1,146 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.ProjectInfoEditReq;
|
||||
import com.muyu.product.domain.req.ProjectInfoQueryReq;
|
||||
import com.muyu.product.domain.req.ProjectInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品信息对象 project_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class ProjectInfo extends BaseEntity
|
||||
{
|
||||
@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 = "商品图片")
|
||||
private String image;
|
||||
/** 商品描述 */
|
||||
@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 = "商品价格")
|
||||
private BigDecimal price;
|
||||
/** 商品图片 */
|
||||
@Excel(name = "商品图片")
|
||||
@ApiModelProperty(name = "商品图片", value = "商品图片")
|
||||
private String image;
|
||||
|
||||
/** 商品数量 */
|
||||
@Excel(name = "商品数量")
|
||||
private Long num;
|
||||
|
||||
/** 商品介绍 */
|
||||
@Excel(name = "商品介绍")
|
||||
private String introduction;
|
||||
/** 商品轮播图 */
|
||||
@Excel(name = "商品轮播图")
|
||||
@ApiModelProperty(name = "商品轮播图", value = "商品轮播图")
|
||||
private String carouselImages;
|
||||
|
||||
/** 商品状态 */
|
||||
@Excel(name = "商品状态")
|
||||
@ApiModelProperty(name = "商品状态", value = "商品状态")
|
||||
private String status;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private Long brandId;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty(name = "规格", value = "规格")
|
||||
private Long ruleId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/** 品牌 */
|
||||
@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 Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
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 String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
public void setMianType(String mianType)
|
||||
{
|
||||
this.mianType = mianType;
|
||||
}
|
||||
|
||||
public String getMianType()
|
||||
{
|
||||
return mianType;
|
||||
}
|
||||
public void setParentType(String parentType)
|
||||
{
|
||||
this.parentType = parentType;
|
||||
}
|
||||
|
||||
public String getParentType()
|
||||
{
|
||||
return parentType;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setNum(Long num)
|
||||
{
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
public Long getNum()
|
||||
{
|
||||
return num;
|
||||
}
|
||||
public void setIntroduction(String introduction)
|
||||
{
|
||||
this.introduction = introduction;
|
||||
}
|
||||
|
||||
public String getIntroduction()
|
||||
{
|
||||
return introduction;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setBrandId(Long brandId)
|
||||
{
|
||||
this.brandId = brandId;
|
||||
}
|
||||
|
||||
public Long getBrandId()
|
||||
{
|
||||
return brandId;
|
||||
}
|
||||
public void setRuleId(Long ruleId)
|
||||
{
|
||||
this.ruleId = ruleId;
|
||||
}
|
||||
|
||||
public Long getRuleId()
|
||||
{
|
||||
return ruleId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("image", getImage())
|
||||
.append("mianType", getMianType())
|
||||
.append("parentType", getParentType())
|
||||
.append("type", getType())
|
||||
.append("price", getPrice())
|
||||
.append("num", getNum())
|
||||
.append("introduction", getIntroduction())
|
||||
.append("status", getStatus())
|
||||
.append("brandId", getBrandId())
|
||||
.append("ruleId", getRuleId())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,114 +1,108 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoEditReq;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoQueryReq;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 商品SKU对象 project_sku_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class ProjectSkuInfo extends BaseEntity
|
||||
{
|
||||
@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 = "商品价值")
|
||||
/** 商品价格 */
|
||||
@Excel(name = "商品价格")
|
||||
@ApiModelProperty(name = "商品价格", value = "商品价格", required = true)
|
||||
private BigDecimal price;
|
||||
|
||||
/** 规格图片 */
|
||||
@Excel(name = "规格图片")
|
||||
@ApiModelProperty(name = "规格图片", value = "规格图片", required = true)
|
||||
private String image;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
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 Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
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 Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setSku(String sku)
|
||||
{
|
||||
this.sku = sku;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
public String getSku()
|
||||
{
|
||||
return sku;
|
||||
}
|
||||
public void setStock(Long stock)
|
||||
{
|
||||
this.stock = stock;
|
||||
}
|
||||
|
||||
public Long getStock()
|
||||
{
|
||||
return stock;
|
||||
}
|
||||
public void setPrice(BigDecimal price)
|
||||
{
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice()
|
||||
{
|
||||
return price;
|
||||
}
|
||||
public void setImage(String image)
|
||||
{
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImage()
|
||||
{
|
||||
return image;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("sku", getSku())
|
||||
.append("stock", getStock())
|
||||
.append("price", getPrice())
|
||||
.append("image", getImage())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,85 +1,90 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoEditReq;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoQueryReq;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 规格详情对象 rule_attr_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class RuleAttrInfo extends BaseEntity
|
||||
{
|
||||
@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 void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static RuleAttrInfo queryBuild( RuleAttrInfoQueryReq ruleAttrInfoQueryReq){
|
||||
return RuleAttrInfo.builder()
|
||||
.ruleId(ruleAttrInfoQueryReq.getRuleId())
|
||||
.name(ruleAttrInfoQueryReq.getName())
|
||||
.attrValue(ruleAttrInfoQueryReq.getAttrValue())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setRuleId(Long ruleId)
|
||||
{
|
||||
this.ruleId = ruleId;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static RuleAttrInfo saveBuild(RuleAttrInfoSaveReq ruleAttrInfoSaveReq){
|
||||
return RuleAttrInfo.builder()
|
||||
.ruleId(ruleAttrInfoSaveReq.getRuleId())
|
||||
.name(ruleAttrInfoSaveReq.getName())
|
||||
.attrValue(ruleAttrInfoSaveReq.getAttrValue())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getRuleId()
|
||||
{
|
||||
return ruleId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static RuleAttrInfo editBuild(Long id, RuleAttrInfoEditReq ruleAttrInfoEditReq){
|
||||
return RuleAttrInfo.builder()
|
||||
.id(id)
|
||||
.ruleId(ruleAttrInfoEditReq.getRuleId())
|
||||
.name(ruleAttrInfoEditReq.getName())
|
||||
.attrValue(ruleAttrInfoEditReq.getAttrValue())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setAttrValue(String attrValue)
|
||||
{
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public String getAttrValue()
|
||||
{
|
||||
return attrValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("ruleId", getRuleId())
|
||||
.append("name", getName())
|
||||
.append("attrValue", getAttrValue())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,71 +1,82 @@
|
|||
package com.muyu.product.domain;
|
||||
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.req.RuleInfoEditReq;
|
||||
import com.muyu.product.domain.req.RuleInfoQueryReq;
|
||||
import com.muyu.product.domain.req.RuleInfoSaveReq;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品规格对象 rule_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public class RuleInfo extends BaseEntity
|
||||
{
|
||||
@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 void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static RuleInfo queryBuild( RuleInfoQueryReq ruleInfoQueryReq){
|
||||
return RuleInfo.builder()
|
||||
.name(ruleInfoQueryReq.getName())
|
||||
.status(ruleInfoQueryReq.getStatus())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static RuleInfo saveBuild(RuleInfoSaveReq ruleInfoSaveReq){
|
||||
return RuleInfo.builder()
|
||||
.name(ruleInfoSaveReq.getName())
|
||||
.status(ruleInfoSaveReq.getStatus())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static RuleInfo editBuild(Long id, RuleInfoEditReq ruleInfoEditReq){
|
||||
return RuleInfo.builder()
|
||||
.id(id)
|
||||
.name(ruleInfoEditReq.getName())
|
||||
.status(ruleInfoEditReq.getStatus())
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("status", getStatus())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.muyu.product.domain.base;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: attribute基础方法
|
||||
* @Date 2024-3-1 下午 02:28
|
||||
*/
|
||||
public interface CategoryBase {
|
||||
|
||||
public Long getBaseId();
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package com.muyu.product.domain.model;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.req.AttributeGroupSaveReq;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 属性组添加模型
|
||||
* @Date 2024-2-28 下午 03:16
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AttributeGroupSaveModel extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 组名称 */
|
||||
private String name;
|
||||
|
||||
/** 状态 */
|
||||
private String states;
|
||||
|
||||
/**
|
||||
* 属性ID集合
|
||||
*/
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
public static AttributeGroupSaveModel saveReqBuild (AttributeGroupSaveReq req){
|
||||
return AttributeGroupSaveModel.builder()
|
||||
.name(req.getName())
|
||||
.states(req.getStates())
|
||||
.attributeIdList(req.getAttributeIdList())
|
||||
.build();
|
||||
}
|
||||
|
||||
public AttributeGroup buildAttributeGroup (String username) {
|
||||
return AttributeGroup.builder()
|
||||
.name(this.getName())
|
||||
.createBy(username)
|
||||
.createTime(new Date())
|
||||
.states(this.getStates())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
package com.muyu.product.domain.model;
|
||||
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import com.muyu.product.domain.req.CategoryInfoSaveReq;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类信息对象 category_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CategoryInfoSaveModel extends TreeEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 品类名称 */
|
||||
private String name;
|
||||
|
||||
/** 图片 */
|
||||
private String image;
|
||||
|
||||
/** 是否启用 */
|
||||
private String start;
|
||||
|
||||
/** 介绍 */
|
||||
private String introduction;
|
||||
|
||||
/**
|
||||
* 商品属性组关联ID
|
||||
*/
|
||||
private List<Long> attributeGroupIdList;
|
||||
/**
|
||||
* 商品属性关联ID
|
||||
*/
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
/**
|
||||
* 商品品牌组关联ID
|
||||
*/
|
||||
private List<Long> brandIdList;
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static CategoryInfoSaveModel saveBuild(CategoryInfoSaveReq categoryInfoSaveReq, String name){
|
||||
return CategoryInfoSaveModel.builder()
|
||||
.name(categoryInfoSaveReq.getName())
|
||||
.image(categoryInfoSaveReq.getImage())
|
||||
.start(categoryInfoSaveReq.getStart())
|
||||
.introduction(categoryInfoSaveReq.getIntroduction())
|
||||
.parentId(categoryInfoSaveReq.getParentId())
|
||||
.attributeGroupIdList(categoryInfoSaveReq.getAttributeGroupIdList())
|
||||
.attributeIdList(categoryInfoSaveReq.getAttributeIdList())
|
||||
.brandIdList(categoryInfoSaveReq.getBrandIdList())
|
||||
.createBy(name)
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 属性组对象 attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 属性组对象 attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 属性组对象 attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "AttributeGroupSaveReq", description = "属性组")
|
||||
public class AttributeGroupReq 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 status;
|
||||
|
||||
/**
|
||||
* 属性id的集合
|
||||
*/
|
||||
@ApiModelProperty(name = "属性id的集合",value = "属性id的集合",required = true)
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 属性组对象 attribute_group
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 属性ID集合
|
||||
*/
|
||||
@ApiModelProperty(name = "属性ID集合", value = "属性ID集合", required = true)
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品属性对象 attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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 code;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品属性对象 attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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 String code;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品属性对象 attribute_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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 String code;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品牌信息对象 brand_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品牌信息对象 brand_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品牌信息对象 brand_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品类信息对象 category_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 品类信息对象 category_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类信息对象 category_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 商品属性组关联ID
|
||||
*/
|
||||
private List<Long> attributeGroupIdList;
|
||||
/**
|
||||
* 商品属性关联ID
|
||||
*/
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
/**
|
||||
* 商品品牌组关联ID
|
||||
*/
|
||||
private List<Long> brandIdList;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品评论对象 comment_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品评论对象 comment_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品评论对象 comment_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 评论点赞对象 comment_like_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 评论点赞对象 comment_like_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 评论点赞对象 comment_like_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品信息对象 project_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品信息对象 project_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品信息对象 project_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 商品SKU对象 project_sku_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 商品SKU对象 project_sku_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 商品SKU对象 project_sku_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 规格详情对象 rule_attr_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 规格详情对象 rule_attr_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 规格详情对象 rule_attr_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品规格对象 rule_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品规格对象 rule_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.muyu.product.domain.req;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 商品规格对象 rule_info
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @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;
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.muyu.product.domain.resp;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 属性组列表对象
|
||||
* @Date 2024-2-28 下午 04:15
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AttributeGroupPageResp extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 属性组编号 */
|
||||
private Long id;
|
||||
|
||||
/** 组名称 */
|
||||
private String name;
|
||||
|
||||
/** 状态 */
|
||||
private String states;
|
||||
|
||||
/**
|
||||
* 属性对象集合
|
||||
*/
|
||||
private List<AttributeInfo> attributeInfoList;
|
||||
|
||||
public static AttributeGroupPageResp groupBuild (AttributeGroup attributeGroup, List<AttributeInfo> attributeInfos) {
|
||||
return AttributeGroupPageResp.builder()
|
||||
.id(attributeGroup.getId())
|
||||
.name(attributeGroup.getName())
|
||||
.states(attributeGroup.getStates())
|
||||
.attributeInfoList(attributeInfos)
|
||||
.build();
|
||||
}
|
||||
public static AttributeGroupPageResp groupFunBuild (AttributeGroup attributeGroup, Function<Long,List<AttributeInfo> > function) {
|
||||
return AttributeGroupPageResp.builder()
|
||||
.id(attributeGroup.getId())
|
||||
.name(attributeGroup.getName())
|
||||
.states(attributeGroup.getStates())
|
||||
.attributeInfoList(function.apply(attributeGroup.getId()))
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.muyu.product.domain.resp;
|
||||
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
import com.muyu.product.domain.BrandInfo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 类别父通用元素
|
||||
* @Date 2024-3-1 上午 11:02
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CategoryParentCommonElementResp {
|
||||
|
||||
/**
|
||||
* 属性集合
|
||||
*/
|
||||
private List<AttributeInfo> attributeInfoList;
|
||||
|
||||
/**
|
||||
* 属性组集合
|
||||
*/
|
||||
private List<AttributeGroup> attributeGroupList;
|
||||
|
||||
/**
|
||||
* 品牌集合
|
||||
*/
|
||||
private List<BrandInfo> brandInfoList;
|
||||
|
||||
}
|
|
@ -1,60 +1,63 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IAttributeGroupService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.model.AttributeGroupSaveModel;
|
||||
import com.muyu.product.domain.req.AttributeGroupEditReq;
|
||||
import com.muyu.product.domain.req.AttributeGroupQueryReq;
|
||||
import com.muyu.product.domain.req.AttributeGroupSaveReq;
|
||||
import com.muyu.product.domain.resp.AttributeGroupPageResp;
|
||||
import com.muyu.product.service.AttributeGroupService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 属性组Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "属性组")
|
||||
@RestController
|
||||
@RequestMapping("/attributeGroup")
|
||||
public class AttributeGroupController extends BaseController
|
||||
{
|
||||
public class AttributeGroupController extends BaseController {
|
||||
@Autowired
|
||||
private IAttributeGroupService attributeGroupService;
|
||||
private AttributeGroupService attributeGroupService;
|
||||
|
||||
/**
|
||||
* 查询属性组列表
|
||||
*/
|
||||
@ApiOperation("获取属性组列表")
|
||||
@RequiresPermissions("product:attributeGroup:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<AttributeGroup>> list(AttributeGroup attributeGroup)
|
||||
{
|
||||
public Result<TableDataInfo<AttributeGroupPageResp>> list(AttributeGroupQueryReq attributeGroupQueryReq) {
|
||||
startPage();
|
||||
List<AttributeGroup> list = attributeGroupService.selectAttributeGroupList(attributeGroup);
|
||||
return getDataTable(list);
|
||||
TableDataInfo<AttributeGroupPageResp> tableDataInfo =
|
||||
attributeGroupService.page(AttributeGroup.queryBuild(attributeGroupQueryReq));
|
||||
return Result.success(tableDataInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出属性组列表
|
||||
*/
|
||||
@ApiOperation("导出属性组列表")
|
||||
@RequiresPermissions("product:attributeGroup:export")
|
||||
@Log(title = "属性组", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, AttributeGroup attributeGroup)
|
||||
{
|
||||
List<AttributeGroup> list = attributeGroupService.selectAttributeGroupList(attributeGroup);
|
||||
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, "属性组数据");
|
||||
}
|
||||
|
@ -62,11 +65,12 @@ public class AttributeGroupController extends BaseController
|
|||
/**
|
||||
* 获取属性组详细信息
|
||||
*/
|
||||
@ApiOperation("获取属性组详细信息")
|
||||
@RequiresPermissions("product:attributeGroup:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(attributeGroupService.selectAttributeGroupById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +79,11 @@ public class AttributeGroupController extends BaseController
|
|||
@RequiresPermissions("product:attributeGroup:add")
|
||||
@Log(title = "属性组", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody AttributeGroup attributeGroup)
|
||||
{
|
||||
return toAjax(attributeGroupService.insertAttributeGroup(attributeGroup));
|
||||
@ApiOperation("新增属性组")
|
||||
public Result<String> add(@RequestBody AttributeGroupSaveReq attributeGroupSaveReq) {
|
||||
return toAjax(
|
||||
attributeGroupService.save(AttributeGroupSaveModel.saveReqBuild(attributeGroupSaveReq))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +91,10 @@ public class AttributeGroupController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:attributeGroup:edit")
|
||||
@Log(title = "属性组", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody AttributeGroup attributeGroup)
|
||||
{
|
||||
return toAjax(attributeGroupService.updateAttributeGroup(attributeGroup));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改属性组")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody AttributeGroupEditReq attributeGroupEditReq) {
|
||||
return toAjax(attributeGroupService.updateById(AttributeGroup.editBuild(id,attributeGroupEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -96,9 +102,10 @@ public class AttributeGroupController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:attributeGroup:remove")
|
||||
@Log(title = "属性组", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(attributeGroupService.deleteAttributeGroupByIds(ids));
|
||||
@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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IAttributeInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.AttributeInfoEditReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoQueryReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoSaveReq;
|
||||
import com.muyu.product.service.AttributeInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品属性Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "商品属性")
|
||||
@RestController
|
||||
@RequestMapping("/attribute")
|
||||
public class AttributeInfoController extends BaseController
|
||||
{
|
||||
public class AttributeInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IAttributeInfoService attributeInfoService;
|
||||
private AttributeInfoService attributeInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品属性列表
|
||||
*/
|
||||
@ApiOperation("获取商品属性列表")
|
||||
@RequiresPermissions("product:attribute:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<AttributeInfo>> list(AttributeInfo attributeInfo)
|
||||
{
|
||||
public Result<TableDataInfo<AttributeInfo>> list(AttributeInfoQueryReq attributeInfoQueryReq) {
|
||||
startPage();
|
||||
List<AttributeInfo> list = attributeInfoService.selectAttributeInfoList(attributeInfo);
|
||||
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.selectAttributeInfoList(attributeInfo);
|
||||
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, "商品属性数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class AttributeInfoController extends BaseController
|
|||
/**
|
||||
* 获取商品属性详细信息
|
||||
*/
|
||||
@ApiOperation("获取商品属性详细信息")
|
||||
@RequiresPermissions("product:attribute:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(attributeInfoService.selectAttributeInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class AttributeInfoController extends BaseController
|
|||
@RequiresPermissions("product:attribute:add")
|
||||
@Log(title = "商品属性", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody AttributeInfo attributeInfo)
|
||||
{
|
||||
return toAjax(attributeInfoService.insertAttributeInfo(attributeInfo));
|
||||
@ApiOperation("新增商品属性")
|
||||
public Result<String> add(@RequestBody AttributeInfoSaveReq attributeInfoSaveReq) {
|
||||
return toAjax(attributeInfoService.save(AttributeInfo.saveBuild(attributeInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class AttributeInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:attribute:edit")
|
||||
@Log(title = "商品属性", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody AttributeInfo attributeInfo)
|
||||
{
|
||||
return toAjax(attributeInfoService.updateAttributeInfo(attributeInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改商品属性")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody AttributeInfoEditReq attributeInfoEditReq) {
|
||||
return toAjax(attributeInfoService.updateById(AttributeInfo.editBuild(id,attributeInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class AttributeInfoController extends BaseController
|
|||
@RequiresPermissions("product:attribute:remove")
|
||||
@Log(title = "商品属性", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(attributeInfoService.deleteAttributeInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,104 +1,106 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IBrandInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.BrandInfoEditReq;
|
||||
import com.muyu.product.domain.req.BrandInfoQueryReq;
|
||||
import com.muyu.product.domain.req.BrandInfoSaveReq;
|
||||
import com.muyu.product.service.BrandInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品品牌Controller
|
||||
* 品牌信息Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "品牌信息")
|
||||
@RestController
|
||||
@RequestMapping("/brand")
|
||||
public class BrandInfoController extends BaseController
|
||||
{
|
||||
public class BrandInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IBrandInfoService brandInfoService;
|
||||
private BrandInfoService brandInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品品牌列表
|
||||
* 查询品牌信息列表
|
||||
*/
|
||||
@ApiOperation("获取品牌信息列表")
|
||||
@RequiresPermissions("product:brand:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<BrandInfo>> list(BrandInfo brandInfo)
|
||||
{
|
||||
public Result<TableDataInfo<BrandInfo>> list(BrandInfoQueryReq brandInfoQueryReq) {
|
||||
startPage();
|
||||
List<BrandInfo> list = brandInfoService.selectBrandInfoList(brandInfo);
|
||||
List<BrandInfo> list = brandInfoService.list(BrandInfo.queryBuild(brandInfoQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出商品品牌列表
|
||||
* 导出品牌信息列表
|
||||
*/
|
||||
@ApiOperation("导出品牌信息列表")
|
||||
@RequiresPermissions("product:brand:export")
|
||||
@Log(title = "商品品牌", businessType = BusinessType.EXPORT)
|
||||
@Log(title = "品牌信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BrandInfo brandInfo)
|
||||
{
|
||||
List<BrandInfo> list = brandInfoService.selectBrandInfoList(brandInfo);
|
||||
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, "商品品牌数据");
|
||||
util.exportExcel(response, list, "品牌信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取商品品牌详细信息
|
||||
* 获取品牌信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取品牌信息详细信息")
|
||||
@RequiresPermissions("product:brand:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(brandInfoService.selectBrandInfoById(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)
|
||||
@Log(title = "品牌信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody BrandInfo brandInfo)
|
||||
{
|
||||
return toAjax(brandInfoService.insertBrandInfo(brandInfo));
|
||||
@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
|
||||
public Result edit(@RequestBody BrandInfo brandInfo)
|
||||
{
|
||||
return toAjax(brandInfoService.updateBrandInfo(brandInfo));
|
||||
@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)
|
||||
@Log(title = "品牌信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(brandInfoService.deleteBrandInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.common.security.utils.SecurityUtils;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
import com.muyu.product.service.ICategoryInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.model.CategoryInfoSaveModel;
|
||||
import com.muyu.product.domain.req.CategoryInfoEditReq;
|
||||
import com.muyu.product.domain.req.CategoryInfoSaveReq;
|
||||
import com.muyu.product.domain.resp.CategoryParentCommonElementResp;
|
||||
import com.muyu.product.service.CategoryInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类信息Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "品类信息")
|
||||
@RestController
|
||||
@RequestMapping("/category")
|
||||
public class CategoryInfoController extends BaseController
|
||||
{
|
||||
public class CategoryInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ICategoryInfoService categoryInfoService;
|
||||
private CategoryInfoService categoryInfoService;
|
||||
|
||||
/**
|
||||
* 查询品类信息列表
|
||||
*/
|
||||
@ApiOperation("获取品类信息列表")
|
||||
@RequiresPermissions("product:category:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<CategoryInfo>> list(CategoryInfo categoryInfo)
|
||||
{
|
||||
startPage();
|
||||
List<CategoryInfo> list = categoryInfoService.selectCategoryInfoList(categoryInfo);
|
||||
return getDataTable(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.selectCategoryInfoList(categoryInfo);
|
||||
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, "品类信息数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class CategoryInfoController extends BaseController
|
|||
/**
|
||||
* 获取品类信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取品类信息详细信息")
|
||||
@RequiresPermissions("product:category:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(categoryInfoService.selectCategoryInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,11 @@ public class CategoryInfoController extends BaseController
|
|||
@RequiresPermissions("product:category:add")
|
||||
@Log(title = "品类信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody CategoryInfo categoryInfo)
|
||||
{
|
||||
return toAjax(categoryInfoService.insertCategoryInfo(categoryInfo));
|
||||
@ApiOperation("新增品类信息")
|
||||
public Result<String> add(@RequestBody CategoryInfoSaveReq categoryInfoSaveReq) {
|
||||
return toAjax(categoryInfoService.save(
|
||||
CategoryInfoSaveModel.saveBuild(categoryInfoSaveReq, SecurityUtils.getUsername())
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +88,10 @@ public class CategoryInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:category:edit")
|
||||
@Log(title = "品类信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody CategoryInfo categoryInfo)
|
||||
{
|
||||
return toAjax(categoryInfoService.updateCategoryInfo(categoryInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改品类信息")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody CategoryInfoEditReq categoryInfoEditReq) {
|
||||
return toAjax(categoryInfoService.updateById(CategoryInfo.editBuild(id,categoryInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +100,23 @@ public class CategoryInfoController extends BaseController
|
|||
@RequiresPermissions("product:category:remove")
|
||||
@Log(title = "品类信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(categoryInfoService.deleteCategoryInfoByIds(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));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过品类ID获取父级以上的属性、属性组、品牌集合
|
||||
* @param categoryId 品类ID
|
||||
* @return 父级以上的属性、属性组、品牌集合
|
||||
*/
|
||||
@GetMapping("/parentCommonElement/{categoryId}")
|
||||
@ApiOperation("通过品类ID获取父级以上的属性集合")
|
||||
@ApiImplicitParam(name = "categoryId", value = "categoryId", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class, example = "1")
|
||||
public Result<CategoryParentCommonElementResp> parentCommonElement(
|
||||
@PathVariable(value = "categoryId") Long categoryId
|
||||
) {
|
||||
return Result.success(categoryInfoService.parentCommonElement(categoryId));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.ICommentInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.CommentInfoEditReq;
|
||||
import com.muyu.product.domain.req.CommentInfoQueryReq;
|
||||
import com.muyu.product.domain.req.CommentInfoSaveReq;
|
||||
import com.muyu.product.service.CommentInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品评论Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "商品评论")
|
||||
@RestController
|
||||
@RequestMapping("/comment")
|
||||
public class CommentInfoController extends BaseController
|
||||
{
|
||||
public class CommentInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ICommentInfoService commentInfoService;
|
||||
private CommentInfoService commentInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品评论列表
|
||||
*/
|
||||
@ApiOperation("获取商品评论列表")
|
||||
@RequiresPermissions("product:comment:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<CommentInfo>> list(CommentInfo commentInfo)
|
||||
{
|
||||
public Result<TableDataInfo<CommentInfo>> list(CommentInfoQueryReq commentInfoQueryReq) {
|
||||
startPage();
|
||||
List<CommentInfo> list = commentInfoService.selectCommentInfoList(commentInfo);
|
||||
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.selectCommentInfoList(commentInfo);
|
||||
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, "商品评论数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class CommentInfoController extends BaseController
|
|||
/**
|
||||
* 获取商品评论详细信息
|
||||
*/
|
||||
@ApiOperation("获取商品评论详细信息")
|
||||
@RequiresPermissions("product:comment:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(commentInfoService.selectCommentInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class CommentInfoController extends BaseController
|
|||
@RequiresPermissions("product:comment:add")
|
||||
@Log(title = "商品评论", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody CommentInfo commentInfo)
|
||||
{
|
||||
return toAjax(commentInfoService.insertCommentInfo(commentInfo));
|
||||
@ApiOperation("新增商品评论")
|
||||
public Result<String> add(@RequestBody CommentInfoSaveReq commentInfoSaveReq) {
|
||||
return toAjax(commentInfoService.save(CommentInfo.saveBuild(commentInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class CommentInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:comment:edit")
|
||||
@Log(title = "商品评论", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody CommentInfo commentInfo)
|
||||
{
|
||||
return toAjax(commentInfoService.updateCommentInfo(commentInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改商品评论")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody CommentInfoEditReq commentInfoEditReq) {
|
||||
return toAjax(commentInfoService.updateById(CommentInfo.editBuild(id,commentInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class CommentInfoController extends BaseController
|
|||
@RequiresPermissions("product:comment:remove")
|
||||
@Log(title = "商品评论", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(commentInfoService.deleteCommentInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.ICommentLikeInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoEditReq;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoQueryReq;
|
||||
import com.muyu.product.domain.req.CommentLikeInfoSaveReq;
|
||||
import com.muyu.product.service.CommentLikeInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 评论点赞Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "评论点赞")
|
||||
@RestController
|
||||
@RequestMapping("/commentLike")
|
||||
public class CommentLikeInfoController extends BaseController
|
||||
{
|
||||
public class CommentLikeInfoController extends BaseController {
|
||||
@Autowired
|
||||
private ICommentLikeInfoService commentLikeInfoService;
|
||||
private CommentLikeInfoService commentLikeInfoService;
|
||||
|
||||
/**
|
||||
* 查询评论点赞列表
|
||||
*/
|
||||
@ApiOperation("获取评论点赞列表")
|
||||
@RequiresPermissions("product:commentLike:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<CommentLikeInfo>> list(CommentLikeInfo commentLikeInfo)
|
||||
{
|
||||
public Result<TableDataInfo<CommentLikeInfo>> list(CommentLikeInfoQueryReq commentLikeInfoQueryReq) {
|
||||
startPage();
|
||||
List<CommentLikeInfo> list = commentLikeInfoService.selectCommentLikeInfoList(commentLikeInfo);
|
||||
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.selectCommentLikeInfoList(commentLikeInfo);
|
||||
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, "评论点赞数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class CommentLikeInfoController extends BaseController
|
|||
/**
|
||||
* 获取评论点赞详细信息
|
||||
*/
|
||||
@ApiOperation("获取评论点赞详细信息")
|
||||
@RequiresPermissions("product:commentLike:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(commentLikeInfoService.selectCommentLikeInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class CommentLikeInfoController extends BaseController
|
|||
@RequiresPermissions("product:commentLike:add")
|
||||
@Log(title = "评论点赞", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody CommentLikeInfo commentLikeInfo)
|
||||
{
|
||||
return toAjax(commentLikeInfoService.insertCommentLikeInfo(commentLikeInfo));
|
||||
@ApiOperation("新增评论点赞")
|
||||
public Result<String> add(@RequestBody CommentLikeInfoSaveReq commentLikeInfoSaveReq) {
|
||||
return toAjax(commentLikeInfoService.save(CommentLikeInfo.saveBuild(commentLikeInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class CommentLikeInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:commentLike:edit")
|
||||
@Log(title = "评论点赞", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody CommentLikeInfo commentLikeInfo)
|
||||
{
|
||||
return toAjax(commentLikeInfoService.updateCommentLikeInfo(commentLikeInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改评论点赞")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody CommentLikeInfoEditReq commentLikeInfoEditReq) {
|
||||
return toAjax(commentLikeInfoService.updateById(CommentLikeInfo.editBuild(id,commentLikeInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class CommentLikeInfoController extends BaseController
|
|||
@RequiresPermissions("product:commentLike:remove")
|
||||
@Log(title = "评论点赞", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(commentLikeInfoService.deleteCommentLikeInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IProjectInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.ProjectInfoEditReq;
|
||||
import com.muyu.product.domain.req.ProjectInfoQueryReq;
|
||||
import com.muyu.product.domain.req.ProjectInfoSaveReq;
|
||||
import com.muyu.product.service.ProjectInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品信息Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "商品信息")
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class ProjectInfoController extends BaseController
|
||||
{
|
||||
public class ProjectInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IProjectInfoService projectInfoService;
|
||||
private ProjectInfoService projectInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品信息列表
|
||||
*/
|
||||
@ApiOperation("获取商品信息列表")
|
||||
@RequiresPermissions("product:info:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<ProjectInfo>> list(ProjectInfo projectInfo)
|
||||
{
|
||||
public Result<TableDataInfo<ProjectInfo>> list(ProjectInfoQueryReq projectInfoQueryReq) {
|
||||
startPage();
|
||||
List<ProjectInfo> list = projectInfoService.selectProjectInfoList(projectInfo);
|
||||
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.selectProjectInfoList(projectInfo);
|
||||
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, "商品信息数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class ProjectInfoController extends BaseController
|
|||
/**
|
||||
* 获取商品信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取商品信息详细信息")
|
||||
@RequiresPermissions("product:info:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(projectInfoService.selectProjectInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class ProjectInfoController extends BaseController
|
|||
@RequiresPermissions("product:info:add")
|
||||
@Log(title = "商品信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody ProjectInfo projectInfo)
|
||||
{
|
||||
return toAjax(projectInfoService.insertProjectInfo(projectInfo));
|
||||
@ApiOperation("新增商品信息")
|
||||
public Result<String> add(@RequestBody ProjectInfoSaveReq projectInfoSaveReq) {
|
||||
return toAjax(projectInfoService.save(ProjectInfo.saveBuild(projectInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class ProjectInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:info:edit")
|
||||
@Log(title = "商品信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody ProjectInfo projectInfo)
|
||||
{
|
||||
return toAjax(projectInfoService.updateProjectInfo(projectInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改商品信息")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody ProjectInfoEditReq projectInfoEditReq) {
|
||||
return toAjax(projectInfoService.updateById(ProjectInfo.editBuild(id,projectInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class ProjectInfoController extends BaseController
|
|||
@RequiresPermissions("product:info:remove")
|
||||
@Log(title = "商品信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(projectInfoService.deleteProjectInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IProjectSkuInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoEditReq;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoQueryReq;
|
||||
import com.muyu.product.domain.req.ProjectSkuInfoSaveReq;
|
||||
import com.muyu.product.service.ProjectSkuInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品SKUController
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "商品SKU")
|
||||
@RestController
|
||||
@RequestMapping("/sku")
|
||||
public class ProjectSkuInfoController extends BaseController
|
||||
{
|
||||
public class ProjectSkuInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IProjectSkuInfoService projectSkuInfoService;
|
||||
private ProjectSkuInfoService projectSkuInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品SKU列表
|
||||
*/
|
||||
@ApiOperation("获取商品SKU列表")
|
||||
@RequiresPermissions("product:sku:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<ProjectSkuInfo>> list(ProjectSkuInfo projectSkuInfo)
|
||||
{
|
||||
public Result<TableDataInfo<ProjectSkuInfo>> list(ProjectSkuInfoQueryReq projectSkuInfoQueryReq) {
|
||||
startPage();
|
||||
List<ProjectSkuInfo> list = projectSkuInfoService.selectProjectSkuInfoList(projectSkuInfo);
|
||||
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.selectProjectSkuInfoList(projectSkuInfo);
|
||||
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数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class ProjectSkuInfoController extends BaseController
|
|||
/**
|
||||
* 获取商品SKU详细信息
|
||||
*/
|
||||
@ApiOperation("获取商品SKU详细信息")
|
||||
@RequiresPermissions("product:sku:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(projectSkuInfoService.selectProjectSkuInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class ProjectSkuInfoController extends BaseController
|
|||
@RequiresPermissions("product:sku:add")
|
||||
@Log(title = "商品SKU", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody ProjectSkuInfo projectSkuInfo)
|
||||
{
|
||||
return toAjax(projectSkuInfoService.insertProjectSkuInfo(projectSkuInfo));
|
||||
@ApiOperation("新增商品SKU")
|
||||
public Result<String> add(@RequestBody ProjectSkuInfoSaveReq projectSkuInfoSaveReq) {
|
||||
return toAjax(projectSkuInfoService.save(ProjectSkuInfo.saveBuild(projectSkuInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class ProjectSkuInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:sku:edit")
|
||||
@Log(title = "商品SKU", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody ProjectSkuInfo projectSkuInfo)
|
||||
{
|
||||
return toAjax(projectSkuInfoService.updateProjectSkuInfo(projectSkuInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改商品SKU")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody ProjectSkuInfoEditReq projectSkuInfoEditReq) {
|
||||
return toAjax(projectSkuInfoService.updateById(ProjectSkuInfo.editBuild(id,projectSkuInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class ProjectSkuInfoController extends BaseController
|
|||
@RequiresPermissions("product:sku:remove")
|
||||
@Log(title = "商品SKU", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(projectSkuInfoService.deleteProjectSkuInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IRuleAttrInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoEditReq;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoQueryReq;
|
||||
import com.muyu.product.domain.req.RuleAttrInfoSaveReq;
|
||||
import com.muyu.product.service.RuleAttrInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 规格详情Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "规格详情")
|
||||
@RestController
|
||||
@RequestMapping("/ruleAttr")
|
||||
public class RuleAttrInfoController extends BaseController
|
||||
{
|
||||
public class RuleAttrInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IRuleAttrInfoService ruleAttrInfoService;
|
||||
private RuleAttrInfoService ruleAttrInfoService;
|
||||
|
||||
/**
|
||||
* 查询规格详情列表
|
||||
*/
|
||||
@ApiOperation("获取规格详情列表")
|
||||
@RequiresPermissions("product:ruleAttr:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<RuleAttrInfo>> list(RuleAttrInfo ruleAttrInfo)
|
||||
{
|
||||
public Result<TableDataInfo<RuleAttrInfo>> list(RuleAttrInfoQueryReq ruleAttrInfoQueryReq) {
|
||||
startPage();
|
||||
List<RuleAttrInfo> list = ruleAttrInfoService.selectRuleAttrInfoList(ruleAttrInfo);
|
||||
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.selectRuleAttrInfoList(ruleAttrInfo);
|
||||
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, "规格详情数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class RuleAttrInfoController extends BaseController
|
|||
/**
|
||||
* 获取规格详情详细信息
|
||||
*/
|
||||
@ApiOperation("获取规格详情详细信息")
|
||||
@RequiresPermissions("product:ruleAttr:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(ruleAttrInfoService.selectRuleAttrInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class RuleAttrInfoController extends BaseController
|
|||
@RequiresPermissions("product:ruleAttr:add")
|
||||
@Log(title = "规格详情", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody RuleAttrInfo ruleAttrInfo)
|
||||
{
|
||||
return toAjax(ruleAttrInfoService.insertRuleAttrInfo(ruleAttrInfo));
|
||||
@ApiOperation("新增规格详情")
|
||||
public Result<String> add(@RequestBody RuleAttrInfoSaveReq ruleAttrInfoSaveReq) {
|
||||
return toAjax(ruleAttrInfoService.save(RuleAttrInfo.saveBuild(ruleAttrInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class RuleAttrInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:ruleAttr:edit")
|
||||
@Log(title = "规格详情", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody RuleAttrInfo ruleAttrInfo)
|
||||
{
|
||||
return toAjax(ruleAttrInfoService.updateRuleAttrInfo(ruleAttrInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改规格详情")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody RuleAttrInfoEditReq ruleAttrInfoEditReq) {
|
||||
return toAjax(ruleAttrInfoService.updateById(RuleAttrInfo.editBuild(id,ruleAttrInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class RuleAttrInfoController extends BaseController
|
|||
@RequiresPermissions("product:ruleAttr:remove")
|
||||
@Log(title = "规格详情", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(ruleAttrInfoService.deleteRuleAttrInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,60 +1,60 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
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.core.web.page.TableDataInfo;
|
||||
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.service.IRuleInfoService;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.req.RuleInfoEditReq;
|
||||
import com.muyu.product.domain.req.RuleInfoQueryReq;
|
||||
import com.muyu.product.domain.req.RuleInfoSaveReq;
|
||||
import com.muyu.product.service.RuleInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格Controller
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "商品规格")
|
||||
@RestController
|
||||
@RequestMapping("/rule")
|
||||
public class RuleInfoController extends BaseController
|
||||
{
|
||||
public class RuleInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IRuleInfoService ruleInfoService;
|
||||
private RuleInfoService ruleInfoService;
|
||||
|
||||
/**
|
||||
* 查询商品规格列表
|
||||
*/
|
||||
@ApiOperation("获取商品规格列表")
|
||||
@RequiresPermissions("product:rule:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<RuleInfo>> list(RuleInfo ruleInfo)
|
||||
{
|
||||
public Result<TableDataInfo<RuleInfo>> list(RuleInfoQueryReq ruleInfoQueryReq) {
|
||||
startPage();
|
||||
List<RuleInfo> list = ruleInfoService.selectRuleInfoList(ruleInfo);
|
||||
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.selectRuleInfoList(ruleInfo);
|
||||
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, "商品规格数据");
|
||||
}
|
||||
|
@ -62,11 +62,12 @@ public class RuleInfoController extends BaseController
|
|||
/**
|
||||
* 获取商品规格详细信息
|
||||
*/
|
||||
@ApiOperation("获取商品规格详细信息")
|
||||
@RequiresPermissions("product:rule:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public Result getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(ruleInfoService.selectRuleInfoById(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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,9 +76,9 @@ public class RuleInfoController extends BaseController
|
|||
@RequiresPermissions("product:rule:add")
|
||||
@Log(title = "商品规格", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public Result add(@RequestBody RuleInfo ruleInfo)
|
||||
{
|
||||
return toAjax(ruleInfoService.insertRuleInfo(ruleInfo));
|
||||
@ApiOperation("新增商品规格")
|
||||
public Result<String> add(@RequestBody RuleInfoSaveReq ruleInfoSaveReq) {
|
||||
return toAjax(ruleInfoService.save(RuleInfo.saveBuild(ruleInfoSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +86,10 @@ public class RuleInfoController extends BaseController
|
|||
*/
|
||||
@RequiresPermissions("product:rule:edit")
|
||||
@Log(title = "商品规格", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public Result edit(@RequestBody RuleInfo ruleInfo)
|
||||
{
|
||||
return toAjax(ruleInfoService.updateRuleInfo(ruleInfo));
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改商品规格")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody RuleInfoEditReq ruleInfoEditReq) {
|
||||
return toAjax(ruleInfoService.updateById(RuleInfo.editBuild(id,ruleInfoEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,8 +98,9 @@ public class RuleInfoController extends BaseController
|
|||
@RequiresPermissions("product:rule:remove")
|
||||
@Log(title = "商品规格", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(ruleInfoService.deleteRuleInfoByIds(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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsAttributeGroup;
|
||||
|
||||
/**
|
||||
* 属性与组中间Mapper接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-03-01
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsAttributeGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询属性与组中间
|
||||
*
|
||||
* @param id 属性与组中间主键
|
||||
* @return 属性与组中间
|
||||
*/
|
||||
public AsAttributeGroup selectAsAttributeGroupById(Long id);
|
||||
public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup> {
|
||||
|
||||
/**
|
||||
* 查询属性与组中间列表
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 属性与组中间集合
|
||||
*/
|
||||
public List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 新增属性与组中间
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 修改属性与组中间
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 删除属性与组中间
|
||||
*
|
||||
* @param id 属性与组中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除属性与组中间
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsAttributeGroupByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsBrandProject;
|
||||
|
||||
/**
|
||||
* 品牌商品中间Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsBrandProjectMapper
|
||||
{
|
||||
/**
|
||||
* 查询品牌商品中间
|
||||
*
|
||||
* @param id 品牌商品中间主键
|
||||
* @return 品牌商品中间
|
||||
*/
|
||||
public AsBrandProject selectAsBrandProjectById(Long id);
|
||||
public interface AsBrandProjectMapper extends BaseMapper<AsBrandProject> {
|
||||
|
||||
/**
|
||||
* 查询品牌商品中间列表
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 品牌商品中间集合
|
||||
*/
|
||||
public List<AsBrandProject> selectAsBrandProjectList(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 新增品牌商品中间
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsBrandProject(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 修改品牌商品中间
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsBrandProject(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 删除品牌商品中间
|
||||
*
|
||||
* @param id 品牌商品中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsBrandProjectById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除品牌商品中间
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsBrandProjectByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsCategoryAttributeGroup;
|
||||
|
||||
/**
|
||||
* 品类属性组中间Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryAttributeGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询品类属性组中间
|
||||
*
|
||||
* @param id 品类属性组中间主键
|
||||
* @return 品类属性组中间
|
||||
*/
|
||||
public AsCategoryAttributeGroup selectAsCategoryAttributeGroupById(Long id);
|
||||
public interface AsCategoryAttributeGroupMapper extends BaseMapper<AsCategoryAttributeGroup> {
|
||||
|
||||
/**
|
||||
* 查询品类属性组中间列表
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 品类属性组中间集合
|
||||
*/
|
||||
public List<AsCategoryAttributeGroup> selectAsCategoryAttributeGroupList(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 新增品类属性组中间
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 修改品类属性组中间
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 删除品类属性组中间
|
||||
*
|
||||
* @param id 品类属性组中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除品类属性组中间
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeGroupByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsCategoryAttribute;
|
||||
|
||||
/**
|
||||
* 品类属性中间Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryAttributeMapper
|
||||
{
|
||||
/**
|
||||
* 查询品类属性中间
|
||||
*
|
||||
* @param id 品类属性中间主键
|
||||
* @return 品类属性中间
|
||||
*/
|
||||
public AsCategoryAttribute selectAsCategoryAttributeById(Long id);
|
||||
public interface AsCategoryAttributeMapper extends BaseMapper<AsCategoryAttribute> {
|
||||
|
||||
/**
|
||||
* 查询品类属性中间列表
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 品类属性中间集合
|
||||
*/
|
||||
public List<AsCategoryAttribute> selectAsCategoryAttributeList(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 新增品类属性中间
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 修改品类属性中间
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 删除品类属性中间
|
||||
*
|
||||
* @param id 品类属性中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除品类属性中间
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsCategoryBrand;
|
||||
|
||||
/**
|
||||
* 品类品牌中间Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryBrandMapper
|
||||
{
|
||||
/**
|
||||
* 查询品类品牌中间
|
||||
*
|
||||
* @param id 品类品牌中间主键
|
||||
* @return 品类品牌中间
|
||||
*/
|
||||
public AsCategoryBrand selectAsCategoryBrandById(Long id);
|
||||
public interface AsCategoryBrandMapper extends BaseMapper<AsCategoryBrand> {
|
||||
|
||||
/**
|
||||
* 查询品类品牌中间列表
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 品类品牌中间集合
|
||||
*/
|
||||
public List<AsCategoryBrand> selectAsCategoryBrandList(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 新增品类品牌中间
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryBrand(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 修改品类品牌中间
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryBrand(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 删除品类品牌中间
|
||||
*
|
||||
* @param id 品类品牌中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryBrandById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除品类品牌中间
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryBrandByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AsProductAttributeInfo;
|
||||
|
||||
/**
|
||||
* 商品属性Mapper接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsProductAttributeInfoMapper extends BaseMapper<AsProductAttributeInfo> {
|
||||
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsProdutAttributeInfo;
|
||||
|
||||
/**
|
||||
* 属性信息Mapper接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface AsProdutAttributeInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询属性信息
|
||||
*
|
||||
* @param id 属性信息主键
|
||||
* @return 属性信息
|
||||
*/
|
||||
public AsProdutAttributeInfo selectAsProdutAttributeInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询属性信息列表
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 属性信息集合
|
||||
*/
|
||||
public List<AsProdutAttributeInfo> selectAsProdutAttributeInfoList(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 新增属性信息
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 修改属性信息
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 删除属性信息
|
||||
*
|
||||
* @param id 属性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsProdutAttributeInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除属性信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsProdutAttributeInfoByIds(Long[] ids);
|
||||
}
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
|
||||
/**
|
||||
* 属性组Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AttributeGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询属性组
|
||||
*
|
||||
* @param id 属性组主键
|
||||
* @return 属性组
|
||||
*/
|
||||
public AttributeGroup selectAttributeGroupById(Long id);
|
||||
public interface AttributeGroupMapper extends BaseMapper<AttributeGroup> {
|
||||
|
||||
/**
|
||||
* 查询属性组列表
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 属性组集合
|
||||
*/
|
||||
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 新增属性组
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAttributeGroup(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 修改属性组
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAttributeGroup(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 删除属性组
|
||||
*
|
||||
* @param id 属性组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除属性组
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeGroupByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
|
||||
/**
|
||||
* 商品属性Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AttributeInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品属性
|
||||
*
|
||||
* @param id 商品属性主键
|
||||
* @return 商品属性
|
||||
*/
|
||||
public AttributeInfo selectAttributeInfoById(Long id);
|
||||
public interface AttributeInfoMapper extends BaseMapper<AttributeInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品属性列表
|
||||
*
|
||||
* @param attributeInfo 商品属性
|
||||
* @return 商品属性集合
|
||||
*/
|
||||
public List<AttributeInfo> selectAttributeInfoList(AttributeInfo attributeInfo);
|
||||
|
||||
/**
|
||||
* 新增商品属性
|
||||
*
|
||||
* @param attributeInfo 商品属性
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAttributeInfo(AttributeInfo attributeInfo);
|
||||
|
||||
/**
|
||||
* 修改商品属性
|
||||
*
|
||||
* @param attributeInfo 商品属性
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAttributeInfo(AttributeInfo attributeInfo);
|
||||
|
||||
/**
|
||||
* 删除商品属性
|
||||
*
|
||||
* @param id 商品属性主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品属性
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.BrandInfo;
|
||||
|
||||
/**
|
||||
* 商品品牌Mapper接口
|
||||
*
|
||||
* 品牌信息Mapper接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface BrandInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品品牌
|
||||
*
|
||||
* @param id 商品品牌主键
|
||||
* @return 商品品牌
|
||||
*/
|
||||
public BrandInfo selectBrandInfoById(Long id);
|
||||
public interface BrandInfoMapper extends BaseMapper<BrandInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品品牌列表
|
||||
*
|
||||
* @param brandInfo 商品品牌
|
||||
* @return 商品品牌集合
|
||||
*/
|
||||
public List<BrandInfo> selectBrandInfoList(BrandInfo brandInfo);
|
||||
|
||||
/**
|
||||
* 新增商品品牌
|
||||
*
|
||||
* @param brandInfo 商品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBrandInfo(BrandInfo brandInfo);
|
||||
|
||||
/**
|
||||
* 修改商品品牌
|
||||
*
|
||||
* @param brandInfo 商品品牌
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBrandInfo(BrandInfo brandInfo);
|
||||
|
||||
/**
|
||||
* 删除商品品牌
|
||||
*
|
||||
* @param id 商品品牌主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBrandInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品品牌
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBrandInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
|
||||
/**
|
||||
* 品类信息Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CategoryInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询品类信息
|
||||
*
|
||||
* @param id 品类信息主键
|
||||
* @return 品类信息
|
||||
*/
|
||||
public CategoryInfo selectCategoryInfoById(Long id);
|
||||
public interface CategoryInfoMapper extends BaseMapper<CategoryInfo> {
|
||||
|
||||
/**
|
||||
* 查询品类信息列表
|
||||
*
|
||||
* @param categoryInfo 品类信息
|
||||
* @return 品类信息集合
|
||||
*/
|
||||
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
|
||||
|
||||
/**
|
||||
* 新增品类信息
|
||||
*
|
||||
* @param categoryInfo 品类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCategoryInfo(CategoryInfo categoryInfo);
|
||||
|
||||
/**
|
||||
* 修改品类信息
|
||||
*
|
||||
* @param categoryInfo 品类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCategoryInfo(CategoryInfo categoryInfo);
|
||||
|
||||
/**
|
||||
* 删除品类信息
|
||||
*
|
||||
* @param id 品类信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除品类信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CommentInfo;
|
||||
|
||||
/**
|
||||
* 商品评论Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CommentInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品评论
|
||||
*
|
||||
* @param id 商品评论主键
|
||||
* @return 商品评论
|
||||
*/
|
||||
public CommentInfo selectCommentInfoById(Long id);
|
||||
public interface CommentInfoMapper extends BaseMapper<CommentInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品评论列表
|
||||
*
|
||||
* @param commentInfo 商品评论
|
||||
* @return 商品评论集合
|
||||
*/
|
||||
public List<CommentInfo> selectCommentInfoList(CommentInfo commentInfo);
|
||||
|
||||
/**
|
||||
* 新增商品评论
|
||||
*
|
||||
* @param commentInfo 商品评论
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCommentInfo(CommentInfo commentInfo);
|
||||
|
||||
/**
|
||||
* 修改商品评论
|
||||
*
|
||||
* @param commentInfo 商品评论
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCommentInfo(CommentInfo commentInfo);
|
||||
|
||||
/**
|
||||
* 删除商品评论
|
||||
*
|
||||
* @param id 商品评论主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommentInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品评论
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommentInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CommentLikeInfo;
|
||||
|
||||
/**
|
||||
* 评论点赞Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CommentLikeInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询评论点赞
|
||||
*
|
||||
* @param id 评论点赞主键
|
||||
* @return 评论点赞
|
||||
*/
|
||||
public CommentLikeInfo selectCommentLikeInfoById(Long id);
|
||||
public interface CommentLikeInfoMapper extends BaseMapper<CommentLikeInfo> {
|
||||
|
||||
/**
|
||||
* 查询评论点赞列表
|
||||
*
|
||||
* @param commentLikeInfo 评论点赞
|
||||
* @return 评论点赞集合
|
||||
*/
|
||||
public List<CommentLikeInfo> selectCommentLikeInfoList(CommentLikeInfo commentLikeInfo);
|
||||
|
||||
/**
|
||||
* 新增评论点赞
|
||||
*
|
||||
* @param commentLikeInfo 评论点赞
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCommentLikeInfo(CommentLikeInfo commentLikeInfo);
|
||||
|
||||
/**
|
||||
* 修改评论点赞
|
||||
*
|
||||
* @param commentLikeInfo 评论点赞
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCommentLikeInfo(CommentLikeInfo commentLikeInfo);
|
||||
|
||||
/**
|
||||
* 删除评论点赞
|
||||
*
|
||||
* @param id 评论点赞主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommentLikeInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除评论点赞
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommentLikeInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.ProjectInfo;
|
||||
|
||||
/**
|
||||
* 商品信息Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface ProjectInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品信息
|
||||
*
|
||||
* @param id 商品信息主键
|
||||
* @return 商品信息
|
||||
*/
|
||||
public ProjectInfo selectProjectInfoById(Long id);
|
||||
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品信息列表
|
||||
*
|
||||
* @param projectInfo 商品信息
|
||||
* @return 商品信息集合
|
||||
*/
|
||||
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo);
|
||||
|
||||
/**
|
||||
* 新增商品信息
|
||||
*
|
||||
* @param projectInfo 商品信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectInfo(ProjectInfo projectInfo);
|
||||
|
||||
/**
|
||||
* 修改商品信息
|
||||
*
|
||||
* @param projectInfo 商品信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectInfo(ProjectInfo projectInfo);
|
||||
|
||||
/**
|
||||
* 删除商品信息
|
||||
*
|
||||
* @param id 商品信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.ProjectSkuInfo;
|
||||
|
||||
/**
|
||||
* 商品SKUMapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface ProjectSkuInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品SKU
|
||||
*
|
||||
* @param id 商品SKU主键
|
||||
* @return 商品SKU
|
||||
*/
|
||||
public ProjectSkuInfo selectProjectSkuInfoById(Long id);
|
||||
public interface ProjectSkuInfoMapper extends BaseMapper<ProjectSkuInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品SKU列表
|
||||
*
|
||||
* @param projectSkuInfo 商品SKU
|
||||
* @return 商品SKU集合
|
||||
*/
|
||||
public List<ProjectSkuInfo> selectProjectSkuInfoList(ProjectSkuInfo projectSkuInfo);
|
||||
|
||||
/**
|
||||
* 新增商品SKU
|
||||
*
|
||||
* @param projectSkuInfo 商品SKU
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
|
||||
|
||||
/**
|
||||
* 修改商品SKU
|
||||
*
|
||||
* @param projectSkuInfo 商品SKU
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
|
||||
|
||||
/**
|
||||
* 删除商品SKU
|
||||
*
|
||||
* @param id 商品SKU主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectSkuInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品SKU
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProjectSkuInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.RuleAttrInfo;
|
||||
|
||||
/**
|
||||
* 规格详情Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface RuleAttrInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询规格详情
|
||||
*
|
||||
* @param id 规格详情主键
|
||||
* @return 规格详情
|
||||
*/
|
||||
public RuleAttrInfo selectRuleAttrInfoById(Long id);
|
||||
public interface RuleAttrInfoMapper extends BaseMapper<RuleAttrInfo> {
|
||||
|
||||
/**
|
||||
* 查询规格详情列表
|
||||
*
|
||||
* @param ruleAttrInfo 规格详情
|
||||
* @return 规格详情集合
|
||||
*/
|
||||
public List<RuleAttrInfo> selectRuleAttrInfoList(RuleAttrInfo ruleAttrInfo);
|
||||
|
||||
/**
|
||||
* 新增规格详情
|
||||
*
|
||||
* @param ruleAttrInfo 规格详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
|
||||
|
||||
/**
|
||||
* 修改规格详情
|
||||
*
|
||||
* @param ruleAttrInfo 规格详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
|
||||
|
||||
/**
|
||||
* 删除规格详情
|
||||
*
|
||||
* @param id 规格详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRuleAttrInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除规格详情
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRuleAttrInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -1,61 +1,14 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.RuleInfo;
|
||||
|
||||
/**
|
||||
* 商品规格Mapper接口
|
||||
*
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface RuleInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询商品规格
|
||||
*
|
||||
* @param id 商品规格主键
|
||||
* @return 商品规格
|
||||
*/
|
||||
public RuleInfo selectRuleInfoById(Long id);
|
||||
public interface RuleInfoMapper extends BaseMapper<RuleInfo> {
|
||||
|
||||
/**
|
||||
* 查询商品规格列表
|
||||
*
|
||||
* @param ruleInfo 商品规格
|
||||
* @return 商品规格集合
|
||||
*/
|
||||
public List<RuleInfo> selectRuleInfoList(RuleInfo ruleInfo);
|
||||
|
||||
/**
|
||||
* 新增商品规格
|
||||
*
|
||||
* @param ruleInfo 商品规格
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRuleInfo(RuleInfo ruleInfo);
|
||||
|
||||
/**
|
||||
* 修改商品规格
|
||||
*
|
||||
* @param ruleInfo 商品规格
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRuleInfo(RuleInfo ruleInfo);
|
||||
|
||||
/**
|
||||
* 删除商品规格
|
||||
*
|
||||
* @param id 商品规格主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRuleInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除商品规格
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRuleInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsAttributeGroup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 属性与组中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsAttributeGroupService extends IService<AsAttributeGroup> {
|
||||
/**
|
||||
* 查询属性与组中间列表
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 属性与组中间集合
|
||||
*/
|
||||
public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsBrandProject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品牌商品中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsBrandProjectService extends IService<AsBrandProject> {
|
||||
/**
|
||||
* 查询品牌商品中间列表
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 品牌商品中间集合
|
||||
*/
|
||||
public List<AsBrandProject> list(AsBrandProject asBrandProject);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsCategoryAttributeGroup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类属性组中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryAttributeGroupService extends IService<AsCategoryAttributeGroup> {
|
||||
/**
|
||||
* 查询品类属性组中间列表
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 品类属性组中间集合
|
||||
*/
|
||||
public List<AsCategoryAttributeGroup> list(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsCategoryAttribute;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类属性中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryAttributeService extends IService<AsCategoryAttribute> {
|
||||
/**
|
||||
* 查询品类属性中间列表
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 品类属性中间集合
|
||||
*/
|
||||
public List<AsCategoryAttribute> list(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsCategoryBrand;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类品牌中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsCategoryBrandService extends IService<AsCategoryBrand> {
|
||||
/**
|
||||
* 查询品类品牌中间列表
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 品类品牌中间集合
|
||||
*/
|
||||
public List<AsCategoryBrand> list(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsProductAttributeInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品属性Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AsProductAttributeInfoService extends IService<AsProductAttributeInfo> {
|
||||
/**
|
||||
* 查询商品属性列表
|
||||
*
|
||||
* @param asProductAttributeInfo 商品属性
|
||||
* @return 商品属性集合
|
||||
*/
|
||||
public List<AsProductAttributeInfo> list(AsProductAttributeInfo asProductAttributeInfo);
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.model.AttributeGroupSaveModel;
|
||||
import com.muyu.product.domain.resp.AttributeGroupPageResp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 属性组Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AttributeGroupService extends IService<AttributeGroup> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param attributeGroup 分组对象
|
||||
* @return 返回结果
|
||||
*/
|
||||
public TableDataInfo<AttributeGroupPageResp> page(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 查询属性组列表
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 属性组集合
|
||||
*/
|
||||
public List<AttributeGroup> list(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 保存
|
||||
* @param attributeGroupSaveModel 属性组保存模型
|
||||
* @return 是否成功
|
||||
*/
|
||||
public Boolean save(AttributeGroupSaveModel attributeGroupSaveModel);
|
||||
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品属性Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface AttributeInfoService extends IService<AttributeInfo> {
|
||||
/**
|
||||
* 查询商品属性列表
|
||||
*
|
||||
* @param attributeInfo 商品属性
|
||||
* @return 商品属性集合
|
||||
*/
|
||||
public List<AttributeInfo> list(AttributeInfo attributeInfo);
|
||||
|
||||
/**
|
||||
* 通过groupId查询属性集合
|
||||
* @param groupId 属性组Id
|
||||
* @return 属性集合
|
||||
*/
|
||||
public List<AttributeInfo> attributeListByGroupId(Long groupId);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.BrandInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品牌信息Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface BrandInfoService extends IService<BrandInfo> {
|
||||
/**
|
||||
* 查询品牌信息列表
|
||||
*
|
||||
* @param brandInfo 品牌信息
|
||||
* @return 品牌信息集合
|
||||
*/
|
||||
public List<BrandInfo> list(BrandInfo brandInfo);
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
import com.muyu.product.domain.BrandInfo;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
import com.muyu.product.domain.model.CategoryInfoSaveModel;
|
||||
import com.muyu.product.domain.resp.CategoryParentCommonElementResp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 品类信息Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CategoryInfoService extends IService<CategoryInfo> {
|
||||
/**
|
||||
* 查询品类信息列表
|
||||
*
|
||||
* @param categoryInfo 品类信息
|
||||
* @return 品类信息集合
|
||||
*/
|
||||
public List<CategoryInfo> list(CategoryInfo categoryInfo);
|
||||
|
||||
/**
|
||||
* 保存
|
||||
* @param categoryInfoSaveModel 保存品类模型
|
||||
* @return 是否成功
|
||||
*/
|
||||
public boolean save(CategoryInfoSaveModel categoryInfoSaveModel);
|
||||
|
||||
/**
|
||||
* 通过品类ID获取父级以上的属性组集合
|
||||
* @param categoryId 品类ID
|
||||
* @return 父级以上的属性组集合
|
||||
*/
|
||||
List<AttributeGroup> getAttributeGroup (Long categoryId);
|
||||
|
||||
/**
|
||||
* 通过品类ID获取父级以上的品牌集合
|
||||
* @param categoryId 品类ID
|
||||
* @return 父级以上的品牌集合
|
||||
*/
|
||||
List<BrandInfo> getBrand (Long categoryId);
|
||||
|
||||
/**
|
||||
* 通过品类ID获取父级以上的属性集合
|
||||
* @param categoryId 品类ID
|
||||
* @return 父级以上的属性集合
|
||||
*/
|
||||
List<AttributeInfo> getAttribute (Long categoryId);
|
||||
|
||||
/**
|
||||
* 通过品类ID获取父级以上的属性、属性组、品牌集合
|
||||
* @param categoryId 品类ID
|
||||
* @return 父级以上的属性、属性组、品牌集合
|
||||
*/
|
||||
CategoryParentCommonElementResp parentCommonElement (Long categoryId);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.CommentInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品评论Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CommentInfoService extends IService<CommentInfo> {
|
||||
/**
|
||||
* 查询商品评论列表
|
||||
*
|
||||
* @param commentInfo 商品评论
|
||||
* @return 商品评论集合
|
||||
*/
|
||||
public List<CommentInfo> list(CommentInfo commentInfo);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.CommentLikeInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 评论点赞Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface CommentLikeInfoService extends IService<CommentLikeInfo> {
|
||||
/**
|
||||
* 查询评论点赞列表
|
||||
*
|
||||
* @param commentLikeInfo 评论点赞
|
||||
* @return 评论点赞集合
|
||||
*/
|
||||
public List<CommentLikeInfo> list(CommentLikeInfo commentLikeInfo);
|
||||
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsAttributeGroup;
|
||||
|
||||
/**
|
||||
* 属性与组中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-03-01
|
||||
*/
|
||||
public interface IAsAttributeGroupService
|
||||
{
|
||||
/**
|
||||
* 查询属性与组中间
|
||||
*
|
||||
* @param id 属性与组中间主键
|
||||
* @return 属性与组中间
|
||||
*/
|
||||
public AsAttributeGroup selectAsAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询属性与组中间列表
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 属性与组中间集合
|
||||
*/
|
||||
public List<AsAttributeGroup> selectAsAttributeGroupList(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 新增属性与组中间
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsAttributeGroup(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 修改属性与组中间
|
||||
*
|
||||
* @param asAttributeGroup 属性与组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsAttributeGroup(AsAttributeGroup asAttributeGroup);
|
||||
|
||||
/**
|
||||
* 批量删除属性与组中间
|
||||
*
|
||||
* @param ids 需要删除的属性与组中间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsAttributeGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除属性与组中间信息
|
||||
*
|
||||
* @param id 属性与组中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsAttributeGroupById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsBrandProject;
|
||||
|
||||
/**
|
||||
* 品牌商品中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAsBrandProjectService
|
||||
{
|
||||
/**
|
||||
* 查询品牌商品中间
|
||||
*
|
||||
* @param id 品牌商品中间主键
|
||||
* @return 品牌商品中间
|
||||
*/
|
||||
public AsBrandProject selectAsBrandProjectById(Long id);
|
||||
|
||||
/**
|
||||
* 查询品牌商品中间列表
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 品牌商品中间集合
|
||||
*/
|
||||
public List<AsBrandProject> selectAsBrandProjectList(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 新增品牌商品中间
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsBrandProject(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 修改品牌商品中间
|
||||
*
|
||||
* @param asBrandProject 品牌商品中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsBrandProject(AsBrandProject asBrandProject);
|
||||
|
||||
/**
|
||||
* 批量删除品牌商品中间
|
||||
*
|
||||
* @param ids 需要删除的品牌商品中间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsBrandProjectByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除品牌商品中间信息
|
||||
*
|
||||
* @param id 品牌商品中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsBrandProjectById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsCategoryAttributeGroup;
|
||||
|
||||
/**
|
||||
* 品类属性组中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAsCategoryAttributeGroupService
|
||||
{
|
||||
/**
|
||||
* 查询品类属性组中间
|
||||
*
|
||||
* @param id 品类属性组中间主键
|
||||
* @return 品类属性组中间
|
||||
*/
|
||||
public AsCategoryAttributeGroup selectAsCategoryAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询品类属性组中间列表
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 品类属性组中间集合
|
||||
*/
|
||||
public List<AsCategoryAttributeGroup> selectAsCategoryAttributeGroupList(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 新增品类属性组中间
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 修改品类属性组中间
|
||||
*
|
||||
* @param asCategoryAttributeGroup 品类属性组中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
|
||||
|
||||
/**
|
||||
* 批量删除品类属性组中间
|
||||
*
|
||||
* @param ids 需要删除的品类属性组中间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除品类属性组中间信息
|
||||
*
|
||||
* @param id 品类属性组中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeGroupById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsCategoryAttribute;
|
||||
|
||||
/**
|
||||
* 品类属性中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAsCategoryAttributeService
|
||||
{
|
||||
/**
|
||||
* 查询品类属性中间
|
||||
*
|
||||
* @param id 品类属性中间主键
|
||||
* @return 品类属性中间
|
||||
*/
|
||||
public AsCategoryAttribute selectAsCategoryAttributeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询品类属性中间列表
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 品类属性中间集合
|
||||
*/
|
||||
public List<AsCategoryAttribute> selectAsCategoryAttributeList(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 新增品类属性中间
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 修改品类属性中间
|
||||
*
|
||||
* @param asCategoryAttribute 品类属性中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
|
||||
|
||||
/**
|
||||
* 批量删除品类属性中间
|
||||
*
|
||||
* @param ids 需要删除的品类属性中间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除品类属性中间信息
|
||||
*
|
||||
* @param id 品类属性中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryAttributeById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsCategoryBrand;
|
||||
|
||||
/**
|
||||
* 品类品牌中间Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAsCategoryBrandService
|
||||
{
|
||||
/**
|
||||
* 查询品类品牌中间
|
||||
*
|
||||
* @param id 品类品牌中间主键
|
||||
* @return 品类品牌中间
|
||||
*/
|
||||
public AsCategoryBrand selectAsCategoryBrandById(Long id);
|
||||
|
||||
/**
|
||||
* 查询品类品牌中间列表
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 品类品牌中间集合
|
||||
*/
|
||||
public List<AsCategoryBrand> selectAsCategoryBrandList(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 新增品类品牌中间
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsCategoryBrand(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 修改品类品牌中间
|
||||
*
|
||||
* @param asCategoryBrand 品类品牌中间
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsCategoryBrand(AsCategoryBrand asCategoryBrand);
|
||||
|
||||
/**
|
||||
* 批量删除品类品牌中间
|
||||
*
|
||||
* @param ids 需要删除的品类品牌中间主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryBrandByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除品类品牌中间信息
|
||||
*
|
||||
* @param id 品类品牌中间主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsCategoryBrandById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AsProdutAttributeInfo;
|
||||
|
||||
/**
|
||||
* 属性信息Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAsProdutAttributeInfoService
|
||||
{
|
||||
/**
|
||||
* 查询属性信息
|
||||
*
|
||||
* @param id 属性信息主键
|
||||
* @return 属性信息
|
||||
*/
|
||||
public AsProdutAttributeInfo selectAsProdutAttributeInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询属性信息列表
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 属性信息集合
|
||||
*/
|
||||
public List<AsProdutAttributeInfo> selectAsProdutAttributeInfoList(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 新增属性信息
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 修改属性信息
|
||||
*
|
||||
* @param asProdutAttributeInfo 属性信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
|
||||
|
||||
/**
|
||||
* 批量删除属性信息
|
||||
*
|
||||
* @param ids 需要删除的属性信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsProdutAttributeInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除属性信息信息
|
||||
*
|
||||
* @param id 属性信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAsProdutAttributeInfoById(Long id);
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
|
||||
/**
|
||||
* 属性组Service接口
|
||||
*
|
||||
* @author CuiShiYu
|
||||
* @date 2024-02-29
|
||||
*/
|
||||
public interface IAttributeGroupService
|
||||
{
|
||||
/**
|
||||
* 查询属性组
|
||||
*
|
||||
* @param id 属性组主键
|
||||
* @return 属性组
|
||||
*/
|
||||
public AttributeGroup selectAttributeGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询属性组列表
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 属性组集合
|
||||
*/
|
||||
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 新增属性组
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAttributeGroup(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 修改属性组
|
||||
*
|
||||
* @param attributeGroup 属性组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAttributeGroup(AttributeGroup attributeGroup);
|
||||
|
||||
/**
|
||||
* 批量删除属性组
|
||||
*
|
||||
* @param ids 需要删除的属性组主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除属性组信息
|
||||
*
|
||||
* @param id 属性组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAttributeGroupById(Long id);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue