diff --git a/cmd/internal/logic/supply.go b/cmd/internal/logic/supply.go index 0bf1c77..1f3c142 100644 --- a/cmd/internal/logic/supply.go +++ b/cmd/internal/logic/supply.go @@ -32,7 +32,7 @@ func (a *Supply) GetSupplyInfoList(req *supplyinfo.GetSupplyInfoListRequest) (re return } -func (a *Supply) GetSupplyInfo(req *supplyinfo.GetSupplyInfoRequest) (rep *supplyinfo.GetSupplyInfoRespond, err error) { +func (a *Supply) GetSupplyInfo(req *supplyinfo.GetSupplyInfoRequest) (rep *supplyinfo.GetSupplyInfoData, err error) { rep, err = dao.GetSupplyInfo(req) return } @@ -43,11 +43,11 @@ func (a *Supply) UpdateSupplyInfo(req *supplyinfo.UpdateSupplyInfoRequest) (rep } func (a *Supply) GetVideoList(req *supplyinfo.GetVideoListRequest) (rep *supplyinfo.GetVideoListRespond, err error) { - rep, err = dao.GetVideoList(req.Id) + rep, err = dao.GetVideoList(int32(req.UserId)) return } -func (a *Supply) GetVideo(req *supplyinfo.GetVideoRequest) (rep *supplyinfo.GetVideoRespond, err error) { +func (a *Supply) GetVideo(req *supplyinfo.GetVideoRequest) (rep *supplyinfo.GetVideoListData, err error) { rep, err = dao.GetVideo(req) return } @@ -57,7 +57,7 @@ func (a *Supply) UpdateVideo(req *supplyinfo.UpdateVideoRequest) (rep *supplyinf return } -func (a *Supply) GetExam(req *supplyinfo.GetExamRequest) (rep *supplyinfo.GetExamRespond, err error) { +func (a *Supply) GetExam(req *supplyinfo.GetExamRequest) (rep *supplyinfo.GetExamListData, err error) { rep, err = dao.GetExam(req) return } @@ -73,11 +73,11 @@ func (a *Supply) UpdateExam(req *supplyinfo.UpdateExamRequest) (rep *supplyinfo. } func (a *Supply) GetArtistInfoList(req *supplyinfo.GetArtistInfoListRequest) (rep *supplyinfo.GetArtistInfoListRespond, err error) { - rep, err = dao.GetArtistInfoList(req.Id) + rep, err = dao.GetArtistInfoList(int32(req.UserId)) return } -func (a *Supply) GetArtistInfo(req *supplyinfo.GetArtistInfoRequest) (rep *supplyinfo.GetArtistInfoRespond, err error) { +func (a *Supply) GetArtistInfo(req *supplyinfo.GetArtistInfoRequest) (rep *supplyinfo.GetArtistInfoListData, err error) { rep, err = dao.GetArtistInfo(req) return }