Reconstruct the permission system
This commit is contained in:
38
src/main/kotlin/top/fatweb/api/entity/permission/Module.kt
Normal file
38
src/main/kotlin/top/fatweb/api/entity/permission/Module.kt
Normal file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 模块表
|
||||
* </p>
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 2023-10-25
|
||||
*/
|
||||
@TableName("t_module")
|
||||
class Module : Serializable {
|
||||
|
||||
@TableId("id")
|
||||
var id: Long? = null
|
||||
|
||||
/**
|
||||
* 模块名
|
||||
*/
|
||||
@TableField("name")
|
||||
var name: String? = null
|
||||
|
||||
/**
|
||||
* 权限ID
|
||||
*/
|
||||
@TableField("power_id")
|
||||
var powerId: Long? = null
|
||||
|
||||
override fun toString(): String {
|
||||
return "Module(id=$id, name=$name, powerId=$powerId)"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user