|
|
@@ -50,19 +50,67 @@ func (receiver ArticleTopic) String() string {
|
|
|
return fmt.Sprint("ArticleTopic{Id:", receiver.Id, ",Image:", receiver.Image, ",TopicName:", receiver.TopicName, ",TopicDesc:", receiver.TopicDesc, "}")
|
|
|
}
|
|
|
|
|
|
-// Authority
|
|
|
-type Authority struct {
|
|
|
+// BackAuthority
|
|
|
+type BackAuthority struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:id
|
|
|
AuthorityName string `xorm:"authority_name" json:"authorityName"` // 255 0 注释:接口名
|
|
|
AuthorityPath string `xorm:"authority_path" json:"authorityPath"` // 255 0 注释:接口路径
|
|
|
Method string `xorm:"method" json:"method"` // 8 0 注释:方法
|
|
|
State string `xorm:"state" json:"state"` // 5 0 注释:接口是否启用(0关闭,1启用)
|
|
|
- AuthorityVerification string `xorm:"authority_verification" json:"authorityVerification"` // 5 0 注释:权限校验
|
|
|
+ AuthorityVerification string `xorm:"authority_verification" json:"authorityVerification"` // 255 0 注释:权限校验
|
|
|
CreateTime time.Time `xorm:"create_time" json:"createTime"` // 0 0 注释:创建时间
|
|
|
}
|
|
|
|
|
|
-func (receiver Authority) String() string {
|
|
|
- return fmt.Sprint("Authority{Id:", receiver.Id, ",AuthorityName:", receiver.AuthorityName, ",AuthorityPath:", receiver.AuthorityPath, ",Method:", receiver.Method, ",State:", receiver.State, ",AuthorityVerification:", receiver.AuthorityVerification, ",CreateTime:", receiver.CreateTime, "}")
|
|
|
+func (receiver BackAuthority) String() string {
|
|
|
+ return fmt.Sprint("BackAuthority{Id:", receiver.Id, ",AuthorityName:", receiver.AuthorityName, ",AuthorityPath:", receiver.AuthorityPath, ",Method:", receiver.Method, ",State:", receiver.State, ",AuthorityVerification:", receiver.AuthorityVerification, ",CreateTime:", receiver.CreateTime, "}")
|
|
|
+}
|
|
|
+
|
|
|
+// BackMenu
|
|
|
+type BackMenu struct {
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:id
|
|
|
+ BackMenuName string `xorm:"back_menu_name" json:"backMenuName"` // 255 0 注释:菜单名称
|
|
|
+ BackMenuPater int64 `xorm:"back_menu_pater" json:"backMenuPater"` // 11 0 注释:父级菜单
|
|
|
+ Sort int64 `xorm:"sort" json:"sort"` // 11 0 注释:排序
|
|
|
+ Icon string `xorm:"icon" json:"icon"` // 255 0 注释:图标
|
|
|
+ Remark string `xorm:"remark" json:"remark"` // 255 0 注释:备注
|
|
|
+ BackRouterPath string `xorm:"back_router_path" json:"backRouterPath"` // 255 0 注释:路由路径
|
|
|
+ State string `xorm:"state" json:"state"` // 255 0 注释:状态
|
|
|
+}
|
|
|
+
|
|
|
+func (receiver BackMenu) String() string {
|
|
|
+ return fmt.Sprint("BackMenu{Id:", receiver.Id, ",BackMenuName:", receiver.BackMenuName, ",BackMenuPater:", receiver.BackMenuPater, ",Sort:", receiver.Sort, ",Icon:", receiver.Icon, ",Remark:", receiver.Remark, ",BackRouterPath:", receiver.BackRouterPath, ",State:", receiver.State, "}")
|
|
|
+}
|
|
|
+
|
|
|
+// BackRole
|
|
|
+type BackRole struct {
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:
|
|
|
+ RoleName string `xorm:"role_name" json:"roleName"` // 255 0 注释:
|
|
|
+}
|
|
|
+
|
|
|
+func (receiver BackRole) String() string {
|
|
|
+ return fmt.Sprint("BackRole{Id:", receiver.Id, ",RoleName:", receiver.RoleName, "}")
|
|
|
+}
|
|
|
+
|
|
|
+// BackRoleAuthority
|
|
|
+type BackRoleAuthority struct {
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:
|
|
|
+ RoleId int64 `xorm:"role_id" json:"roleId"` // 11 0 注释:角色id
|
|
|
+ AuthorityId int64 `xorm:"authority_id" json:"authorityId"` // 11 0 注释:权限id
|
|
|
+}
|
|
|
+
|
|
|
+func (receiver BackRoleAuthority) String() string {
|
|
|
+ return fmt.Sprint("BackRoleAuthority{Id:", receiver.Id, ",RoleId:", receiver.RoleId, ",AuthorityId:", receiver.AuthorityId, "}")
|
|
|
+}
|
|
|
+
|
|
|
+// BackRoleMenu
|
|
|
+type BackRoleMenu struct {
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:
|
|
|
+ RoleId int64 `xorm:"role_id" json:"roleId"` // 11 0 注释:角色id
|
|
|
+ MenuId int64 `xorm:"menu_id" json:"menuId"` // 11 0 注释:枚舉id
|
|
|
+}
|
|
|
+
|
|
|
+func (receiver BackRoleMenu) String() string {
|
|
|
+ return fmt.Sprint("BackRoleMenu{Id:", receiver.Id, ",RoleId:", receiver.RoleId, ",MenuId:", receiver.MenuId, "}")
|
|
|
}
|
|
|
|
|
|
// Goods
|
|
|
@@ -234,45 +282,6 @@ func (receiver GoodsType) String() string {
|
|
|
return fmt.Sprint("GoodsType{Id:", receiver.Id, ",Sort:", receiver.Sort, ",TypeImage:", receiver.TypeImage, ",TypeName:", receiver.TypeName, ",CreateTime:", receiver.CreateTime, "}")
|
|
|
}
|
|
|
|
|
|
-// ManageUser
|
|
|
-type ManageUser struct {
|
|
|
- Id int64 `json:"id"` // 11 0 注释:
|
|
|
- Name string `xorm:"name" json:"name"` // 255 0 注释:名称
|
|
|
- Username string `xorm:"username" json:"username"` // 255 0 注释:账号
|
|
|
- Password string `xorm:"password" json:"password"` // 255 0 注释:密码
|
|
|
- CreationTime int64 `xorm:"creation_time" json:"creationTime"` // 11 0 注释:账号创建时间
|
|
|
- LoginTime int64 `xorm:"login_time" json:"loginTime"` // 11 0 注释:登录时间
|
|
|
- Status string `xorm:"status" json:"status"` // 255 0 注释:账号状态
|
|
|
- RoleId int64 `xorm:"role_id" json:"roleId"` // 11 0 注释:角色id
|
|
|
- Phone string `xorm:"phone" json:"phone"` // 255 0 注释:手机
|
|
|
- Email string `xorm:"email" json:"email"` // 255 0 注释:邮箱
|
|
|
- Avatar string `xorm:"avatar" json:"avatar"` // 255 0 注释:头像
|
|
|
-}
|
|
|
-
|
|
|
-func (receiver ManageUser) String() string {
|
|
|
- return fmt.Sprint("ManageUser{Id:", receiver.Id, ",Name:", receiver.Name, ",Username:", receiver.Username, ",Password:", receiver.Password, ",CreationTime:", receiver.CreationTime, ",LoginTime:", receiver.LoginTime, ",Status:", receiver.Status, ",RoleId:", receiver.RoleId, ",Phone:", receiver.Phone, ",Email:", receiver.Email, ",Avatar:", receiver.Avatar, "}")
|
|
|
-}
|
|
|
-
|
|
|
-// Role
|
|
|
-type Role struct {
|
|
|
- Id int64 `json:"id"` // 11 0 注释:
|
|
|
- RoleName string `xorm:"role_name" json:"roleName"` // 255 0 注释:
|
|
|
-}
|
|
|
-
|
|
|
-func (receiver Role) String() string {
|
|
|
- return fmt.Sprint("Role{Id:", receiver.Id, ",RoleName:", receiver.RoleName, "}")
|
|
|
-}
|
|
|
-
|
|
|
-// RoleAuthority
|
|
|
-type RoleAuthority struct {
|
|
|
- AuthorityId int64 `xorm:"authority_id" json:"authorityId"` // 11 0 注释:
|
|
|
- RoleId int64 `xorm:"role_id" json:"roleId"` // 11 0 注释:
|
|
|
-}
|
|
|
-
|
|
|
-func (receiver RoleAuthority) String() string {
|
|
|
- return fmt.Sprint("RoleAuthority{AuthorityId:", receiver.AuthorityId, ",RoleId:", receiver.RoleId, "}")
|
|
|
-}
|
|
|
-
|
|
|
// User
|
|
|
type User struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:
|