19 lines
461 B
Go
19 lines
461 B
Go
package proto
|
|
|
|
import "service/dbstruct"
|
|
|
|
type ImageAuditTaskVO struct {
|
|
*dbstruct.ImageAuditTask
|
|
ImageAudits []*dbstruct.ImageAudit `json:"image_audits"`
|
|
}
|
|
|
|
func (vo *ImageAuditTaskVO) CopyImageAuditTask(imageAuditTask *dbstruct.ImageAuditTask) *ImageAuditTaskVO {
|
|
vo.ImageAuditTask = imageAuditTask
|
|
return vo
|
|
}
|
|
|
|
func (vo *ImageAuditTaskVO) CopyImageAudits(imageAudits []*dbstruct.ImageAudit) *ImageAuditTaskVO {
|
|
vo.ImageAudits = imageAudits
|
|
return vo
|
|
}
|