Documentation ¶
Index ¶
- Constants
- type Module
- func (m Module) AddAppRelation(app model_app.Application) error
- func (m Module) AddAppRelations(list []model_app.Application) error
- func (m Module) Exist(query interface{}) bool
- func (m Module) FindAll(query, selector interface{}) (results []Module, err error)
- func (m Module) FindOne() (Module, error)
- func (m Module) FindPageFilter(page, limit int, query, selector interface{}, fields ...string) ([]Module, error)
- func (m Module) Insert() (int64, error)
- func (m Module) Remove() error
- func (m Module) RemoveRelation(app model_app.Application) error
- func (m Module) RemoveRelations(list []model_app.Application) error
- func (m Module) ToJson() string
- func (m Module) TotalCount(query, selector interface{}) (int, error)
- func (m Module) Update() error
Constants ¶
View Source
const ( DataModulePermissionALL = "Model_ALL" DataModulePermissionCreate = "Model_CREATE" DataModulePermissionSelect = "Model_SELECT" DataModulePermissionEdit = "Model_EDIT" DataModulePermissionDelete = "Model_DELETE" )
View Source
const (
CollectionModule = mongo_index.CollectionModule
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct { Id int64 `json:"id,omitempty" bson:"_id,omitempty"` Name string `json:"name,omitempty" bson:"name,omitempty"` ApiDomain string `json:"api_domain,omitempty" bson:"api_domain,omitempty"` //无域名地址 www.flywithme.top Path string `json:"path,omitempty" bson:"path,omitempty"` //业务线Path Desc string `json:"desc,omitempty" bson:"desc,omitempty"` CreateTime int64 `json:"create_time,omitempty" bson:"create_time,omitempty"` UpdateTime int64 `json:"update_time,omitempty" bson:"update_time,omitempty"` Apps []model_app.Application `json:"apps,omitempty" bson:"apps,omitempty"` }
业务线 模块
func (Module) AddAppRelation ¶
func (m Module) AddAppRelation(app model_app.Application) error
func (Module) AddAppRelations ¶
func (m Module) AddAppRelations(list []model_app.Application) error
func (Module) FindPageFilter ¶
func (Module) RemoveRelation ¶
func (m Module) RemoveRelation(app model_app.Application) error
func (Module) RemoveRelations ¶
func (m Module) RemoveRelations(list []model_app.Application) error
func (Module) TotalCount ¶
Click to show internal directories.
Click to hide internal directories.