1234567891011121314151617181920212223242526272829303132333435363738 |
- package logic
- import (
- "app.yhyue.com/moapp/jy_docs/rpc/userlib/internal/svc"
- "app.yhyue.com/moapp/jy_docs/rpc/userlib/userlib"
- userLibService "app.yhyue.com/moapp/jy_docs/services/userlib"
- "context"
- "github.com/tal-tech/go-zero/core/logx"
- )
- type DocPermanentDeleteLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewDocPermanentDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DocPermanentDeleteLogic {
- return &DocPermanentDeleteLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- func (l *DocPermanentDeleteLogic) DocPermanentDelete(in *userlib.UserRecoveryRequest) (*userlib.UserCollectResponse, error) {
- // todo: add your logic here and delete this line
- result := &userlib.UserCollectResponse{}
- code,msg:= userLibService.UserDocPermanentDelete(in.UserDocId,in.AppId,in.UserId)
- if code {
- result.Code = 1
- result.Message = msg
- return result,nil
- }
- result.Code = 0
- result.Message = msg
- return result, nil
- }
|