Documentation
¶
Index ¶
- type Service
- func (s *Service) Auth(c context.Context, system string) (res []*model.Auth)
- func (s *Service) AuthRelation(c context.Context, roleID, authID int64, state int) (err error)
- func (s *Service) Close()
- func (s *Service) Dashborad(c context.Context, d *publish.Dashboard) (err error)
- func (s *Service) DelAuth(c context.Context, authID int64) (err error)
- func (s *Service) DelRole(c context.Context, roleID int64) (err error)
- func (s *Service) DelUser(c context.Context, userID int64) (err error)
- func (s *Service) DiffPutOss(c context.Context, f io.Reader, filename string) (uri string, err error)
- func (s *Service) GetAuths(c context.Context, name string) (res map[string]map[string]*model.Auth, err error)
- func (s *Service) PackageList(path string) (fileList []string, err error)
- func (s *Service) PackageUpload(file multipart.File, pkgInfo upload.PkgInfo) (err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Role(c context.Context, system string) (res []*model.Role)
- func (s *Service) SaveAuth(c context.Context, authID int64, system, authName, authFlag string) (err error)
- func (s *Service) SaveRole(c context.Context, roleID int64, system, roleName string) (err error)
- func (s *Service) SaveUser(c context.Context, roleID, userID int64, system, userName string) (err error)
- func (s *Service) SendMail(c context.Context, m *mail.Mail, attach *mail.Attach) (err error)
- func (s *Service) User(c context.Context, system string) (res []*model.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service struct info.
func (*Service) AuthRelation ¶
AuthRelation get auth relation.
func (*Service) DiffPutOss ¶
func (s *Service) DiffPutOss(c context.Context, f io.Reader, filename string) (uri string, err error)
DiffPutOss upload diff to oss
func (*Service) GetAuths ¶
func (s *Service) GetAuths(c context.Context, name string) (res map[string]map[string]*model.Auth, err error)
GetAuths get auths.
func (*Service) PackageList ¶
PackageList list the Package Files
func (*Service) PackageUpload ¶
PackageUpload upload package zip file & unzip it
func (*Service) SaveAuth ¶
func (s *Service) SaveAuth(c context.Context, authID int64, system, authName, authFlag string) (err error)
SaveAuth save auth.
func (*Service) SaveUser ¶
func (s *Service) SaveUser(c context.Context, roleID, userID int64, system, userName string) (err error)
SaveUser save user.
Click to show internal directories.
Click to hide internal directories.