1234567891011121314151617181920212223242526272829303132 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/entManageApplication/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/entManageApplication/api/internal/types"
- . "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/entmanageapplication"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type DelUsePersonLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewDelUsePersonLogic(ctx context.Context, svcCtx *svc.ServiceContext) DelUsePersonLogic {
- return DelUsePersonLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *DelUsePersonLogic) DelUsePerson(req types.DelUsePersonReq) (*types.Resp, error) {
- // todo: add your logic here and delete this line
- res, err := l.svcCtx.EntManageApplicationRpc.DelUsePerson(l.ctx, &DelUsePersonReq{
- EntnichePowerId: req.EntnichePowerId,
- })
- return &types.Resp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err
- }
|