package com.sky.ioc.entity.domain.supermarket;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.concurrent.ThreadLocalRandom;

/**
 * TODO
 * @Description  商品信息
 * @Author LunCe
 * @Date 2023/3/14 14:15
 **/

@Data
@NoArgsConstructor
public class Supermarket {

    private Integer id;
    private String img;
    private String name;
    /**商品单价*/
    private String price;


    public Supermarket(String param1){
        ThreadLocalRandom current = ThreadLocalRandom.current();
        img = "https://p0.itc.cn/q_70/images03/20220604/eb9166efe6fe47bcb80dcb81cb2bebce.jpeg";
        name = param1 ;
        //salesVolume = current.nextInt(1,1000)+"";
        price = current.nextInt(1,30)+"";
    }
}
