30 lines
576 B
Kotlin
30 lines
576 B
Kotlin
package top.fatweb.api.entity.permission
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField
|
|
import com.baomidou.mybatisplus.annotation.TableId
|
|
import com.baomidou.mybatisplus.annotation.TableName
|
|
import java.io.Serializable
|
|
|
|
/**
|
|
* Power entity
|
|
*
|
|
* @author FatttSnake
|
|
* @since 1.0.0
|
|
*/
|
|
@TableName("t_power")
|
|
class Power : Serializable {
|
|
|
|
@TableId("id")
|
|
var id: Long? = null
|
|
|
|
/**
|
|
* 权限类型
|
|
*/
|
|
@TableField("type_id")
|
|
var typeId: Int? = null
|
|
|
|
override fun toString(): String {
|
|
return "Power(id=$id, typeId=$typeId)"
|
|
}
|
|
}
|