package com.gingersoft.supply_chain.mvp.bean;

import java.util.List;

import lombok.Data;

/**
 * @author 宇航.
 * User: admin
 * Date: 2020/11/26
 * Time: 16:00
 * Use: 食品分類
 */
@Data
public class FoodCategoryResultBean {

    private boolean success;
    private long sysTime;
    private DataBean data;
    private String errMsg;
    @Data
    public static class DataBean {
        /**
         * count : 1
         * list : [{"id":6,"uid":26,"brandId":1,"restaurantId":26,"parentId":0,"name":"果蔬品","sort":1,"remarks":"備註","createTime":1605944097385,"updateTime":1605944097044}]
         */
        private int count;
        private List<FoodCategoryBean> list;

        @Data
        public static class FoodCategoryBean {
            /**
             * id : 6
             * uid : 26
             * brandId : 1
             * restaurantId : 26
             * parentId : 0
             * name : 果蔬品
             * sort : 1
             * remarks : 備註
             * createTime : 1605944097385
             * updateTime : 1605944097044
             */
            private int id;
            private int uid;
            private int brandId;
            private int restaurantId;
            private int parentId;
            private String name;
            private int sort;
            private String remarks;
            private long createTime;
            private long updateTime;
            private Integer deletes;
            /**
             * 子類
             */
            private List<FoodCategoryBean> list;
        }
    }
}
