Documentation ¶
Index ¶
- func NewAdmin(db *mongo.Database) (admin.AdminInterface, error)
- func NewApplet(db *mongo.Database) (admin.AppletInterface, error)
- func NewClientConfig(db *mongo.Database) (admin.ClientConfigInterface, error)
- func NewForbiddenAccount(db *mongo.Database) (admin.ForbiddenAccountInterface, error)
- func NewIPForbidden(db *mongo.Database) (admin.IPForbiddenInterface, error)
- func NewInvitationRegister(db *mongo.Database) (admin.InvitationRegisterInterface, error)
- func NewLimitUserLoginIP(db *mongo.Database) (admin.LimitUserLoginIPInterface, error)
- func NewRegisterAddFriend(db *mongo.Database) (admin.RegisterAddFriendInterface, error)
- func NewRegisterAddGroup(db *mongo.Database) (admin.RegisterAddGroupInterface, error)
- type Admin
- func (o *Admin) ChangePassword(ctx context.Context, userID string, newPassword string) error
- func (o *Admin) Create(ctx context.Context, admins []*admin.Admin) error
- func (o *Admin) Delete(ctx context.Context, userIDs []string) error
- func (o *Admin) Search(ctx context.Context, pagination pagination.Pagination) (int64, []*admin.Admin, error)
- func (o *Admin) Take(ctx context.Context, account string) (*admin.Admin, error)
- func (o *Admin) TakeUserID(ctx context.Context, userID string) (*admin.Admin, error)
- func (o *Admin) Update(ctx context.Context, account string, update map[string]any) error
- type Applet
- func (o *Applet) Create(ctx context.Context, applets []*admin.Applet) error
- func (o *Applet) Del(ctx context.Context, ids []string) error
- func (o *Applet) FindID(ctx context.Context, ids []string) ([]*admin.Applet, error)
- func (o *Applet) FindOnShelf(ctx context.Context) ([]*admin.Applet, error)
- func (o *Applet) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.Applet, error)
- func (o *Applet) Take(ctx context.Context, id string) (*admin.Applet, error)
- func (o *Applet) Update(ctx context.Context, id string, data map[string]any) error
- type ClientConfig
- type ForbiddenAccount
- func (o *ForbiddenAccount) Create(ctx context.Context, ms []*admin.ForbiddenAccount) error
- func (o *ForbiddenAccount) Delete(ctx context.Context, userIDs []string) error
- func (o *ForbiddenAccount) Find(ctx context.Context, userIDs []string) ([]*admin.ForbiddenAccount, error)
- func (o *ForbiddenAccount) FindAllIDs(ctx context.Context) ([]string, error)
- func (o *ForbiddenAccount) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.ForbiddenAccount, error)
- func (o *ForbiddenAccount) Take(ctx context.Context, userID string) (*admin.ForbiddenAccount, error)
- type IPForbidden
- func (o *IPForbidden) Create(ctx context.Context, ms []*admin.IPForbidden) error
- func (o *IPForbidden) Delete(ctx context.Context, ips []string) error
- func (o *IPForbidden) Find(ctx context.Context, ips []string) ([]*admin.IPForbidden, error)
- func (o *IPForbidden) Search(ctx context.Context, keyword string, state int32, ...) (int64, []*admin.IPForbidden, error)
- func (o *IPForbidden) Take(ctx context.Context, ip string) (*admin.IPForbidden, error)
- type InvitationRegister
- func (o *InvitationRegister) Create(ctx context.Context, v []*admin.InvitationRegister) error
- func (o *InvitationRegister) Del(ctx context.Context, codes []string) error
- func (o *InvitationRegister) Find(ctx context.Context, codes []string) ([]*admin.InvitationRegister, error)
- func (o *InvitationRegister) Search(ctx context.Context, keyword string, state int32, userIDs []string, ...) (int64, []*admin.InvitationRegister, error)
- func (o *InvitationRegister) Take(ctx context.Context, code string) (*admin.InvitationRegister, error)
- func (o *InvitationRegister) Update(ctx context.Context, code string, data map[string]any) error
- type LimitUserLoginIP
- func (o *LimitUserLoginIP) Count(ctx context.Context, userID string) (uint32, error)
- func (o *LimitUserLoginIP) Create(ctx context.Context, ms []*admin.LimitUserLoginIP) error
- func (o *LimitUserLoginIP) Delete(ctx context.Context, ms []*admin.LimitUserLoginIP) error
- func (o *LimitUserLoginIP) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.LimitUserLoginIP, error)
- func (o *LimitUserLoginIP) Take(ctx context.Context, userID string, ip string) (*admin.LimitUserLoginIP, error)
- type RegisterAddFriend
- func (o *RegisterAddFriend) Add(ctx context.Context, registerAddFriends []*admin.RegisterAddFriend) error
- func (o *RegisterAddFriend) Del(ctx context.Context, userIDs []string) error
- func (o *RegisterAddFriend) FindUserID(ctx context.Context, userIDs []string) ([]string, error)
- func (o *RegisterAddFriend) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.RegisterAddFriend, error)
- type RegisterAddGroup
- func (o *RegisterAddGroup) Add(ctx context.Context, registerAddGroups []*admin.RegisterAddGroup) error
- func (o *RegisterAddGroup) Del(ctx context.Context, groupIDs []string) error
- func (o *RegisterAddGroup) FindGroupID(ctx context.Context, groupIDs []string) ([]string, error)
- func (o *RegisterAddGroup) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.RegisterAddGroup, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientConfig ¶
func NewClientConfig(db *mongo.Database) (admin.ClientConfigInterface, error)
func NewForbiddenAccount ¶
func NewForbiddenAccount(db *mongo.Database) (admin.ForbiddenAccountInterface, error)
func NewIPForbidden ¶
func NewIPForbidden(db *mongo.Database) (admin.IPForbiddenInterface, error)
func NewInvitationRegister ¶
func NewInvitationRegister(db *mongo.Database) (admin.InvitationRegisterInterface, error)
func NewLimitUserLoginIP ¶
func NewLimitUserLoginIP(db *mongo.Database) (admin.LimitUserLoginIPInterface, error)
func NewRegisterAddFriend ¶
func NewRegisterAddFriend(db *mongo.Database) (admin.RegisterAddFriendInterface, error)
func NewRegisterAddGroup ¶
func NewRegisterAddGroup(db *mongo.Database) (admin.RegisterAddGroupInterface, error)
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func (*Admin) ChangePassword ¶
func (*Admin) Search ¶
func (o *Admin) Search(ctx context.Context, pagination pagination.Pagination) (int64, []*admin.Admin, error)
func (*Admin) TakeUserID ¶
type Applet ¶
type Applet struct {
// contains filtered or unexported fields
}
func (*Applet) FindOnShelf ¶
type ClientConfig ¶
type ClientConfig struct {
// contains filtered or unexported fields
}
type ForbiddenAccount ¶
type ForbiddenAccount struct {
// contains filtered or unexported fields
}
func (*ForbiddenAccount) Create ¶
func (o *ForbiddenAccount) Create(ctx context.Context, ms []*admin.ForbiddenAccount) error
func (*ForbiddenAccount) Delete ¶
func (o *ForbiddenAccount) Delete(ctx context.Context, userIDs []string) error
func (*ForbiddenAccount) Find ¶
func (o *ForbiddenAccount) Find(ctx context.Context, userIDs []string) ([]*admin.ForbiddenAccount, error)
func (*ForbiddenAccount) FindAllIDs ¶
func (o *ForbiddenAccount) FindAllIDs(ctx context.Context) ([]string, error)
func (*ForbiddenAccount) Search ¶
func (o *ForbiddenAccount) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.ForbiddenAccount, error)
func (*ForbiddenAccount) Take ¶
func (o *ForbiddenAccount) Take(ctx context.Context, userID string) (*admin.ForbiddenAccount, error)
type IPForbidden ¶
type IPForbidden struct {
// contains filtered or unexported fields
}
func (*IPForbidden) Create ¶
func (o *IPForbidden) Create(ctx context.Context, ms []*admin.IPForbidden) error
func (*IPForbidden) Find ¶
func (o *IPForbidden) Find(ctx context.Context, ips []string) ([]*admin.IPForbidden, error)
func (*IPForbidden) Search ¶
func (o *IPForbidden) Search(ctx context.Context, keyword string, state int32, pagination pagination.Pagination) (int64, []*admin.IPForbidden, error)
func (*IPForbidden) Take ¶
func (o *IPForbidden) Take(ctx context.Context, ip string) (*admin.IPForbidden, error)
type InvitationRegister ¶
type InvitationRegister struct {
// contains filtered or unexported fields
}
func (*InvitationRegister) Create ¶
func (o *InvitationRegister) Create(ctx context.Context, v []*admin.InvitationRegister) error
func (*InvitationRegister) Del ¶
func (o *InvitationRegister) Del(ctx context.Context, codes []string) error
func (*InvitationRegister) Find ¶
func (o *InvitationRegister) Find(ctx context.Context, codes []string) ([]*admin.InvitationRegister, error)
func (*InvitationRegister) Search ¶
func (o *InvitationRegister) Search(ctx context.Context, keyword string, state int32, userIDs []string, codes []string, pagination pagination.Pagination) (int64, []*admin.InvitationRegister, error)
func (*InvitationRegister) Take ¶
func (o *InvitationRegister) Take(ctx context.Context, code string) (*admin.InvitationRegister, error)
type LimitUserLoginIP ¶
type LimitUserLoginIP struct {
// contains filtered or unexported fields
}
func (*LimitUserLoginIP) Create ¶
func (o *LimitUserLoginIP) Create(ctx context.Context, ms []*admin.LimitUserLoginIP) error
func (*LimitUserLoginIP) Delete ¶
func (o *LimitUserLoginIP) Delete(ctx context.Context, ms []*admin.LimitUserLoginIP) error
func (*LimitUserLoginIP) Search ¶
func (o *LimitUserLoginIP) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.LimitUserLoginIP, error)
func (*LimitUserLoginIP) Take ¶
func (o *LimitUserLoginIP) Take(ctx context.Context, userID string, ip string) (*admin.LimitUserLoginIP, error)
type RegisterAddFriend ¶
type RegisterAddFriend struct {
// contains filtered or unexported fields
}
func (*RegisterAddFriend) Add ¶
func (o *RegisterAddFriend) Add(ctx context.Context, registerAddFriends []*admin.RegisterAddFriend) error
func (*RegisterAddFriend) Del ¶
func (o *RegisterAddFriend) Del(ctx context.Context, userIDs []string) error
func (*RegisterAddFriend) FindUserID ¶
func (*RegisterAddFriend) Search ¶
func (o *RegisterAddFriend) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.RegisterAddFriend, error)
type RegisterAddGroup ¶
type RegisterAddGroup struct {
// contains filtered or unexported fields
}
func (*RegisterAddGroup) Add ¶
func (o *RegisterAddGroup) Add(ctx context.Context, registerAddGroups []*admin.RegisterAddGroup) error
func (*RegisterAddGroup) Del ¶
func (o *RegisterAddGroup) Del(ctx context.Context, groupIDs []string) error
func (*RegisterAddGroup) FindGroupID ¶
func (*RegisterAddGroup) Search ¶
func (o *RegisterAddGroup) Search(ctx context.Context, keyword string, pagination pagination.Pagination) (int64, []*admin.RegisterAddGroup, error)
Click to show internal directories.
Click to hide internal directories.