package linestory import ( "go_dreamfactory/comm" "go_dreamfactory/pb" ) // 支线剧情任务-章节 func (this *apiComp) ChapterCheck(session comm.IUserSession, req *pb.LinestoryChapterReq) (errdata *pb.ErrorData) { return } func (this *apiComp) Chapter(session comm.IUserSession, req *pb.LinestoryChapterReq) (errdata *pb.ErrorData) { uid := session.GetUserId() taskMap := this.module.modelLinestory.getChapters(uid) rsp := &pb.LinestoryChapterResp{ TaskChapter: taskMap, } session.SendMsg(string(this.module.GetType()), LinestorySubTypeChapter, rsp) return }