diff --git a/internal/logic/shows/shows.go b/internal/logic/shows/shows.go index f4eb473..6cac47c 100644 --- a/internal/logic/shows/shows.go +++ b/internal/logic/shows/shows.go @@ -11,6 +11,7 @@ import ( func init() { //GoFrame没有自动注册, 将sShow结构体的实例注册到服务中, 供其他部分访问 + service.RegisterShows(&sShow{}) //GoFrame没有自动注册 另外还需要在logic包下创建一个logic.go文件,并在其中导入本文件所在的shows包 }