package com.test;

import cn.hutool.core.annotation.Alias;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author sangkuofeng
 * @date 2024/12/6 18:28
 */
@NoArgsConstructor
@Data
public class ItemResult {

    /**
     * total
     */
    @JSONField(name = "total")
    private Integer total;
    /**
     * data
     */
    @JSONField(name = "data")
    private List<DataDto> data;

    /**
     * DataDto
     */
    @NoArgsConstructor
    @Data
    public static class DataDto {
        /**
         * xh
         */
        @Alias(value = "序号")
        @JSONField(name = "xh")
        private Integer xh;
        /**
         * note
         */
        @Alias(value = "描述")
        @JSONField(name = "note")
        private String note;
        /**
         * itemType
         */
        @Alias(value = "类型")
        @JSONField(name = "itemType")
        private String itemType;
        /**
         * itemBz
         */
        @Alias(value = "备注")
        @JSONField(name = "itemBz")
        private String itemBz;
        /**
         * dictCode
         */
        @Alias(value = "字典KEY")
        @JSONField(name = "dictCode")
        private String dictCode;
        /**
         * parentCode
         */
        @Alias(value = "上级代码")
        @JSONField(name = "parentCode")
        private String parentCode;
        /**
         * itemCode
         */
        @Alias(value = "字典项Code")
        @JSONField(name = "itemCode")
        private String itemCode;
        /**
         * itemValue
         */
        @Alias(value = "字典项Value")
        @JSONField(name = "itemValue")
        private String itemValue;
        /**
         * inUse
         */
        @Alias(value = "是否在用，1在用")
        @JSONField(name = "inUse")
        private String inUse;
    }
}


