fix: ci dir error
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.1
|
||||
// Source: ad.proto
|
||||
|
||||
package adClient
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/ad/pb"
|
||||
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type (
|
||||
CreateReq = ad.CreateReq
|
||||
EditReq = ad.EditReq
|
||||
Item = ad.Item
|
||||
ItemsData = ad.ItemsData
|
||||
ItemsReq = ad.ItemsReq
|
||||
Response = ad.Response
|
||||
StatusReq = ad.StatusReq
|
||||
|
||||
Ad interface {
|
||||
// 添加广告
|
||||
Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*Response, error)
|
||||
// 编辑广告
|
||||
Edit(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error)
|
||||
// 广告列表
|
||||
Items(ctx context.Context, in *ItemsReq, opts ...grpc.CallOption) (*Response, error)
|
||||
// 广告状态
|
||||
Status(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
defaultAd struct {
|
||||
cli zrpc.Client
|
||||
}
|
||||
)
|
||||
|
||||
func NewAd(cli zrpc.Client) Ad {
|
||||
return &defaultAd{
|
||||
cli: cli,
|
||||
}
|
||||
}
|
||||
|
||||
// 添加广告
|
||||
func (m *defaultAd) Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := ad.NewAdClient(m.cli.Conn())
|
||||
return client.Create(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 编辑广告
|
||||
func (m *defaultAd) Edit(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := ad.NewAdClient(m.cli.Conn())
|
||||
return client.Edit(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 广告列表
|
||||
func (m *defaultAd) Items(ctx context.Context, in *ItemsReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := ad.NewAdClient(m.cli.Conn())
|
||||
return client.Items(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 广告状态
|
||||
func (m *defaultAd) Status(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := ad.NewAdClient(m.cli.Conn())
|
||||
return client.Status(ctx, in, opts...)
|
||||
}
|
||||
Reference in New Issue
Block a user