docrestorelogic.go 683 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "context"
  4. "app.yhyue.com/moapp/jy_docs/rpc/userlib/internal/svc"
  5. "app.yhyue.com/moapp/jy_docs/rpc/userlib/userlib"
  6. "github.com/tal-tech/go-zero/core/logx"
  7. )
  8. type DocRestoreLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewDocRestoreLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DocRestoreLogic {
  14. return &DocRestoreLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. func (l *DocRestoreLogic) DocRestore(in *userlib.UserRestoreRequest) (*userlib.UserRestoreResponse, error) {
  21. // todo: add your logic here and delete this line
  22. return &userlib.UserRestoreResponse{}, nil
  23. }