|
@@ -50,6 +50,17 @@ func (receiver ArticleTopic) String() string {
|
|
|
return fmt.Sprint("ArticleTopic{Id:", receiver.Id, ",Image:", receiver.Image, ",TopicName:", receiver.TopicName, ",TopicDesc:", receiver.TopicDesc, "}")
|
|
return fmt.Sprint("ArticleTopic{Id:", receiver.Id, ",Image:", receiver.Image, ",TopicName:", receiver.TopicName, ",TopicDesc:", receiver.TopicDesc, "}")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Authority
|
|
|
|
|
+type Authority struct {
|
|
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:
|
|
|
|
|
+ AuthorityName string `xorm:"authority_name" json:"authorityName"` // 255 0 注释:
|
|
|
|
|
+ AuthorityPath string `xorm:"authority_path" json:"authorityPath"` // 255 0 注释:
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (receiver Authority) String() string {
|
|
|
|
|
+ return fmt.Sprint("Authority{Id:", receiver.Id, ",AuthorityName:", receiver.AuthorityName, ",AuthorityPath:", receiver.AuthorityPath, "}")
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// BackAuthority 后台权限校验
|
|
// BackAuthority 后台权限校验
|
|
|
type BackAuthority struct {
|
|
type BackAuthority struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:id
|
|
Id int64 `json:"id"` // 11 0 注释:id
|
|
@@ -115,10 +126,10 @@ func (receiver BackRoleMenu) String() string {
|
|
|
|
|
|
|
|
// DictData 字典数据
|
|
// DictData 字典数据
|
|
|
type DictData struct {
|
|
type DictData struct {
|
|
|
- Id int64 `json:"id"` // 11 0 注释:
|
|
|
|
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:字典编码
|
|
|
Sort int64 `xorm:"sort" json:"sort"` // 11 0 注释:排序
|
|
Sort int64 `xorm:"sort" json:"sort"` // 11 0 注释:排序
|
|
|
DictLabel string `xorm:"dict_label" json:"dictLabel"` // 255 0 注释:字典标签
|
|
DictLabel string `xorm:"dict_label" json:"dictLabel"` // 255 0 注释:字典标签
|
|
|
- DictValue string `xorm:"dict_value" json:"dictValue"` // 255 0 注释:字典值
|
|
|
|
|
|
|
+ DictValue string `xorm:"dict_value" json:"dictValue"` // 255 0 注释:字典键值
|
|
|
DictType string `xorm:"dict_type" json:"dictType"` // 255 0 注释:字典类型
|
|
DictType string `xorm:"dict_type" json:"dictType"` // 255 0 注释:字典类型
|
|
|
Status string `xorm:"status" json:"status"` // 5 0 注释:状态
|
|
Status string `xorm:"status" json:"status"` // 5 0 注释:状态
|
|
|
CssStyle string `xorm:"css_style" json:"cssStyle"` // 50 0 注释:样式
|
|
CssStyle string `xorm:"css_style" json:"cssStyle"` // 50 0 注释:样式
|
|
@@ -133,9 +144,9 @@ func (receiver DictData) String() string {
|
|
|
// DictType 字典类型
|
|
// DictType 字典类型
|
|
|
type DictType struct {
|
|
type DictType struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:
|
|
Id int64 `json:"id"` // 11 0 注释:
|
|
|
- DictName string `xorm:"dict_name" json:"dictName"` // 50 0 注释:字典名
|
|
|
|
|
- DictType string `xorm:"dict_type" json:"dictType"` // 50 0 注释:字典值
|
|
|
|
|
- Status string `xorm:"status" json:"status"` // 5 0 注释:状态
|
|
|
|
|
|
|
+ DictName string `xorm:"dict_name" json:"dictName"` // 50 0 注释:字典名称
|
|
|
|
|
+ DictType string `xorm:"dict_type" json:"dictType"` // 50 0 注释:字典类型
|
|
|
|
|
+ Status string `xorm:"status" json:"status"` // 5 0 注释:状态(1正常/0停用)
|
|
|
Remark string `xorm:"remark" json:"remark"` // 255 0 注释:备注
|
|
Remark string `xorm:"remark" json:"remark"` // 255 0 注释:备注
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -348,6 +359,45 @@ func (receiver GoodsType) String() string {
|
|
|
return fmt.Sprint("GoodsType{Id:", receiver.Id, ",Sort:", receiver.Sort, ",TypeImage:", receiver.TypeImage, ",TypeName:", receiver.TypeName, ",CreateTime:", receiver.CreateTime, "}")
|
|
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 用户表
|
|
// User 用户表
|
|
|
type User struct {
|
|
type User struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:
|
|
Id int64 `json:"id"` // 11 0 注释:
|