12345678910111213141516171819202122232425262728293031323334353637 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/userCenter/api/internal/types"
- "bp.jydev.jianyu360.cn/BaseService/userCenter/entity"
- . "bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type UserDelLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewUserDelLogic(ctx context.Context, svcCtx *svc.ServiceContext) UserDelLogic {
- return UserDelLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *UserDelLogic) UserDel(req types.UserDelReq) (*types.Resp, error) {
- // todo: add your logic here and delete this line
- res, err := entity.UserCenterRpc.UserDel(l.ctx, &UserIdReq{
- Id: req.Id,
- })
- return &types.Resp{
- Error_code: res.ErrorCode,
- Error_msg: res.ErrorMsg,
- Data: res.Data,
- }, err
- }
|