// 创建分类 func (this *categoryManagerImpl) CreateCategory(v *sale.Category) sale.ICategory { if v.CreateTime == 0 { v.CreateTime = time.Now().Unix() } v.MerchantId = this.getRelationId() return newCategory(this._rep, v, this) }