package com.jwipc.sys.dto;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Data
public class DictDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 4522778442118838261L;
    private String name;
    private String code;
    private String typeCode;
    private String codeWithDesc;

    public String getCodeWithDesc() {
        return StrUtil.format("({}){}", this.code, this.name);
    }
}
