|
@@ -26,18 +26,15 @@ func NewDatadeduplicationLogic(ctx context.Context, svcCtx *svc.ServiceContext)
|
|
|
|
|
|
func (l *DatadeduplicationLogic) Datadeduplication(req types.DedupReq) (*types.DedupResp, error) {
|
|
|
// todo: add your logic here and delete this line
|
|
|
- res,err:=l.svcCtx.Dedup.DataDeduplication(l.ctx,&deduplication.Request{
|
|
|
+ res,_:=l.svcCtx.Dedup.DataDeduplication(l.ctx,&deduplication.Request{
|
|
|
InfoId: req.InfoId,
|
|
|
EntId: req.EntId,
|
|
|
IsInsert:req.IsInsert,
|
|
|
IsEnt: req.IsEnt,
|
|
|
PersonId: req.PersonId,
|
|
|
})
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
return &types.DedupResp{
|
|
|
- Code: 0,
|
|
|
+ Code: res.Code,
|
|
|
Msg: "请求成功",
|
|
|
Data: types.Info{
|
|
|
TotalCount: res.Data.TotalCount,
|