feat:自动补货/手动采购逻辑修改:批量获取-》打包-》获取Token列表

This commit is contained in:
2026-10-29 16:05:39 +08:00
parent 8198bd6feb
commit 8494fabc82
23 changed files with 3679 additions and 85 deletions
+10
View File
@@ -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"`
}