feat:自动补货/手动采购逻辑修改:批量获取-》打包-》获取Token列表
This commit is contained in:
@@ -69,6 +69,16 @@ func (h *RockHandler) GetStats(c *gin.Context) {
|
||||
response.OK(c, stats)
|
||||
}
|
||||
|
||||
// RefreshDashboard 拉取上游 dashboard 并同步最新采购单价。
|
||||
func (h *RockHandler) RefreshDashboard(c *gin.Context) {
|
||||
result, err := h.rockSvc.RefreshDashboard(c.Request.Context())
|
||||
if err != nil {
|
||||
response.BadRequest(c, err.Error())
|
||||
return
|
||||
}
|
||||
response.OK(c, result)
|
||||
}
|
||||
|
||||
type purchaseReq struct {
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user