完善任务接口逻辑以及Eran事件上报接入
This commit is contained in:
@@ -29,8 +29,7 @@ func NewGetTaskListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetTa
|
||||
}
|
||||
|
||||
func (l *GetTaskListLogic) GetTaskList(req *types.GetTaskListReq) (*types.GetTaskListResp, error) {
|
||||
uid := cast.ToInt(l.ctx.Value("uid"))
|
||||
|
||||
uid := cast.ToStringMapInt(l.ctx.Value("data"))["id"]
|
||||
tasks, err := l.svcCtx.TaskModel.FindTasksByCommunity(l.ctx, req.CommunityId)
|
||||
if err != nil {
|
||||
l.Errorw("get task list failed", logx.Field("err", err), logx.Field("communityId", req.CommunityId))
|
||||
|
||||
Reference in New Issue
Block a user