| 1234567891011121314151617 |
- package permlib
- import (
- "context"
- "fmt"
- "github.com/xiaozi/permlib/pb"
- )
- func (e *Engine) syncPerms(ctx context.Context, perms []*pb.PermItem) error {
- resp, err := e.client.syncPermissions(ctx, e.cfg.AppKey, e.cfg.AppSecret, perms)
- if err != nil {
- return fmt.Errorf("permlib: sync permissions failed: %w", err)
- }
- _ = resp
- return nil
- }
|