This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
192 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/com/sport/sportsmailserver/dto/CommodityDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package com.sport.sportsmailserver.dto; | ||
|
||
import com.sport.sportsmailserver.entity.CommodityType; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
|
||
/** | ||
* @author itning | ||
* @date 2020/2/13 22:08 | ||
*/ | ||
@Data | ||
public class CommodityDTO implements Serializable { | ||
/** | ||
* <p>商品ID 区分每个商品 | ||
* <p>自动主键生成 | ||
*/ | ||
private String id; | ||
/** | ||
* 商品名 | ||
*/ | ||
private String name; | ||
/** | ||
* 库存,默认为 1 | ||
*/ | ||
private Integer stock; | ||
/** | ||
* <p>单价 | ||
* <p>小数位数2位(角,分) | ||
*/ | ||
private BigDecimal price; | ||
/** | ||
* 商品图片地址(主图片) | ||
*/ | ||
private String imgMain; | ||
/** | ||
* <p>其它图片地址(使用英文分号进行分隔) | ||
* <p>主要用于详情展示 | ||
*/ | ||
private String imgSecond; | ||
/** | ||
* 推荐商品(会展示在首页) | ||
*/ | ||
private Boolean recommended; | ||
/** | ||
* 商品已下架? | ||
*/ | ||
private Boolean takeOff; | ||
/** | ||
* 商品分类 | ||
*/ | ||
private CommodityType commodityType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters