feat: add image publish function, ONLY published image show in image wall page

This commit is contained in:
RockYang
2024-01-19 06:52:23 +08:00
parent c70314d930
commit bf1c1b84c3
20 changed files with 147 additions and 20 deletions

View File

@@ -238,12 +238,14 @@ func main() {
group.GET("jobs", h.JobList)
group.POST("remove", h.Remove)
group.POST("notify", h.Notify)
group.POST("publish", h.Publish)
}),
fx.Invoke(func(s *core.AppServer, h *handler.SdJobHandler) {
group := s.Engine.Group("/api/sd")
group.POST("image", h.Image)
group.GET("jobs", h.JobList)
group.POST("remove", h.Remove)
group.POST("publish", h.Publish)
}),
// 管理后台控制器