1
This commit is contained in:
parent
7267c832bb
commit
57fcf14e1a
@ -44,7 +44,7 @@ func GetSupplyInfoList(id, num int32) (rep *supplyinfo.GetSupplyInfoListRespond,
|
||||
data.NetworkTrace = supplyInfoList[i].NetworkTrace
|
||||
data.CreateAddress = supplyInfoList[i].CreateAddress
|
||||
data.Url = supplyInfoList[i].Url
|
||||
data.Types = supplyInfoList[i].Types
|
||||
data.Types = supplyInfoList[i].State
|
||||
data.Remark = supplyInfoList[i].Remark
|
||||
data.Remark2 = supplyInfoList[i].Remark2
|
||||
data.Enable = supplyInfoList[i].Enable
|
||||
@ -83,7 +83,7 @@ func GetSupplyInfo(req *supplyinfo.GetSupplyInfoRequest) (rep *supplyinfo.GetSup
|
||||
rep.NetworkTrace = supplyInfoTmp.NetworkTrace
|
||||
rep.CreateAddress = supplyInfoTmp.CreateAddress
|
||||
rep.Url = supplyInfoTmp.Url
|
||||
rep.Types = supplyInfoTmp.Types
|
||||
rep.Types = supplyInfoTmp.State
|
||||
rep.Remark = supplyInfoTmp.Remark
|
||||
rep.Remark2 = supplyInfoTmp.Remark2
|
||||
rep.Enable = supplyInfoTmp.Enable
|
||||
@ -104,7 +104,7 @@ func UpdateSupplyInfo(req *supplyinfo.UpdateSupplyInfoRequest) (rep *supplyinfo.
|
||||
SupplyInfo.NetworkTrace = req.NetworkTrace
|
||||
SupplyInfo.Url = req.Url
|
||||
SupplyInfo.Introduct = req.Introduct
|
||||
SupplyInfo.Types = req.Types
|
||||
SupplyInfo.State = req.Types
|
||||
SupplyInfo.ExhibitInfo = req.ExhibitInfo
|
||||
SupplyInfo.ExhibitPic1 = req.ExhibitPic1
|
||||
SupplyInfo.ExhibitPic2 = req.ExhibitPic2
|
||||
@ -134,7 +134,7 @@ func GetVideoList(id int32) (rep *supplyinfo.GetVideoListRespond, err error) {
|
||||
data.ID = uint64(v.ID)
|
||||
data.UserId = uint64(v.UserId)
|
||||
data.Url = v.Url
|
||||
data.Types = v.Types
|
||||
data.Types = v.State
|
||||
data.Remark = v.Remark
|
||||
data.Remark2 = v.Remark2
|
||||
data.Enable = v.Enable
|
||||
@ -160,7 +160,7 @@ func GetVideo(req *supplyinfo.GetVideoRequest) (rep *supplyinfo.GetVideoListData
|
||||
rep.ID = uint64(ExhVideo.ID)
|
||||
rep.UserId = uint64(ExhVideo.UserId)
|
||||
rep.Url = ExhVideo.Url
|
||||
rep.Types = ExhVideo.Types
|
||||
rep.Types = ExhVideo.State
|
||||
rep.Remark = ExhVideo.Remark
|
||||
rep.Remark2 = ExhVideo.Remark2
|
||||
rep.Enable = ExhVideo.Enable
|
||||
@ -179,7 +179,7 @@ func UpdateVideo(req *supplyinfo.UpdateVideoRequest) (rep *supplyinfo.UpdateVide
|
||||
}
|
||||
|
||||
ExhVideo.Url = req.Url
|
||||
ExhVideo.Types = req.Types
|
||||
ExhVideo.State = req.Types
|
||||
|
||||
if err := db.DB.Save(&ExhVideo).Error; err != nil {
|
||||
zap.L().Error("save exhVideo info err", zap.Error(err))
|
||||
@ -206,7 +206,7 @@ func GetExam(req *supplyinfo.GetExamRequest) (rep *supplyinfo.GetExamListData, e
|
||||
rep.Class = ExhExam.Class
|
||||
rep.TitleScore = uint64(ExhExam.TitleScore)
|
||||
rep.Score = ExhExam.Score
|
||||
rep.Types = ExhExam.Types
|
||||
rep.Types = ExhExam.State
|
||||
rep.Remark = ExhExam.Remark
|
||||
rep.Remark2 = ExhExam.Remark2
|
||||
rep.Enable = ExhExam.Enable
|
||||
@ -233,7 +233,7 @@ func GetExamList(req *supplyinfo.GetExamListRequest) (rep *supplyinfo.GetExamLis
|
||||
data.Class = v.Class
|
||||
data.TitleScore = uint64(v.TitleScore)
|
||||
data.Score = v.Score
|
||||
data.Types = v.Types
|
||||
data.Types = v.State
|
||||
data.Remark = v.Remark
|
||||
data.Remark2 = v.Remark2
|
||||
data.Enable = v.Enable
|
||||
@ -258,12 +258,12 @@ func UpdateExam(req *supplyinfo.UpdateExamRequest) (rep *supplyinfo.UpdateExamRe
|
||||
|
||||
ExhExam.Score = req.Score
|
||||
ExhExam.Class = req.Class
|
||||
ExhExam.Types = req.Types
|
||||
ExhExam.State = req.Types
|
||||
ExhExam.Title = req.Title
|
||||
ExhExam.Class = req.Class
|
||||
ExhExam.TitleScore = uint(req.TitleScore)
|
||||
ExhExam.Score = req.Score
|
||||
ExhExam.Types = req.Types
|
||||
ExhExam.State = req.Types
|
||||
ExhExam.Remark = req.Remark
|
||||
ExhExam.Remark2 = req.Remark2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user