1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: userlib.proto
- package server
- import (
- "context"
- "app.yhyue.com/moapp/jy_docs/rpc/userlib/internal/logic"
- "app.yhyue.com/moapp/jy_docs/rpc/userlib/internal/svc"
- "app.yhyue.com/moapp/jy_docs/rpc/userlib/userlib"
- )
- type UserLibServer struct {
- svcCtx *svc.ServiceContext
- }
- func NewUserLibServer(svcCtx *svc.ServiceContext) *UserLibServer {
- return &UserLibServer{
- svcCtx: svcCtx,
- }
- }
- func (s *UserLibServer) UserDocs(ctx context.Context, in *userlib.UserDocsRequest) (*userlib.UserDocsResponse, error) {
- l := logic.NewUserDocsLogic(ctx, s.svcCtx)
- return l.UserDocs(in)
- }
- func (s *UserLibServer) DocCollect(ctx context.Context, in *userlib.UserCollectRequest) (*userlib.UserCollectResponse, error) {
- l := logic.NewDocCollectLogic(ctx, s.svcCtx)
- return l.DocCollect(in)
- }
- func (s *UserLibServer) DocCancelCollect(ctx context.Context, in *userlib.UserCancelRequest) (*userlib.UserDeleteResponse, error) {
- l := logic.NewDocCancelCollectLogic(ctx, s.svcCtx)
- return l.DocCancelCollect(in)
- }
- func (s *UserLibServer) DocDelete(ctx context.Context, in *userlib.UserRecoveryRequest) (*userlib.UserDeleteResponse, error) {
- l := logic.NewDocDeleteLogic(ctx, s.svcCtx)
- return l.DocDelete(in)
- }
- func (s *UserLibServer) DocRestore(ctx context.Context, in *userlib.UserRecoveryRequest) (*userlib.UserRestoreResponse, error) {
- l := logic.NewDocRestoreLogic(ctx, s.svcCtx)
- return l.DocRestore(in)
- }
- func (s *UserLibServer) DocDownload(ctx context.Context, in *userlib.UserCollectRequest) (*userlib.UserCollectResponse, error) {
- l := logic.NewDocDownloadLogic(ctx, s.svcCtx)
- return l.DocDownload(in)
- }
- func (s *UserLibServer) DocPermanentDelete(ctx context.Context, in *userlib.UserRecoveryRequest) (*userlib.UserCollectResponse, error) {
- l := logic.NewDocPermanentDeleteLogic(ctx, s.svcCtx)
- return l.DocPermanentDelete(in)
- }
- func (s *UserLibServer) UserMerge(ctx context.Context, in *userlib.MergeInfo) (*userlib.UserCollectResponse, error) {
- l := logic.NewUserMergeLogic(ctx, s.svcCtx)
- return l.UserMerge(in)
- }
|