1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package model
- import "go.mongodb.org/mongo-driver/bson/primitive"
- const (
- Perm_Root = "超级管理员"
- Perm_SubAccount = "SubAccount"
- Perm_AccountRole = "AccountRole"
- Perm_Shoe_Public_list = "ShoePublicList"
- Perm_Shoe_Public_edit = "ShoePublicEdit"
- Perm_Shoe_Public_Remove = "ShoePublicRemove"
- Perm_Shoe_Upload = "ShoeUpload"
- Perm_Shoe_Remove = "ShoeRemove"
- )
- type PermItem struct {
- Value string `bson:"value,omitempty" json:"value"`
- Name string `bson:"name,omitempty" json:"name"`
- }
- type Perms struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Group string `bson:"group,omitempty" json:"group"`
- Children []*PermItem `bson:"children,omitempty" json:"children"`
- }
|