feat: import services and standardize Go 1.26.5
This commit is contained in:
21
apps/base/ads/internal/server/fetch_server.go
Normal file
21
apps/base/ads/internal/server/fetch_server.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-apps/ads/internal/logic/fetch"
|
||||
pb "git.apinb.com/bsm-apps/ads/pb"
|
||||
)
|
||||
|
||||
type FetchServer struct {
|
||||
pb.UnimplementedFetchServer
|
||||
}
|
||||
|
||||
func NewFetchServer() *FetchServer {
|
||||
return &FetchServer{}
|
||||
}
|
||||
|
||||
// 通过广告位获取广告信息
|
||||
func (s *FetchServer) ByPos(ctx context.Context, in *pb.ByPosRequest) (*pb.ByPosReply, error) {
|
||||
return fetch.ByPos(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user