package com.willalp.web.demo.treetable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.willalp.common.core.domain.TreeEntity;
import lombok.Data;

/**
 * All rights Reserved, Designed By www.sunseagear.com
 *
 * @version V1.0
 * @package test.treetable
 * @title: 树形结构表控制器
 * @description: 树形结构表控制器
 * @author: admin
 * @date: 2019-11-13 21:38:33
 * @copyright: www.sunseagear.com Inc. All rights reserved.
 */

@Data
@TableName("demo_tree_table")
@SuppressWarnings("serial")
public class TreeTable extends TreeEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id; //id

    @TableField(value = "name")
    private String name;  //地理编码
    @TableField(value = "geocoding")
    private String geocoding;  //地理编码
    @TableField(value = "postal_code")
    private String postalCode;  //邮政编码
    @Override
    public String getId(){
        return id.toString();
    }
}
