package com.cyksj.model.response.corp;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author chan
 * @date 2022/3/24 下午2:29
 */
@Data
public class CorpUserExternalTagGroupList implements Serializable {
    @JsonProperty("tag_group")
    private List<TagGroup> tagGroupList;

    @Getter
    @Setter
    public static class TagGroup implements Serializable {
        private static final long serialVersionUID = -4301684507150486556L;

        @JsonProperty("group_id")
        private String groupId;

        @JsonProperty("group_name")
        private String groupName;

        @JsonProperty("create_time")
        private Long createTime;

        @JsonProperty("order")
        private Long order;

        @JsonProperty("deleted")
        private Boolean deleted;


        @JsonProperty("tag")
        private List<Tag> tag;

        @Getter
        @Setter
        public static class Tag implements Serializable {
            private static final long serialVersionUID = -4301684507150486556L;

            @JsonProperty("id")
            private String id;

            @JsonProperty("name")
            private String name;

            @JsonProperty("create_time")
            private Long createTime;

            @JsonProperty("order")
            private Long order;

            @JsonProperty("deleted")
            private Boolean deleted;

        }
    }
}
