|
@@ -28,14 +28,16 @@ func (c *CattleCategory) TableName() string {
|
|
|
|
|
|
func NewCattleCategory(req *operationPb.AddCattleCategoryRequest) *CattleCategory {
|
|
|
return &CattleCategory{
|
|
|
- ParentId: req.ParentId,
|
|
|
- ParentName: req.ParentName,
|
|
|
- Name: req.Name,
|
|
|
- Number: req.Number,
|
|
|
- IsShow: operationPb.IsShow_OK,
|
|
|
- IsDelete: operationPb.IsShow_OK,
|
|
|
- DataSource: operationPb.DataSource_BACKGROUND_ADD,
|
|
|
- Remarks: "集团新增数据",
|
|
|
+ PastureId: 0,
|
|
|
+ PastureName: "集团",
|
|
|
+ ParentId: req.ParentId,
|
|
|
+ ParentName: req.ParentName,
|
|
|
+ Name: req.Name,
|
|
|
+ Number: req.Number,
|
|
|
+ IsShow: operationPb.IsShow_OK,
|
|
|
+ IsDelete: operationPb.IsShow_OK,
|
|
|
+ DataSource: operationPb.DataSource_BACKGROUND_ADD,
|
|
|
+ Remarks: "集团新增数据",
|
|
|
}
|
|
|
}
|
|
|
|