|
@@ -44,7 +44,8 @@ func (r *BaseFromMysteelChemicalIndex) Update(updateCols []string) (err error) {
|
|
|
}
|
|
|
|
|
|
type IndexAddReq struct {
|
|
|
- IndexCode string `json:"IndexCode" binding:"required"`
|
|
|
+ IndexCode string `json:"IndexCode" binding:"required"`
|
|
|
+ UpdateWeek string `json:"UpdateWeek"`
|
|
|
}
|
|
|
|
|
|
func (d *BaseFromMysteelChemicalIndex) GetIndexItem(indexCode string) (item *BaseFromMysteelChemicalIndex, err error) {
|
|
@@ -52,5 +53,3 @@ func (d *BaseFromMysteelChemicalIndex) GetIndexItem(indexCode string) (item *Bas
|
|
|
Where("index_code = ?", indexCode).First(&item).Error
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
-
|