Documentation
¶
Index ¶
- Constants
- Variables
- type FileSrv
- type MonitorSrv
- type MsgSrv
- func (s *MsgSrv) Create(ctx context.Context, params *schema.NoticeCreateReq) error
- func (s *MsgSrv) Delete(ctx context.Context, id uint64) error
- func (s *MsgSrv) GetPage(ctx context.Context, params *schema.NoticeGetPageReq) (*schema.NoticeGetPageResp, error)
- func (s *MsgSrv) Update(ctx context.Context, params *schema.NoticeUpdateReq) error
- type RoleSrv
- type UserSrv
- func (s *UserSrv) CheckUser(ctx context.Context, username, password string) (uint64, error)
- func (s *UserSrv) Create(ctx context.Context, req *schema.UserCreateReq, createdBy string) error
- func (s *UserSrv) Delete(ctx context.Context, id uint64) error
- func (s *UserSrv) ExistUserByName(ctx context.Context, username string) bool
- func (s *UserSrv) GetPage(ctx context.Context, req *schema.UserGetPageReq) (*schema.UserGetPageReqResult, error)
- func (s *UserSrv) GetRoles(ctx context.Context, username string) (*[]string, error)
- func (s *UserSrv) GetUserAvatar(ctx context.Context, username string) (string, error)
- func (s *UserSrv) Update(ctx context.Context, req *schema.UserUpdateReq, modifiedBy string) error
Constants ¶
View Source
const (
NoticesKey = "notices"
)
Variables ¶
View Source
var MonitorSet = wire.NewSet(wire.Struct(new(MonitorSrv), "*"))
View Source
var ProviderSet = wire.NewSet(FileSet, RoleSet, UserSet, MonitorSet, NewMsgSrv)
Functions ¶
This section is empty.
Types ¶
type FileSrv ¶
func (*FileSrv) DeleteFile ¶
DeleteFile 删除文件记录
func (*FileSrv) UploadFile ¶
func (s *FileSrv) UploadFile(ctx context.Context, header *multipart.FileHeader, noSave string) (string, error)
UploadFile 上传到本地
type MonitorSrv ¶
type MonitorSrv struct{}
type MsgSrv ¶
type MsgSrv struct { MsgRepo *msg.MsgRepo Ring *redis.Ring // contains filtered or unexported fields }
func (*MsgSrv) GetPage ¶
func (s *MsgSrv) GetPage(ctx context.Context, params *schema.NoticeGetPageReq) (*schema.NoticeGetPageResp, error)
GetPage 获取公告信息
Click to show internal directories.
Click to hide internal directories.