コード例 #1
0
ファイル: category_manager.go プロジェクト: yonglehou/go2o
// 创建分类
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)
}