func (this *ImageInput) SetAttrsForCreate(att *tenpu.Attachment) (err error) { if this.OwnerId != "" { att.OwnerId = []string{this.OwnerId} } att.Category = this.Category return }