feat: ad manager

This commit is contained in:
zzw
2026-08-21 17:38:39 +08:00
parent f05656580c
commit caafc455bb
34 changed files with 454 additions and 300 deletions
+7 -1
View File
@@ -35,7 +35,7 @@ func (s *AdServer) Edit(ctx context.Context, in *ad.EditReq) (*ad.Response, erro
return l.Edit(in)
}
// 广告列表
// 广告列表(后台)
func (s *AdServer) Items(ctx context.Context, in *ad.ItemsReq) (*ad.Response, error) {
l := logic.NewItemsLogic(ctx, s.svcCtx)
return l.Items(in)
@@ -46,3 +46,9 @@ func (s *AdServer) Status(ctx context.Context, in *ad.StatusReq) (*ad.Response,
l := logic.NewStatusLogic(ctx, s.svcCtx)
return l.Status(in)
}
// 广告列表(C 端)
func (s *AdServer) WebItems(ctx context.Context, in *ad.WebItemsReq) (*ad.Response, error) {
l := logic.NewWebItemsLogic(ctx, s.svcCtx)
return l.WebItems(in)
}