Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id" map:"_id"` Type string `bson:"type" json:"type" map:"type"` Name string `bson:"name" json:"name" map:"name"` Path string `bson:"path" json:"path" map:"path"` Order int64 `bson:"order" json:"order" map:"order"` Meta ApplicationMeta `bson:"meta" json:"meta" map:"meta"` Enable bool `bson:"enable" json:"enable" map:"enable"` DefaultModuleAction string `bson:"default_module_action" json:"default_module_action" map:"default_module_action"` Modules map[string]ApplicationModule `bson:"modules" json:"modules" map:"modules"` CreateTime time.Time `bson:"create_time" json:"create_time" map:"create_time"` //创建时间 UpdateTime time.Time `bson:"update_time" json:"update_time" map:"update_time"` //更新时间 }
/basic/application/index
type ApplicationMeta ¶
type ApplicationMeta struct { Title string `bson:"title" json:"title" map:"title"` Affix bool `bson:"affix" json:"affix" map:"affix"` Icon string `bson:"icon" json:"icon,omitempty" map:"icon"` FrameSrc string `bson:"frame_src" json:"frame_src,omitempty" map:"frame_src"` HideBreadcrumb bool `bson:"hide_breadcrumb" json:"hide_breadcrumb,omitempty" map:"hide_breadcrumb"` CarryParam bool `bson:"carry_param" json:"carry_param,omitempty" map:"carry_param"` HideChildrenInMenu bool `bson:"hide_children_in_menu" json:"hide_children_in_menu,omitempty" map:"hide_children_in_menu"` HideTab bool `bson:"hide_tab" json:"hide_tab,omitempty" map:"hide_tab"` HideMenu bool `bson:"hide_menu" json:"hide_menu,omitempty" map:"hide_menu"` }
type ApplicationModule ¶
type ApplicationModule struct { Type string `bson:"type" json:"type" map:"type"` Name string `bson:"name" json:"name" map:"name"` Path string `bson:"path" json:"path" map:"path"` Order int64 `bson:"order" json:"order" map:"order"` Meta ApplicationMeta `bson:"meta" json:"meta" map:"meta"` Enable bool `bson:"enable" json:"enable" map:"enable"` Actions map[string]ApplicationModuleAction `bson:"actions" json:"actions" map:"actions"` }
type ApplicationModuleAction ¶
type ApplicationModuleAction struct { Type string `bson:"type" json:"type" map:"type"` Name string `bson:"name" json:"name" map:"name"` Path string `bson:"path" json:"path" map:"path"` Order int64 `bson:"order" json:"order" map:"order"` Meta ApplicationMeta `bson:"meta" json:"meta" map:"meta"` Enable bool `bson:"enable" json:"enable" map:"enable"` Method []string `bson:"method" json:"method" map:"method"` }
type Role ¶
type Role struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id" map:"_id"` Name string `bson:"name" json:"name" map:"name"` Users []primitive.ObjectID `bson:"users" json:"users" map:"users"` Right RoleRight `bson:"right" json:"right" map:"right"` Enable bool `bson:"enable" json:"enable" map:"enable"` Delete bool `bson:"delete" json:"delete" map:"delete"` CreateTime time.Time `bson:"create_time" json:"create_time" map:"create_time"` //创建时间 UpdateTime time.Time `bson:"update_time" json:"update_time" map:"update_time"` //更新时间 }
type RoleRight ¶
type RoleRight struct { Scope int `bson:"scope" json:"scope" map:"scope"` Applications map[string]Application `bson:"applications" json:"applications" map:"applications"` }
type Token ¶
type Token struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id" map:"_id"` UserID primitive.ObjectID `bson:"user_id" json:"user_id" map:"user_id"` UserName string `bson:"user_name" json:"user_name" map:"user_name"` TokenType string `bson:"token_type" json:"token_type" map:"token_type"` //类型 Token string `bson:"token" json:"token" map:"token"` SignInfo TokenSignInfo `bson:"sign_info" json:"sign_info" map:"sign_info"` ExpiredTime time.Time `bson:"expired_time" json:"expired_time" map:"expired_time"` //过期时间 CreateTime time.Time `bson:"create_time" json:"create_time" map:"create_time"` //创建时间 UpdateTime time.Time `bson:"update_time" json:"update_time" map:"update_time"` //更新时间 }
type TokenSignInfo ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"user_id" map:"_id"` Name string `bson:"name" json:"username" map:"name"` RealName string `bson:"real_name" json:"real_name" map:"real_name"` Email string `bson:"email" json:"email" map:"email"` Password string `bson:"password" json:"-" map:"password"` Avatar string `bson:"avatar" json:"avatar" map:"avatar"` Description string `bson:"description" json:"description" map:"description"` Enable bool `bson:"enable" json:"enable" map:"enable"` Delete bool `bson:"delete" json:"delete" map:"delete"` Setting UserSetting `bson:"setting" json:"setting" map:"setting"` CreateTime time.Time `bson:"create_time" json:"create_time" map:"create_time"` //创建时间 UpdateTime time.Time `bson:"update_time" json:"update_time" map:"update_time"` //更新时间 }
Click to show internal directories.
Click to hide internal directories.