You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
737 B
Go

2 years ago
package serializer
import (
"fonchain-artshow/cmd/model"
2 years ago
"fonchain-artshow/pb/artShow"
2 years ago
)
2 years ago
func BuildShowApply(in *artShow.SaveApplyReq) (out *model.ShowApply) {
2 years ago
out = new(model.ShowApply)
2 years ago
out.ApplyUID = in.ApplyUID
out.Status = int(in.Status)
2 years ago
out.Applicant = in.Applicant
2 years ago
out.ApplicantID = in.ApplicantID
2 years ago
out.Num = in.Num
out.ApplyTime = in.ApplyTime
out.Remark = in.Remark
return
}
2 years ago
func BuildShowApplyRes(in *model.ShowApply) (out *artShow.ApplyDetail) {
out = new(artShow.ApplyDetail)
2 years ago
2 years ago
out.ApplyUID = in.ApplyUID
2 years ago
out.ApplySeq = in.ApplySeq
out.Applicant = in.Applicant
2 years ago
out.ApplicantID = in.ApplicantID
2 years ago
out.Num = in.Num
out.ApplyTime = in.ApplyTime
out.Status = int32(in.Status)
out.Remark = in.Remark
return
}