Documentation ¶
Index ¶
- Variables
- type Authority
- func (b *Authority) CreateAuthority(auth data.SysAuthority) (authority data.SysAuthority, err error)
- func (b *Authority) DeleteAuthority(auth *data.SysAuthority) error
- func (b *Authority) GetAuthorityInfo(auth data.SysAuthority) (sa data.SysAuthority, err error)
- func (b *Authority) GetAuthorityInfoList(info rhttp.PageInfo) (list interface{}, total int64, err error)
- func (b *Authority) SetDataAuthority(auth data.SysAuthority) error
- func (b *Authority) UpdateAuthority(auth data.SysAuthority) (authority data.SysAuthority, err error)
- type Business
- type Casbin
- func (b *Casbin) AddPolicies(rules [][]string) error
- func (b *Casbin) Casbin() *casbin.SyncedCachedEnforcer
- func (b *Casbin) ClearCasbin(v int, p ...string) bool
- func (b *Casbin) FreshCasbin() (err error)
- func (b *Casbin) GetPolicyPathByAuthorityId(AuthorityID uint) (pathMaps []dto.CasbinInfo)
- func (b *Casbin) RemoveFilteredPolicy(authorityId string) error
- func (b *Casbin) SyncPolicy(authorityId string, rules [][]string) error
- func (b *Casbin) UpdateCasbin(AuthorityID uint, casbinInfos []dto.CasbinInfo) error
- func (b *Casbin) UpdateCasbinApi(oldPath string, newPath string, oldMethod string, newMethod string) error
- type FileUploadAndDownload
- func (e *FileUploadAndDownload) CreateFileChunk(id uint, fileChunkPath string, fileChunkNumber int) error
- func (e *FileUploadAndDownload) DeleteFile(file data.ExaFileUploadAndDownload) (err error)
- func (e *FileUploadAndDownload) DeleteFileChunk(fileMd5 string, filePath string) error
- func (e *FileUploadAndDownload) EditFileName(file data.ExaFileUploadAndDownload) (err error)
- func (e *FileUploadAndDownload) FindFile(id uint) (data.ExaFileUploadAndDownload, error)
- func (e *FileUploadAndDownload) FindOrCreateFile(fileMd5 string, fileName string, chunkTotal int) (file data.ExaFile, err error)
- func (e *FileUploadAndDownload) GetFileRecordInfoList(info rhttp.PageInfo) (list interface{}, total int64, err error)
- func (e *FileUploadAndDownload) Upload(file data.ExaFileUploadAndDownload) error
- func (e *FileUploadAndDownload) UploadFile(header *multipart.FileHeader, noSave string) (file data.ExaFileUploadAndDownload, err error)
- type Jwt
- type OperationRecord
- func (b *OperationRecord) CreateSysOperationRecord(sysOperationRecord data.SysOperationRecord) (err error)
- func (b *OperationRecord) DeleteSysOperationRecord(sysOperationRecord data.SysOperationRecord) (err error)
- func (b *OperationRecord) DeleteSysOperationRecordByIds(ids rhttp.IdsReq) (err error)
- func (b *OperationRecord) GetSysOperationRecord(id uint) (sysOperationRecord data.SysOperationRecord, err error)
- func (b *OperationRecord) GetSysOperationRecordInfoList(info dto.SysOperationRecordSearch) (list interface{}, total int64, err error)
- type User
- func (b *User) ChangePassword(u *data.SysUser, newPassword string) (userInter *data.SysUser, err error)
- func (b *User) DeleteUser(id int) (err error)
- func (b *User) FindUserById(id uint) (user *data.SysUser, err error)
- func (b *User) GetUserInfoList(info rhttp.PageInfo) (list interface{}, total int64, err error)
- func (b *User) Login(u *data.SysUser) (userInter *data.SysUser, err error)
- func (b *User) Register(u data.SysUser) (userInter data.SysUser, err error)
- func (b *User) ResetPassword(ID uint) (err error)
- func (b *User) SetSelfInfo(req data.SysUser) error
- func (b *User) SetUserAuthorities(id uint, authorityIds []uint) (err error)
- func (b *User) SetUserAuthority(id uint, authorityId uint) (err error)
- func (b *User) SetUserInfo(req data.SysUser) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRoleExistence = errors.New("存在相同角色id")
View Source
var ProviderSet = wire.NewSet(NewBusiness)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
*Business
}
func NewAuthority ¶
func (*Authority) CreateAuthority ¶
func (b *Authority) CreateAuthority(auth data.SysAuthority) (authority data.SysAuthority, err error)
func (*Authority) DeleteAuthority ¶
func (b *Authority) DeleteAuthority(auth *data.SysAuthority) error
func (*Authority) GetAuthorityInfo ¶
func (b *Authority) GetAuthorityInfo(auth data.SysAuthority) (sa data.SysAuthority, err error)
func (*Authority) GetAuthorityInfoList ¶
func (*Authority) SetDataAuthority ¶
func (b *Authority) SetDataAuthority(auth data.SysAuthority) error
func (*Authority) UpdateAuthority ¶
func (b *Authority) UpdateAuthority(auth data.SysAuthority) (authority data.SysAuthority, err error)
type Casbin ¶
type Casbin struct {
*Business
}
func (*Casbin) AddPolicies ¶
func (*Casbin) FreshCasbin ¶
func (*Casbin) GetPolicyPathByAuthorityId ¶
func (b *Casbin) GetPolicyPathByAuthorityId(AuthorityID uint) (pathMaps []dto.CasbinInfo)
func (*Casbin) RemoveFilteredPolicy ¶
func (*Casbin) UpdateCasbin ¶
func (b *Casbin) UpdateCasbin(AuthorityID uint, casbinInfos []dto.CasbinInfo) error
type FileUploadAndDownload ¶
type FileUploadAndDownload struct {
*Business
}
func NewFileUploadAndDownload ¶
func NewFileUploadAndDownload(biz *Business) *FileUploadAndDownload
func (*FileUploadAndDownload) CreateFileChunk ¶
func (e *FileUploadAndDownload) CreateFileChunk(id uint, fileChunkPath string, fileChunkNumber int) error
func (*FileUploadAndDownload) DeleteFile ¶
func (e *FileUploadAndDownload) DeleteFile(file data.ExaFileUploadAndDownload) (err error)
func (*FileUploadAndDownload) DeleteFileChunk ¶
func (e *FileUploadAndDownload) DeleteFileChunk(fileMd5 string, filePath string) error
func (*FileUploadAndDownload) EditFileName ¶
func (e *FileUploadAndDownload) EditFileName(file data.ExaFileUploadAndDownload) (err error)
EditFileName 编辑文件名或者备注
func (*FileUploadAndDownload) FindFile ¶
func (e *FileUploadAndDownload) FindFile(id uint) (data.ExaFileUploadAndDownload, error)
func (*FileUploadAndDownload) FindOrCreateFile ¶
func (*FileUploadAndDownload) GetFileRecordInfoList ¶
func (e *FileUploadAndDownload) GetFileRecordInfoList(info rhttp.PageInfo) (list interface{}, total int64, err error)
func (*FileUploadAndDownload) Upload ¶
func (e *FileUploadAndDownload) Upload(file data.ExaFileUploadAndDownload) error
func (*FileUploadAndDownload) UploadFile ¶
func (e *FileUploadAndDownload) UploadFile(header *multipart.FileHeader, noSave string) (file data.ExaFileUploadAndDownload, err error)
type Jwt ¶
type Jwt struct {
*Business
}
func (*Jwt) IsBlacklist ¶
func (*Jwt) JsonInBlacklist ¶
func (b *Jwt) JsonInBlacklist(jwtList data.JwtBlacklist) (err error)
type OperationRecord ¶
type OperationRecord struct {
*Business
}
func NewOperationRecord ¶
func NewOperationRecord(biz *Business) *OperationRecord
func (*OperationRecord) CreateSysOperationRecord ¶
func (b *OperationRecord) CreateSysOperationRecord(sysOperationRecord data.SysOperationRecord) (err error)
func (*OperationRecord) DeleteSysOperationRecord ¶
func (b *OperationRecord) DeleteSysOperationRecord(sysOperationRecord data.SysOperationRecord) (err error)
func (*OperationRecord) DeleteSysOperationRecordByIds ¶
func (b *OperationRecord) DeleteSysOperationRecordByIds(ids rhttp.IdsReq) (err error)
func (*OperationRecord) GetSysOperationRecord ¶
func (b *OperationRecord) GetSysOperationRecord(id uint) (sysOperationRecord data.SysOperationRecord, err error)
func (*OperationRecord) GetSysOperationRecordInfoList ¶
func (b *OperationRecord) GetSysOperationRecordInfoList(info dto.SysOperationRecordSearch) (list interface{}, total int64, err error)
type User ¶
type User struct {
*Business
}
func (*User) ChangePassword ¶
func (*User) DeleteUser ¶
func (*User) GetUserInfoList ¶
func (*User) ResetPassword ¶
func (*User) SetUserAuthorities ¶
func (*User) SetUserAuthority ¶
Click to show internal directories.
Click to hide internal directories.