Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAdsServiceHTTPServer(s *http.Server, srv AdsServiceHTTPServer)
- func RegisterAdsServiceServer(s grpc.ServiceRegistrar, srv AdsServiceServer)
- type Ads
- func (*Ads) Descriptor() ([]byte, []int)deprecated
- func (x *Ads) GetContent() string
- func (x *Ads) GetCreatedAt() int64
- func (x *Ads) GetDescription() string
- func (x *Ads) GetEndTime() int64
- func (x *Ads) GetId() int64
- func (x *Ads) GetStartTime() int64
- func (x *Ads) GetStatus() int32
- func (x *Ads) GetTargetUrl() string
- func (x *Ads) GetTitle() string
- func (x *Ads) GetType() string
- func (x *Ads) GetUpdatedAt() int64
- func (*Ads) ProtoMessage()
- func (x *Ads) ProtoReflect() protoreflect.Message
- func (x *Ads) Reset()
- func (x *Ads) String() string
- func (m *Ads) Validate() error
- func (m *Ads) ValidateAll() error
- type AdsMultiError
- type AdsServiceClient
- type AdsServiceHTTPClient
- type AdsServiceHTTPClientImpl
- func (c *AdsServiceHTTPClientImpl) CreateAds(ctx context.Context, in *CreateAdsRequest, opts ...http.CallOption) (*CreateAdsReply, error)
- func (c *AdsServiceHTTPClientImpl) DeleteAds(ctx context.Context, in *DeleteAdsRequest, opts ...http.CallOption) (*DeleteAdsReply, error)
- func (c *AdsServiceHTTPClientImpl) GetAds(ctx context.Context, in *GetAdsRequest, opts ...http.CallOption) (*GetAdsReply, error)
- func (c *AdsServiceHTTPClientImpl) GetAdsList(ctx context.Context, in *GetAdsListRequest, opts ...http.CallOption) (*GetAdsListReply, error)
- func (c *AdsServiceHTTPClientImpl) UpdateAds(ctx context.Context, in *UpdateAdsRequest, opts ...http.CallOption) (*UpdateAdsReply, error)
- type AdsServiceHTTPServer
- type AdsServiceServer
- type AdsValidationError
- type CreateAdsData
- func (*CreateAdsData) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdsData) GetAds() *Ads
- func (*CreateAdsData) ProtoMessage()
- func (x *CreateAdsData) ProtoReflect() protoreflect.Message
- func (x *CreateAdsData) Reset()
- func (x *CreateAdsData) String() string
- func (m *CreateAdsData) Validate() error
- func (m *CreateAdsData) ValidateAll() error
- type CreateAdsDataMultiError
- type CreateAdsDataValidationError
- func (e CreateAdsDataValidationError) Cause() error
- func (e CreateAdsDataValidationError) Error() string
- func (e CreateAdsDataValidationError) ErrorName() string
- func (e CreateAdsDataValidationError) Field() string
- func (e CreateAdsDataValidationError) Key() bool
- func (e CreateAdsDataValidationError) Reason() string
- type CreateAdsReply
- func (*CreateAdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdsReply) GetCode() int32
- func (x *CreateAdsReply) GetData() *CreateAdsData
- func (x *CreateAdsReply) GetMessage() string
- func (*CreateAdsReply) ProtoMessage()
- func (x *CreateAdsReply) ProtoReflect() protoreflect.Message
- func (x *CreateAdsReply) Reset()
- func (x *CreateAdsReply) String() string
- func (m *CreateAdsReply) Validate() error
- func (m *CreateAdsReply) ValidateAll() error
- type CreateAdsReplyMultiError
- type CreateAdsReplyValidationError
- func (e CreateAdsReplyValidationError) Cause() error
- func (e CreateAdsReplyValidationError) Error() string
- func (e CreateAdsReplyValidationError) ErrorName() string
- func (e CreateAdsReplyValidationError) Field() string
- func (e CreateAdsReplyValidationError) Key() bool
- func (e CreateAdsReplyValidationError) Reason() string
- type CreateAdsRequest
- func (*CreateAdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdsRequest) GetContent() string
- func (x *CreateAdsRequest) GetDescription() string
- func (x *CreateAdsRequest) GetEndTime() int64
- func (x *CreateAdsRequest) GetStartTime() int64
- func (x *CreateAdsRequest) GetStatus() int32
- func (x *CreateAdsRequest) GetTargetUrl() string
- func (x *CreateAdsRequest) GetTitle() string
- func (x *CreateAdsRequest) GetType() string
- func (*CreateAdsRequest) ProtoMessage()
- func (x *CreateAdsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAdsRequest) Reset()
- func (x *CreateAdsRequest) String() string
- func (m *CreateAdsRequest) Validate() error
- func (m *CreateAdsRequest) ValidateAll() error
- type CreateAdsRequestMultiError
- type CreateAdsRequestValidationError
- func (e CreateAdsRequestValidationError) Cause() error
- func (e CreateAdsRequestValidationError) Error() string
- func (e CreateAdsRequestValidationError) ErrorName() string
- func (e CreateAdsRequestValidationError) Field() string
- func (e CreateAdsRequestValidationError) Key() bool
- func (e CreateAdsRequestValidationError) Reason() string
- type DeleteAdsData
- func (*DeleteAdsData) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdsData) GetSuccess() bool
- func (*DeleteAdsData) ProtoMessage()
- func (x *DeleteAdsData) ProtoReflect() protoreflect.Message
- func (x *DeleteAdsData) Reset()
- func (x *DeleteAdsData) String() string
- func (m *DeleteAdsData) Validate() error
- func (m *DeleteAdsData) ValidateAll() error
- type DeleteAdsDataMultiError
- type DeleteAdsDataValidationError
- func (e DeleteAdsDataValidationError) Cause() error
- func (e DeleteAdsDataValidationError) Error() string
- func (e DeleteAdsDataValidationError) ErrorName() string
- func (e DeleteAdsDataValidationError) Field() string
- func (e DeleteAdsDataValidationError) Key() bool
- func (e DeleteAdsDataValidationError) Reason() string
- type DeleteAdsReply
- func (*DeleteAdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdsReply) GetCode() int32
- func (x *DeleteAdsReply) GetData() *DeleteAdsData
- func (x *DeleteAdsReply) GetMessage() string
- func (*DeleteAdsReply) ProtoMessage()
- func (x *DeleteAdsReply) ProtoReflect() protoreflect.Message
- func (x *DeleteAdsReply) Reset()
- func (x *DeleteAdsReply) String() string
- func (m *DeleteAdsReply) Validate() error
- func (m *DeleteAdsReply) ValidateAll() error
- type DeleteAdsReplyMultiError
- type DeleteAdsReplyValidationError
- func (e DeleteAdsReplyValidationError) Cause() error
- func (e DeleteAdsReplyValidationError) Error() string
- func (e DeleteAdsReplyValidationError) ErrorName() string
- func (e DeleteAdsReplyValidationError) Field() string
- func (e DeleteAdsReplyValidationError) Key() bool
- func (e DeleteAdsReplyValidationError) Reason() string
- type DeleteAdsRequest
- func (*DeleteAdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdsRequest) GetId() int64
- func (*DeleteAdsRequest) ProtoMessage()
- func (x *DeleteAdsRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAdsRequest) Reset()
- func (x *DeleteAdsRequest) String() string
- func (m *DeleteAdsRequest) Validate() error
- func (m *DeleteAdsRequest) ValidateAll() error
- type DeleteAdsRequestMultiError
- type DeleteAdsRequestValidationError
- func (e DeleteAdsRequestValidationError) Cause() error
- func (e DeleteAdsRequestValidationError) Error() string
- func (e DeleteAdsRequestValidationError) ErrorName() string
- func (e DeleteAdsRequestValidationError) Field() string
- func (e DeleteAdsRequestValidationError) Key() bool
- func (e DeleteAdsRequestValidationError) Reason() string
- type GetAdsData
- func (*GetAdsData) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsData) GetAds() *Ads
- func (*GetAdsData) ProtoMessage()
- func (x *GetAdsData) ProtoReflect() protoreflect.Message
- func (x *GetAdsData) Reset()
- func (x *GetAdsData) String() string
- func (m *GetAdsData) Validate() error
- func (m *GetAdsData) ValidateAll() error
- type GetAdsDataMultiError
- type GetAdsDataValidationError
- type GetAdsListData
- func (*GetAdsListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsListData) GetList() []*Ads
- func (x *GetAdsListData) GetTotal() int32
- func (*GetAdsListData) ProtoMessage()
- func (x *GetAdsListData) ProtoReflect() protoreflect.Message
- func (x *GetAdsListData) Reset()
- func (x *GetAdsListData) String() string
- func (m *GetAdsListData) Validate() error
- func (m *GetAdsListData) ValidateAll() error
- type GetAdsListDataMultiError
- type GetAdsListDataValidationError
- func (e GetAdsListDataValidationError) Cause() error
- func (e GetAdsListDataValidationError) Error() string
- func (e GetAdsListDataValidationError) ErrorName() string
- func (e GetAdsListDataValidationError) Field() string
- func (e GetAdsListDataValidationError) Key() bool
- func (e GetAdsListDataValidationError) Reason() string
- type GetAdsListReply
- func (*GetAdsListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsListReply) GetCode() int32
- func (x *GetAdsListReply) GetData() *GetAdsListData
- func (x *GetAdsListReply) GetMessage() string
- func (*GetAdsListReply) ProtoMessage()
- func (x *GetAdsListReply) ProtoReflect() protoreflect.Message
- func (x *GetAdsListReply) Reset()
- func (x *GetAdsListReply) String() string
- func (m *GetAdsListReply) Validate() error
- func (m *GetAdsListReply) ValidateAll() error
- type GetAdsListReplyMultiError
- type GetAdsListReplyValidationError
- func (e GetAdsListReplyValidationError) Cause() error
- func (e GetAdsListReplyValidationError) Error() string
- func (e GetAdsListReplyValidationError) ErrorName() string
- func (e GetAdsListReplyValidationError) Field() string
- func (e GetAdsListReplyValidationError) Key() bool
- func (e GetAdsListReplyValidationError) Reason() string
- type GetAdsListRequest
- func (*GetAdsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsListRequest) GetPage() int32
- func (x *GetAdsListRequest) GetSearch() string
- func (x *GetAdsListRequest) GetSize() int32
- func (x *GetAdsListRequest) GetStatus() int32
- func (*GetAdsListRequest) ProtoMessage()
- func (x *GetAdsListRequest) ProtoReflect() protoreflect.Message
- func (x *GetAdsListRequest) Reset()
- func (x *GetAdsListRequest) String() string
- func (m *GetAdsListRequest) Validate() error
- func (m *GetAdsListRequest) ValidateAll() error
- type GetAdsListRequestMultiError
- type GetAdsListRequestValidationError
- func (e GetAdsListRequestValidationError) Cause() error
- func (e GetAdsListRequestValidationError) Error() string
- func (e GetAdsListRequestValidationError) ErrorName() string
- func (e GetAdsListRequestValidationError) Field() string
- func (e GetAdsListRequestValidationError) Key() bool
- func (e GetAdsListRequestValidationError) Reason() string
- type GetAdsReply
- func (*GetAdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsReply) GetCode() int32
- func (x *GetAdsReply) GetData() *GetAdsData
- func (x *GetAdsReply) GetMessage() string
- func (*GetAdsReply) ProtoMessage()
- func (x *GetAdsReply) ProtoReflect() protoreflect.Message
- func (x *GetAdsReply) Reset()
- func (x *GetAdsReply) String() string
- func (m *GetAdsReply) Validate() error
- func (m *GetAdsReply) ValidateAll() error
- type GetAdsReplyMultiError
- type GetAdsReplyValidationError
- func (e GetAdsReplyValidationError) Cause() error
- func (e GetAdsReplyValidationError) Error() string
- func (e GetAdsReplyValidationError) ErrorName() string
- func (e GetAdsReplyValidationError) Field() string
- func (e GetAdsReplyValidationError) Key() bool
- func (e GetAdsReplyValidationError) Reason() string
- type GetAdsRequest
- func (*GetAdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdsRequest) GetId() int64
- func (*GetAdsRequest) ProtoMessage()
- func (x *GetAdsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAdsRequest) Reset()
- func (x *GetAdsRequest) String() string
- func (m *GetAdsRequest) Validate() error
- func (m *GetAdsRequest) ValidateAll() error
- type GetAdsRequestMultiError
- type GetAdsRequestValidationError
- func (e GetAdsRequestValidationError) Cause() error
- func (e GetAdsRequestValidationError) Error() string
- func (e GetAdsRequestValidationError) ErrorName() string
- func (e GetAdsRequestValidationError) Field() string
- func (e GetAdsRequestValidationError) Key() bool
- func (e GetAdsRequestValidationError) Reason() string
- type UnimplementedAdsServiceServer
- func (UnimplementedAdsServiceServer) CreateAds(context.Context, *CreateAdsRequest) (*CreateAdsReply, error)
- func (UnimplementedAdsServiceServer) DeleteAds(context.Context, *DeleteAdsRequest) (*DeleteAdsReply, error)
- func (UnimplementedAdsServiceServer) GetAds(context.Context, *GetAdsRequest) (*GetAdsReply, error)
- func (UnimplementedAdsServiceServer) GetAdsList(context.Context, *GetAdsListRequest) (*GetAdsListReply, error)
- func (UnimplementedAdsServiceServer) UpdateAds(context.Context, *UpdateAdsRequest) (*UpdateAdsReply, error)
- type UnsafeAdsServiceServer
- type UpdateAdsData
- func (*UpdateAdsData) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdsData) GetAds() *Ads
- func (*UpdateAdsData) ProtoMessage()
- func (x *UpdateAdsData) ProtoReflect() protoreflect.Message
- func (x *UpdateAdsData) Reset()
- func (x *UpdateAdsData) String() string
- func (m *UpdateAdsData) Validate() error
- func (m *UpdateAdsData) ValidateAll() error
- type UpdateAdsDataMultiError
- type UpdateAdsDataValidationError
- func (e UpdateAdsDataValidationError) Cause() error
- func (e UpdateAdsDataValidationError) Error() string
- func (e UpdateAdsDataValidationError) ErrorName() string
- func (e UpdateAdsDataValidationError) Field() string
- func (e UpdateAdsDataValidationError) Key() bool
- func (e UpdateAdsDataValidationError) Reason() string
- type UpdateAdsReply
- func (*UpdateAdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdsReply) GetCode() int32
- func (x *UpdateAdsReply) GetData() *UpdateAdsData
- func (x *UpdateAdsReply) GetMessage() string
- func (*UpdateAdsReply) ProtoMessage()
- func (x *UpdateAdsReply) ProtoReflect() protoreflect.Message
- func (x *UpdateAdsReply) Reset()
- func (x *UpdateAdsReply) String() string
- func (m *UpdateAdsReply) Validate() error
- func (m *UpdateAdsReply) ValidateAll() error
- type UpdateAdsReplyMultiError
- type UpdateAdsReplyValidationError
- func (e UpdateAdsReplyValidationError) Cause() error
- func (e UpdateAdsReplyValidationError) Error() string
- func (e UpdateAdsReplyValidationError) ErrorName() string
- func (e UpdateAdsReplyValidationError) Field() string
- func (e UpdateAdsReplyValidationError) Key() bool
- func (e UpdateAdsReplyValidationError) Reason() string
- type UpdateAdsRequest
- func (*UpdateAdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdsRequest) GetContent() string
- func (x *UpdateAdsRequest) GetDescription() string
- func (x *UpdateAdsRequest) GetEndTime() int64
- func (x *UpdateAdsRequest) GetId() int64
- func (x *UpdateAdsRequest) GetStartTime() int64
- func (x *UpdateAdsRequest) GetStatus() int32
- func (x *UpdateAdsRequest) GetTargetUrl() string
- func (x *UpdateAdsRequest) GetTitle() string
- func (x *UpdateAdsRequest) GetType() string
- func (*UpdateAdsRequest) ProtoMessage()
- func (x *UpdateAdsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAdsRequest) Reset()
- func (x *UpdateAdsRequest) String() string
- func (m *UpdateAdsRequest) Validate() error
- func (m *UpdateAdsRequest) ValidateAll() error
- type UpdateAdsRequestMultiError
- type UpdateAdsRequestValidationError
- func (e UpdateAdsRequestValidationError) Cause() error
- func (e UpdateAdsRequestValidationError) Error() string
- func (e UpdateAdsRequestValidationError) ErrorName() string
- func (e UpdateAdsRequestValidationError) Field() string
- func (e UpdateAdsRequestValidationError) Key() bool
- func (e UpdateAdsRequestValidationError) Reason() string
Constants ¶
const ( AdsService_GetAdsList_FullMethodName = "/api.admin.ads.v1.AdsService/GetAdsList" AdsService_GetAds_FullMethodName = "/api.admin.ads.v1.AdsService/GetAds" AdsService_CreateAds_FullMethodName = "/api.admin.ads.v1.AdsService/CreateAds" AdsService_UpdateAds_FullMethodName = "/api.admin.ads.v1.AdsService/UpdateAds" AdsService_DeleteAds_FullMethodName = "/api.admin.ads.v1.AdsService/DeleteAds" )
const OperationAdsServiceCreateAds = "/api.admin.ads.v1.AdsService/CreateAds"
const OperationAdsServiceDeleteAds = "/api.admin.ads.v1.AdsService/DeleteAds"
const OperationAdsServiceGetAds = "/api.admin.ads.v1.AdsService/GetAds"
const OperationAdsServiceGetAdsList = "/api.admin.ads.v1.AdsService/GetAdsList"
const OperationAdsServiceUpdateAds = "/api.admin.ads.v1.AdsService/UpdateAds"
Variables ¶
var AdsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.admin.ads.v1.AdsService", HandlerType: (*AdsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAdsList", Handler: _AdsService_GetAdsList_Handler, }, { MethodName: "GetAds", Handler: _AdsService_GetAds_Handler, }, { MethodName: "CreateAds", Handler: _AdsService_CreateAds_Handler, }, { MethodName: "UpdateAds", Handler: _AdsService_UpdateAds_Handler, }, { MethodName: "DeleteAds", Handler: _AdsService_DeleteAds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/ads/v1/ads.proto", }
AdsService_ServiceDesc is the grpc.ServiceDesc for AdsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_ads_v1_ads_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdsServiceHTTPServer ¶
func RegisterAdsServiceHTTPServer(s *http.Server, srv AdsServiceHTTPServer)
func RegisterAdsServiceServer ¶
func RegisterAdsServiceServer(s grpc.ServiceRegistrar, srv AdsServiceServer)
Types ¶
type Ads ¶
type Ads struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
TargetUrl string `protobuf:"bytes,6,opt,name=target_url,json=targetUrl,proto3" json:"target_url,omitempty"`
StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Unix timestamp in seconds
EndTime int64 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Unix timestamp in seconds
Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态:0=禁用 1=启用
CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Unix timestamp in seconds
UpdatedAt int64 `protobuf:"varint,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Unix timestamp in seconds
// contains filtered or unexported fields
}
广告信息
func (*Ads) Descriptor
deprecated
func (*Ads) GetContent ¶
func (*Ads) GetCreatedAt ¶
func (*Ads) GetDescription ¶
func (*Ads) GetEndTime ¶
func (*Ads) GetStartTime ¶
func (*Ads) GetTargetUrl ¶
func (*Ads) GetUpdatedAt ¶
func (*Ads) ProtoMessage ¶
func (*Ads) ProtoMessage()
func (*Ads) ProtoReflect ¶
func (x *Ads) ProtoReflect() protoreflect.Message
func (*Ads) Validate ¶
Validate checks the field values on Ads with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Ads) ValidateAll ¶
ValidateAll checks the field values on Ads with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AdsMultiError, or nil if none found.
type AdsMultiError ¶
type AdsMultiError []error
AdsMultiError is an error wrapping multiple validation errors returned by Ads.ValidateAll() if the designated constraints aren't met.
func (AdsMultiError) AllErrors ¶
func (m AdsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdsMultiError) Error ¶
func (m AdsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdsServiceClient ¶
type AdsServiceClient interface {
// 获取广告列表
GetAdsList(ctx context.Context, in *GetAdsListRequest, opts ...grpc.CallOption) (*GetAdsListReply, error)
// 获取广告详情
GetAds(ctx context.Context, in *GetAdsRequest, opts ...grpc.CallOption) (*GetAdsReply, error)
// 创建广告
CreateAds(ctx context.Context, in *CreateAdsRequest, opts ...grpc.CallOption) (*CreateAdsReply, error)
// 更新广告
UpdateAds(ctx context.Context, in *UpdateAdsRequest, opts ...grpc.CallOption) (*UpdateAdsReply, error)
// 删除广告
DeleteAds(ctx context.Context, in *DeleteAdsRequest, opts ...grpc.CallOption) (*DeleteAdsReply, error)
}
AdsServiceClient is the client API for AdsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
广告服务
func NewAdsServiceClient ¶
func NewAdsServiceClient(cc grpc.ClientConnInterface) AdsServiceClient
type AdsServiceHTTPClient ¶
type AdsServiceHTTPClient interface {
// CreateAds 创建广告
CreateAds(ctx context.Context, req *CreateAdsRequest, opts ...http.CallOption) (rsp *CreateAdsReply, err error)
// DeleteAds 删除广告
DeleteAds(ctx context.Context, req *DeleteAdsRequest, opts ...http.CallOption) (rsp *DeleteAdsReply, err error)
// GetAds 获取广告详情
GetAds(ctx context.Context, req *GetAdsRequest, opts ...http.CallOption) (rsp *GetAdsReply, err error)
// GetAdsList 获取广告列表
GetAdsList(ctx context.Context, req *GetAdsListRequest, opts ...http.CallOption) (rsp *GetAdsListReply, err error)
// UpdateAds 更新广告
UpdateAds(ctx context.Context, req *UpdateAdsRequest, opts ...http.CallOption) (rsp *UpdateAdsReply, err error)
}
func NewAdsServiceHTTPClient ¶
func NewAdsServiceHTTPClient(client *http.Client) AdsServiceHTTPClient
type AdsServiceHTTPClientImpl ¶
type AdsServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdsServiceHTTPClientImpl) CreateAds ¶
func (c *AdsServiceHTTPClientImpl) CreateAds(ctx context.Context, in *CreateAdsRequest, opts ...http.CallOption) (*CreateAdsReply, error)
CreateAds 创建广告
func (*AdsServiceHTTPClientImpl) DeleteAds ¶
func (c *AdsServiceHTTPClientImpl) DeleteAds(ctx context.Context, in *DeleteAdsRequest, opts ...http.CallOption) (*DeleteAdsReply, error)
DeleteAds 删除广告
func (*AdsServiceHTTPClientImpl) GetAds ¶
func (c *AdsServiceHTTPClientImpl) GetAds(ctx context.Context, in *GetAdsRequest, opts ...http.CallOption) (*GetAdsReply, error)
GetAds 获取广告详情
func (*AdsServiceHTTPClientImpl) GetAdsList ¶
func (c *AdsServiceHTTPClientImpl) GetAdsList(ctx context.Context, in *GetAdsListRequest, opts ...http.CallOption) (*GetAdsListReply, error)
GetAdsList 获取广告列表
func (*AdsServiceHTTPClientImpl) UpdateAds ¶
func (c *AdsServiceHTTPClientImpl) UpdateAds(ctx context.Context, in *UpdateAdsRequest, opts ...http.CallOption) (*UpdateAdsReply, error)
UpdateAds 更新广告
type AdsServiceHTTPServer ¶
type AdsServiceHTTPServer interface {
// CreateAds 创建广告
CreateAds(context.Context, *CreateAdsRequest) (*CreateAdsReply, error)
// DeleteAds 删除广告
DeleteAds(context.Context, *DeleteAdsRequest) (*DeleteAdsReply, error)
// GetAds 获取广告详情
GetAds(context.Context, *GetAdsRequest) (*GetAdsReply, error)
// GetAdsList 获取广告列表
GetAdsList(context.Context, *GetAdsListRequest) (*GetAdsListReply, error)
// UpdateAds 更新广告
UpdateAds(context.Context, *UpdateAdsRequest) (*UpdateAdsReply, error)
}
type AdsServiceServer ¶
type AdsServiceServer interface {
// 获取广告列表
GetAdsList(context.Context, *GetAdsListRequest) (*GetAdsListReply, error)
// 获取广告详情
GetAds(context.Context, *GetAdsRequest) (*GetAdsReply, error)
// 创建广告
CreateAds(context.Context, *CreateAdsRequest) (*CreateAdsReply, error)
// 更新广告
UpdateAds(context.Context, *UpdateAdsRequest) (*UpdateAdsReply, error)
// 删除广告
DeleteAds(context.Context, *DeleteAdsRequest) (*DeleteAdsReply, error)
// contains filtered or unexported methods
}
AdsServiceServer is the server API for AdsService service. All implementations must embed UnimplementedAdsServiceServer for forward compatibility.
广告服务
type AdsValidationError ¶
type AdsValidationError struct {
// contains filtered or unexported fields
}
AdsValidationError is the validation error returned by Ads.Validate if the designated constraints aren't met.
func (AdsValidationError) Cause ¶
func (e AdsValidationError) Cause() error
Cause function returns cause value.
func (AdsValidationError) Error ¶
func (e AdsValidationError) Error() string
Error satisfies the builtin error interface
func (AdsValidationError) ErrorName ¶
func (e AdsValidationError) ErrorName() string
ErrorName returns error name.
func (AdsValidationError) Field ¶
func (e AdsValidationError) Field() string
Field function returns field value.
func (AdsValidationError) Key ¶
func (e AdsValidationError) Key() bool
Key function returns key value.
func (AdsValidationError) Reason ¶
func (e AdsValidationError) Reason() string
Reason function returns reason value.
type CreateAdsData ¶
type CreateAdsData struct {
Ads *Ads `protobuf:"bytes,1,opt,name=ads,proto3" json:"ads,omitempty"`
// contains filtered or unexported fields
}
创建广告数据
func (*CreateAdsData) Descriptor
deprecated
func (*CreateAdsData) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdsData.ProtoReflect.Descriptor instead.
func (*CreateAdsData) GetAds ¶
func (x *CreateAdsData) GetAds() *Ads
func (*CreateAdsData) ProtoMessage ¶
func (*CreateAdsData) ProtoMessage()
func (*CreateAdsData) ProtoReflect ¶
func (x *CreateAdsData) ProtoReflect() protoreflect.Message
func (*CreateAdsData) Reset ¶
func (x *CreateAdsData) Reset()
func (*CreateAdsData) String ¶
func (x *CreateAdsData) String() string
func (*CreateAdsData) Validate ¶
func (m *CreateAdsData) Validate() error
Validate checks the field values on CreateAdsData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAdsData) ValidateAll ¶
func (m *CreateAdsData) ValidateAll() error
ValidateAll checks the field values on CreateAdsData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAdsDataMultiError, or nil if none found.
type CreateAdsDataMultiError ¶
type CreateAdsDataMultiError []error
CreateAdsDataMultiError is an error wrapping multiple validation errors returned by CreateAdsData.ValidateAll() if the designated constraints aren't met.
func (CreateAdsDataMultiError) AllErrors ¶
func (m CreateAdsDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAdsDataMultiError) Error ¶
func (m CreateAdsDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAdsDataValidationError ¶
type CreateAdsDataValidationError struct {
// contains filtered or unexported fields
}
CreateAdsDataValidationError is the validation error returned by CreateAdsData.Validate if the designated constraints aren't met.
func (CreateAdsDataValidationError) Cause ¶
func (e CreateAdsDataValidationError) Cause() error
Cause function returns cause value.
func (CreateAdsDataValidationError) Error ¶
func (e CreateAdsDataValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAdsDataValidationError) ErrorName ¶
func (e CreateAdsDataValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAdsDataValidationError) Field ¶
func (e CreateAdsDataValidationError) Field() string
Field function returns field value.
func (CreateAdsDataValidationError) Key ¶
func (e CreateAdsDataValidationError) Key() bool
Key function returns key value.
func (CreateAdsDataValidationError) Reason ¶
func (e CreateAdsDataValidationError) Reason() string
Reason function returns reason value.
type CreateAdsReply ¶
type CreateAdsReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *CreateAdsData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
创建广告响应
func (*CreateAdsReply) Descriptor
deprecated
func (*CreateAdsReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdsReply.ProtoReflect.Descriptor instead.
func (*CreateAdsReply) GetCode ¶
func (x *CreateAdsReply) GetCode() int32
func (*CreateAdsReply) GetData ¶
func (x *CreateAdsReply) GetData() *CreateAdsData
func (*CreateAdsReply) GetMessage ¶
func (x *CreateAdsReply) GetMessage() string
func (*CreateAdsReply) ProtoMessage ¶
func (*CreateAdsReply) ProtoMessage()
func (*CreateAdsReply) ProtoReflect ¶
func (x *CreateAdsReply) ProtoReflect() protoreflect.Message
func (*CreateAdsReply) Reset ¶
func (x *CreateAdsReply) Reset()
func (*CreateAdsReply) String ¶
func (x *CreateAdsReply) String() string
func (*CreateAdsReply) Validate ¶
func (m *CreateAdsReply) Validate() error
Validate checks the field values on CreateAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAdsReply) ValidateAll ¶
func (m *CreateAdsReply) ValidateAll() error
ValidateAll checks the field values on CreateAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAdsReplyMultiError, or nil if none found.
type CreateAdsReplyMultiError ¶
type CreateAdsReplyMultiError []error
CreateAdsReplyMultiError is an error wrapping multiple validation errors returned by CreateAdsReply.ValidateAll() if the designated constraints aren't met.
func (CreateAdsReplyMultiError) AllErrors ¶
func (m CreateAdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAdsReplyMultiError) Error ¶
func (m CreateAdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAdsReplyValidationError ¶
type CreateAdsReplyValidationError struct {
// contains filtered or unexported fields
}
CreateAdsReplyValidationError is the validation error returned by CreateAdsReply.Validate if the designated constraints aren't met.
func (CreateAdsReplyValidationError) Cause ¶
func (e CreateAdsReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateAdsReplyValidationError) Error ¶
func (e CreateAdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAdsReplyValidationError) ErrorName ¶
func (e CreateAdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAdsReplyValidationError) Field ¶
func (e CreateAdsReplyValidationError) Field() string
Field function returns field value.
func (CreateAdsReplyValidationError) Key ¶
func (e CreateAdsReplyValidationError) Key() bool
Key function returns key value.
func (CreateAdsReplyValidationError) Reason ¶
func (e CreateAdsReplyValidationError) Reason() string
Reason function returns reason value.
type CreateAdsRequest ¶
type CreateAdsRequest struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
TargetUrl string `protobuf:"bytes,5,opt,name=target_url,json=targetUrl,proto3" json:"target_url,omitempty"`
StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Unix timestamp in seconds
EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Unix timestamp in seconds
Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` // 状态:0=禁用 1=启用
// contains filtered or unexported fields
}
创建广告请求
func (*CreateAdsRequest) Descriptor
deprecated
func (*CreateAdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdsRequest.ProtoReflect.Descriptor instead.
func (*CreateAdsRequest) GetContent ¶
func (x *CreateAdsRequest) GetContent() string
func (*CreateAdsRequest) GetDescription ¶
func (x *CreateAdsRequest) GetDescription() string
func (*CreateAdsRequest) GetEndTime ¶
func (x *CreateAdsRequest) GetEndTime() int64
func (*CreateAdsRequest) GetStartTime ¶
func (x *CreateAdsRequest) GetStartTime() int64
func (*CreateAdsRequest) GetStatus ¶
func (x *CreateAdsRequest) GetStatus() int32
func (*CreateAdsRequest) GetTargetUrl ¶
func (x *CreateAdsRequest) GetTargetUrl() string
func (*CreateAdsRequest) GetTitle ¶
func (x *CreateAdsRequest) GetTitle() string
func (*CreateAdsRequest) GetType ¶
func (x *CreateAdsRequest) GetType() string
func (*CreateAdsRequest) ProtoMessage ¶
func (*CreateAdsRequest) ProtoMessage()
func (*CreateAdsRequest) ProtoReflect ¶
func (x *CreateAdsRequest) ProtoReflect() protoreflect.Message
func (*CreateAdsRequest) Reset ¶
func (x *CreateAdsRequest) Reset()
func (*CreateAdsRequest) String ¶
func (x *CreateAdsRequest) String() string
func (*CreateAdsRequest) Validate ¶
func (m *CreateAdsRequest) Validate() error
Validate checks the field values on CreateAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAdsRequest) ValidateAll ¶
func (m *CreateAdsRequest) ValidateAll() error
ValidateAll checks the field values on CreateAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAdsRequestMultiError, or nil if none found.
type CreateAdsRequestMultiError ¶
type CreateAdsRequestMultiError []error
CreateAdsRequestMultiError is an error wrapping multiple validation errors returned by CreateAdsRequest.ValidateAll() if the designated constraints aren't met.
func (CreateAdsRequestMultiError) AllErrors ¶
func (m CreateAdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAdsRequestMultiError) Error ¶
func (m CreateAdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAdsRequestValidationError ¶
type CreateAdsRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAdsRequestValidationError is the validation error returned by CreateAdsRequest.Validate if the designated constraints aren't met.
func (CreateAdsRequestValidationError) Cause ¶
func (e CreateAdsRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAdsRequestValidationError) Error ¶
func (e CreateAdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAdsRequestValidationError) ErrorName ¶
func (e CreateAdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAdsRequestValidationError) Field ¶
func (e CreateAdsRequestValidationError) Field() string
Field function returns field value.
func (CreateAdsRequestValidationError) Key ¶
func (e CreateAdsRequestValidationError) Key() bool
Key function returns key value.
func (CreateAdsRequestValidationError) Reason ¶
func (e CreateAdsRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteAdsData ¶
type DeleteAdsData struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
删除广告数据
func (*DeleteAdsData) Descriptor
deprecated
func (*DeleteAdsData) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdsData.ProtoReflect.Descriptor instead.
func (*DeleteAdsData) GetSuccess ¶
func (x *DeleteAdsData) GetSuccess() bool
func (*DeleteAdsData) ProtoMessage ¶
func (*DeleteAdsData) ProtoMessage()
func (*DeleteAdsData) ProtoReflect ¶
func (x *DeleteAdsData) ProtoReflect() protoreflect.Message
func (*DeleteAdsData) Reset ¶
func (x *DeleteAdsData) Reset()
func (*DeleteAdsData) String ¶
func (x *DeleteAdsData) String() string
func (*DeleteAdsData) Validate ¶
func (m *DeleteAdsData) Validate() error
Validate checks the field values on DeleteAdsData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteAdsData) ValidateAll ¶
func (m *DeleteAdsData) ValidateAll() error
ValidateAll checks the field values on DeleteAdsData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAdsDataMultiError, or nil if none found.
type DeleteAdsDataMultiError ¶
type DeleteAdsDataMultiError []error
DeleteAdsDataMultiError is an error wrapping multiple validation errors returned by DeleteAdsData.ValidateAll() if the designated constraints aren't met.
func (DeleteAdsDataMultiError) AllErrors ¶
func (m DeleteAdsDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAdsDataMultiError) Error ¶
func (m DeleteAdsDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAdsDataValidationError ¶
type DeleteAdsDataValidationError struct {
// contains filtered or unexported fields
}
DeleteAdsDataValidationError is the validation error returned by DeleteAdsData.Validate if the designated constraints aren't met.
func (DeleteAdsDataValidationError) Cause ¶
func (e DeleteAdsDataValidationError) Cause() error
Cause function returns cause value.
func (DeleteAdsDataValidationError) Error ¶
func (e DeleteAdsDataValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAdsDataValidationError) ErrorName ¶
func (e DeleteAdsDataValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAdsDataValidationError) Field ¶
func (e DeleteAdsDataValidationError) Field() string
Field function returns field value.
func (DeleteAdsDataValidationError) Key ¶
func (e DeleteAdsDataValidationError) Key() bool
Key function returns key value.
func (DeleteAdsDataValidationError) Reason ¶
func (e DeleteAdsDataValidationError) Reason() string
Reason function returns reason value.
type DeleteAdsReply ¶
type DeleteAdsReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *DeleteAdsData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
删除广告响应
func (*DeleteAdsReply) Descriptor
deprecated
func (*DeleteAdsReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdsReply.ProtoReflect.Descriptor instead.
func (*DeleteAdsReply) GetCode ¶
func (x *DeleteAdsReply) GetCode() int32
func (*DeleteAdsReply) GetData ¶
func (x *DeleteAdsReply) GetData() *DeleteAdsData
func (*DeleteAdsReply) GetMessage ¶
func (x *DeleteAdsReply) GetMessage() string
func (*DeleteAdsReply) ProtoMessage ¶
func (*DeleteAdsReply) ProtoMessage()
func (*DeleteAdsReply) ProtoReflect ¶
func (x *DeleteAdsReply) ProtoReflect() protoreflect.Message
func (*DeleteAdsReply) Reset ¶
func (x *DeleteAdsReply) Reset()
func (*DeleteAdsReply) String ¶
func (x *DeleteAdsReply) String() string
func (*DeleteAdsReply) Validate ¶
func (m *DeleteAdsReply) Validate() error
Validate checks the field values on DeleteAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteAdsReply) ValidateAll ¶
func (m *DeleteAdsReply) ValidateAll() error
ValidateAll checks the field values on DeleteAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAdsReplyMultiError, or nil if none found.
type DeleteAdsReplyMultiError ¶
type DeleteAdsReplyMultiError []error
DeleteAdsReplyMultiError is an error wrapping multiple validation errors returned by DeleteAdsReply.ValidateAll() if the designated constraints aren't met.
func (DeleteAdsReplyMultiError) AllErrors ¶
func (m DeleteAdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAdsReplyMultiError) Error ¶
func (m DeleteAdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAdsReplyValidationError ¶
type DeleteAdsReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteAdsReplyValidationError is the validation error returned by DeleteAdsReply.Validate if the designated constraints aren't met.
func (DeleteAdsReplyValidationError) Cause ¶
func (e DeleteAdsReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteAdsReplyValidationError) Error ¶
func (e DeleteAdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAdsReplyValidationError) ErrorName ¶
func (e DeleteAdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAdsReplyValidationError) Field ¶
func (e DeleteAdsReplyValidationError) Field() string
Field function returns field value.
func (DeleteAdsReplyValidationError) Key ¶
func (e DeleteAdsReplyValidationError) Key() bool
Key function returns key value.
func (DeleteAdsReplyValidationError) Reason ¶
func (e DeleteAdsReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteAdsRequest ¶
type DeleteAdsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
删除广告请求
func (*DeleteAdsRequest) Descriptor
deprecated
func (*DeleteAdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdsRequest.ProtoReflect.Descriptor instead.
func (*DeleteAdsRequest) GetId ¶
func (x *DeleteAdsRequest) GetId() int64
func (*DeleteAdsRequest) ProtoMessage ¶
func (*DeleteAdsRequest) ProtoMessage()
func (*DeleteAdsRequest) ProtoReflect ¶
func (x *DeleteAdsRequest) ProtoReflect() protoreflect.Message
func (*DeleteAdsRequest) Reset ¶
func (x *DeleteAdsRequest) Reset()
func (*DeleteAdsRequest) String ¶
func (x *DeleteAdsRequest) String() string
func (*DeleteAdsRequest) Validate ¶
func (m *DeleteAdsRequest) Validate() error
Validate checks the field values on DeleteAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteAdsRequest) ValidateAll ¶
func (m *DeleteAdsRequest) ValidateAll() error
ValidateAll checks the field values on DeleteAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAdsRequestMultiError, or nil if none found.
type DeleteAdsRequestMultiError ¶
type DeleteAdsRequestMultiError []error
DeleteAdsRequestMultiError is an error wrapping multiple validation errors returned by DeleteAdsRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteAdsRequestMultiError) AllErrors ¶
func (m DeleteAdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAdsRequestMultiError) Error ¶
func (m DeleteAdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAdsRequestValidationError ¶
type DeleteAdsRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteAdsRequestValidationError is the validation error returned by DeleteAdsRequest.Validate if the designated constraints aren't met.
func (DeleteAdsRequestValidationError) Cause ¶
func (e DeleteAdsRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteAdsRequestValidationError) Error ¶
func (e DeleteAdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAdsRequestValidationError) ErrorName ¶
func (e DeleteAdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAdsRequestValidationError) Field ¶
func (e DeleteAdsRequestValidationError) Field() string
Field function returns field value.
func (DeleteAdsRequestValidationError) Key ¶
func (e DeleteAdsRequestValidationError) Key() bool
Key function returns key value.
func (DeleteAdsRequestValidationError) Reason ¶
func (e DeleteAdsRequestValidationError) Reason() string
Reason function returns reason value.
type GetAdsData ¶
type GetAdsData struct {
Ads *Ads `protobuf:"bytes,1,opt,name=ads,proto3" json:"ads,omitempty"`
// contains filtered or unexported fields
}
获取广告详情数据
func (*GetAdsData) Descriptor
deprecated
func (*GetAdsData) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsData.ProtoReflect.Descriptor instead.
func (*GetAdsData) GetAds ¶
func (x *GetAdsData) GetAds() *Ads
func (*GetAdsData) ProtoMessage ¶
func (*GetAdsData) ProtoMessage()
func (*GetAdsData) ProtoReflect ¶
func (x *GetAdsData) ProtoReflect() protoreflect.Message
func (*GetAdsData) Reset ¶
func (x *GetAdsData) Reset()
func (*GetAdsData) String ¶
func (x *GetAdsData) String() string
func (*GetAdsData) Validate ¶
func (m *GetAdsData) Validate() error
Validate checks the field values on GetAdsData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsData) ValidateAll ¶
func (m *GetAdsData) ValidateAll() error
ValidateAll checks the field values on GetAdsData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsDataMultiError, or nil if none found.
type GetAdsDataMultiError ¶
type GetAdsDataMultiError []error
GetAdsDataMultiError is an error wrapping multiple validation errors returned by GetAdsData.ValidateAll() if the designated constraints aren't met.
func (GetAdsDataMultiError) AllErrors ¶
func (m GetAdsDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsDataMultiError) Error ¶
func (m GetAdsDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsDataValidationError ¶
type GetAdsDataValidationError struct {
// contains filtered or unexported fields
}
GetAdsDataValidationError is the validation error returned by GetAdsData.Validate if the designated constraints aren't met.
func (GetAdsDataValidationError) Cause ¶
func (e GetAdsDataValidationError) Cause() error
Cause function returns cause value.
func (GetAdsDataValidationError) Error ¶
func (e GetAdsDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsDataValidationError) ErrorName ¶
func (e GetAdsDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsDataValidationError) Field ¶
func (e GetAdsDataValidationError) Field() string
Field function returns field value.
func (GetAdsDataValidationError) Key ¶
func (e GetAdsDataValidationError) Key() bool
Key function returns key value.
func (GetAdsDataValidationError) Reason ¶
func (e GetAdsDataValidationError) Reason() string
Reason function returns reason value.
type GetAdsListData ¶
type GetAdsListData struct {
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*Ads `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
获取广告列表数据
func (*GetAdsListData) Descriptor
deprecated
func (*GetAdsListData) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsListData.ProtoReflect.Descriptor instead.
func (*GetAdsListData) GetList ¶
func (x *GetAdsListData) GetList() []*Ads
func (*GetAdsListData) GetTotal ¶
func (x *GetAdsListData) GetTotal() int32
func (*GetAdsListData) ProtoMessage ¶
func (*GetAdsListData) ProtoMessage()
func (*GetAdsListData) ProtoReflect ¶
func (x *GetAdsListData) ProtoReflect() protoreflect.Message
func (*GetAdsListData) Reset ¶
func (x *GetAdsListData) Reset()
func (*GetAdsListData) String ¶
func (x *GetAdsListData) String() string
func (*GetAdsListData) Validate ¶
func (m *GetAdsListData) Validate() error
Validate checks the field values on GetAdsListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsListData) ValidateAll ¶
func (m *GetAdsListData) ValidateAll() error
ValidateAll checks the field values on GetAdsListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsListDataMultiError, or nil if none found.
type GetAdsListDataMultiError ¶
type GetAdsListDataMultiError []error
GetAdsListDataMultiError is an error wrapping multiple validation errors returned by GetAdsListData.ValidateAll() if the designated constraints aren't met.
func (GetAdsListDataMultiError) AllErrors ¶
func (m GetAdsListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsListDataMultiError) Error ¶
func (m GetAdsListDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsListDataValidationError ¶
type GetAdsListDataValidationError struct {
// contains filtered or unexported fields
}
GetAdsListDataValidationError is the validation error returned by GetAdsListData.Validate if the designated constraints aren't met.
func (GetAdsListDataValidationError) Cause ¶
func (e GetAdsListDataValidationError) Cause() error
Cause function returns cause value.
func (GetAdsListDataValidationError) Error ¶
func (e GetAdsListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsListDataValidationError) ErrorName ¶
func (e GetAdsListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsListDataValidationError) Field ¶
func (e GetAdsListDataValidationError) Field() string
Field function returns field value.
func (GetAdsListDataValidationError) Key ¶
func (e GetAdsListDataValidationError) Key() bool
Key function returns key value.
func (GetAdsListDataValidationError) Reason ¶
func (e GetAdsListDataValidationError) Reason() string
Reason function returns reason value.
type GetAdsListReply ¶
type GetAdsListReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *GetAdsListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
获取广告列表响应
func (*GetAdsListReply) Descriptor
deprecated
func (*GetAdsListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsListReply.ProtoReflect.Descriptor instead.
func (*GetAdsListReply) GetCode ¶
func (x *GetAdsListReply) GetCode() int32
func (*GetAdsListReply) GetData ¶
func (x *GetAdsListReply) GetData() *GetAdsListData
func (*GetAdsListReply) GetMessage ¶
func (x *GetAdsListReply) GetMessage() string
func (*GetAdsListReply) ProtoMessage ¶
func (*GetAdsListReply) ProtoMessage()
func (*GetAdsListReply) ProtoReflect ¶
func (x *GetAdsListReply) ProtoReflect() protoreflect.Message
func (*GetAdsListReply) Reset ¶
func (x *GetAdsListReply) Reset()
func (*GetAdsListReply) String ¶
func (x *GetAdsListReply) String() string
func (*GetAdsListReply) Validate ¶
func (m *GetAdsListReply) Validate() error
Validate checks the field values on GetAdsListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsListReply) ValidateAll ¶
func (m *GetAdsListReply) ValidateAll() error
ValidateAll checks the field values on GetAdsListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsListReplyMultiError, or nil if none found.
type GetAdsListReplyMultiError ¶
type GetAdsListReplyMultiError []error
GetAdsListReplyMultiError is an error wrapping multiple validation errors returned by GetAdsListReply.ValidateAll() if the designated constraints aren't met.
func (GetAdsListReplyMultiError) AllErrors ¶
func (m GetAdsListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsListReplyMultiError) Error ¶
func (m GetAdsListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsListReplyValidationError ¶
type GetAdsListReplyValidationError struct {
// contains filtered or unexported fields
}
GetAdsListReplyValidationError is the validation error returned by GetAdsListReply.Validate if the designated constraints aren't met.
func (GetAdsListReplyValidationError) Cause ¶
func (e GetAdsListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetAdsListReplyValidationError) Error ¶
func (e GetAdsListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsListReplyValidationError) ErrorName ¶
func (e GetAdsListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsListReplyValidationError) Field ¶
func (e GetAdsListReplyValidationError) Field() string
Field function returns field value.
func (GetAdsListReplyValidationError) Key ¶
func (e GetAdsListReplyValidationError) Key() bool
Key function returns key value.
func (GetAdsListReplyValidationError) Reason ¶
func (e GetAdsListReplyValidationError) Reason() string
Reason function returns reason value.
type GetAdsListRequest ¶
type GetAdsListRequest struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
Status *int32 `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
// contains filtered or unexported fields
}
获取广告列表请求
func (*GetAdsListRequest) Descriptor
deprecated
func (*GetAdsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsListRequest.ProtoReflect.Descriptor instead.
func (*GetAdsListRequest) GetPage ¶
func (x *GetAdsListRequest) GetPage() int32
func (*GetAdsListRequest) GetSearch ¶
func (x *GetAdsListRequest) GetSearch() string
func (*GetAdsListRequest) GetSize ¶
func (x *GetAdsListRequest) GetSize() int32
func (*GetAdsListRequest) GetStatus ¶
func (x *GetAdsListRequest) GetStatus() int32
func (*GetAdsListRequest) ProtoMessage ¶
func (*GetAdsListRequest) ProtoMessage()
func (*GetAdsListRequest) ProtoReflect ¶
func (x *GetAdsListRequest) ProtoReflect() protoreflect.Message
func (*GetAdsListRequest) Reset ¶
func (x *GetAdsListRequest) Reset()
func (*GetAdsListRequest) String ¶
func (x *GetAdsListRequest) String() string
func (*GetAdsListRequest) Validate ¶
func (m *GetAdsListRequest) Validate() error
Validate checks the field values on GetAdsListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsListRequest) ValidateAll ¶
func (m *GetAdsListRequest) ValidateAll() error
ValidateAll checks the field values on GetAdsListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsListRequestMultiError, or nil if none found.
type GetAdsListRequestMultiError ¶
type GetAdsListRequestMultiError []error
GetAdsListRequestMultiError is an error wrapping multiple validation errors returned by GetAdsListRequest.ValidateAll() if the designated constraints aren't met.
func (GetAdsListRequestMultiError) AllErrors ¶
func (m GetAdsListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsListRequestMultiError) Error ¶
func (m GetAdsListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsListRequestValidationError ¶
type GetAdsListRequestValidationError struct {
// contains filtered or unexported fields
}
GetAdsListRequestValidationError is the validation error returned by GetAdsListRequest.Validate if the designated constraints aren't met.
func (GetAdsListRequestValidationError) Cause ¶
func (e GetAdsListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAdsListRequestValidationError) Error ¶
func (e GetAdsListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsListRequestValidationError) ErrorName ¶
func (e GetAdsListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsListRequestValidationError) Field ¶
func (e GetAdsListRequestValidationError) Field() string
Field function returns field value.
func (GetAdsListRequestValidationError) Key ¶
func (e GetAdsListRequestValidationError) Key() bool
Key function returns key value.
func (GetAdsListRequestValidationError) Reason ¶
func (e GetAdsListRequestValidationError) Reason() string
Reason function returns reason value.
type GetAdsReply ¶
type GetAdsReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *GetAdsData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
获取广告详情响应
func (*GetAdsReply) Descriptor
deprecated
func (*GetAdsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsReply.ProtoReflect.Descriptor instead.
func (*GetAdsReply) GetCode ¶
func (x *GetAdsReply) GetCode() int32
func (*GetAdsReply) GetData ¶
func (x *GetAdsReply) GetData() *GetAdsData
func (*GetAdsReply) GetMessage ¶
func (x *GetAdsReply) GetMessage() string
func (*GetAdsReply) ProtoMessage ¶
func (*GetAdsReply) ProtoMessage()
func (*GetAdsReply) ProtoReflect ¶
func (x *GetAdsReply) ProtoReflect() protoreflect.Message
func (*GetAdsReply) Reset ¶
func (x *GetAdsReply) Reset()
func (*GetAdsReply) String ¶
func (x *GetAdsReply) String() string
func (*GetAdsReply) Validate ¶
func (m *GetAdsReply) Validate() error
Validate checks the field values on GetAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsReply) ValidateAll ¶
func (m *GetAdsReply) ValidateAll() error
ValidateAll checks the field values on GetAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsReplyMultiError, or nil if none found.
type GetAdsReplyMultiError ¶
type GetAdsReplyMultiError []error
GetAdsReplyMultiError is an error wrapping multiple validation errors returned by GetAdsReply.ValidateAll() if the designated constraints aren't met.
func (GetAdsReplyMultiError) AllErrors ¶
func (m GetAdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsReplyMultiError) Error ¶
func (m GetAdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsReplyValidationError ¶
type GetAdsReplyValidationError struct {
// contains filtered or unexported fields
}
GetAdsReplyValidationError is the validation error returned by GetAdsReply.Validate if the designated constraints aren't met.
func (GetAdsReplyValidationError) Cause ¶
func (e GetAdsReplyValidationError) Cause() error
Cause function returns cause value.
func (GetAdsReplyValidationError) Error ¶
func (e GetAdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsReplyValidationError) ErrorName ¶
func (e GetAdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsReplyValidationError) Field ¶
func (e GetAdsReplyValidationError) Field() string
Field function returns field value.
func (GetAdsReplyValidationError) Key ¶
func (e GetAdsReplyValidationError) Key() bool
Key function returns key value.
func (GetAdsReplyValidationError) Reason ¶
func (e GetAdsReplyValidationError) Reason() string
Reason function returns reason value.
type GetAdsRequest ¶
type GetAdsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
获取广告详情请求
func (*GetAdsRequest) Descriptor
deprecated
func (*GetAdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAdsRequest.ProtoReflect.Descriptor instead.
func (*GetAdsRequest) GetId ¶
func (x *GetAdsRequest) GetId() int64
func (*GetAdsRequest) ProtoMessage ¶
func (*GetAdsRequest) ProtoMessage()
func (*GetAdsRequest) ProtoReflect ¶
func (x *GetAdsRequest) ProtoReflect() protoreflect.Message
func (*GetAdsRequest) Reset ¶
func (x *GetAdsRequest) Reset()
func (*GetAdsRequest) String ¶
func (x *GetAdsRequest) String() string
func (*GetAdsRequest) Validate ¶
func (m *GetAdsRequest) Validate() error
Validate checks the field values on GetAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAdsRequest) ValidateAll ¶
func (m *GetAdsRequest) ValidateAll() error
ValidateAll checks the field values on GetAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAdsRequestMultiError, or nil if none found.
type GetAdsRequestMultiError ¶
type GetAdsRequestMultiError []error
GetAdsRequestMultiError is an error wrapping multiple validation errors returned by GetAdsRequest.ValidateAll() if the designated constraints aren't met.
func (GetAdsRequestMultiError) AllErrors ¶
func (m GetAdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAdsRequestMultiError) Error ¶
func (m GetAdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAdsRequestValidationError ¶
type GetAdsRequestValidationError struct {
// contains filtered or unexported fields
}
GetAdsRequestValidationError is the validation error returned by GetAdsRequest.Validate if the designated constraints aren't met.
func (GetAdsRequestValidationError) Cause ¶
func (e GetAdsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAdsRequestValidationError) Error ¶
func (e GetAdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAdsRequestValidationError) ErrorName ¶
func (e GetAdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAdsRequestValidationError) Field ¶
func (e GetAdsRequestValidationError) Field() string
Field function returns field value.
func (GetAdsRequestValidationError) Key ¶
func (e GetAdsRequestValidationError) Key() bool
Key function returns key value.
func (GetAdsRequestValidationError) Reason ¶
func (e GetAdsRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAdsServiceServer ¶
type UnimplementedAdsServiceServer struct{}
UnimplementedAdsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAdsServiceServer) CreateAds ¶
func (UnimplementedAdsServiceServer) CreateAds(context.Context, *CreateAdsRequest) (*CreateAdsReply, error)
func (UnimplementedAdsServiceServer) DeleteAds ¶
func (UnimplementedAdsServiceServer) DeleteAds(context.Context, *DeleteAdsRequest) (*DeleteAdsReply, error)
func (UnimplementedAdsServiceServer) GetAds ¶
func (UnimplementedAdsServiceServer) GetAds(context.Context, *GetAdsRequest) (*GetAdsReply, error)
func (UnimplementedAdsServiceServer) GetAdsList ¶
func (UnimplementedAdsServiceServer) GetAdsList(context.Context, *GetAdsListRequest) (*GetAdsListReply, error)
func (UnimplementedAdsServiceServer) UpdateAds ¶
func (UnimplementedAdsServiceServer) UpdateAds(context.Context, *UpdateAdsRequest) (*UpdateAdsReply, error)
type UnsafeAdsServiceServer ¶
type UnsafeAdsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdsServiceServer will result in compilation errors.
type UpdateAdsData ¶
type UpdateAdsData struct {
Ads *Ads `protobuf:"bytes,1,opt,name=ads,proto3" json:"ads,omitempty"`
// contains filtered or unexported fields
}
更新广告数据
func (*UpdateAdsData) Descriptor
deprecated
func (*UpdateAdsData) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdsData.ProtoReflect.Descriptor instead.
func (*UpdateAdsData) GetAds ¶
func (x *UpdateAdsData) GetAds() *Ads
func (*UpdateAdsData) ProtoMessage ¶
func (*UpdateAdsData) ProtoMessage()
func (*UpdateAdsData) ProtoReflect ¶
func (x *UpdateAdsData) ProtoReflect() protoreflect.Message
func (*UpdateAdsData) Reset ¶
func (x *UpdateAdsData) Reset()
func (*UpdateAdsData) String ¶
func (x *UpdateAdsData) String() string
func (*UpdateAdsData) Validate ¶
func (m *UpdateAdsData) Validate() error
Validate checks the field values on UpdateAdsData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateAdsData) ValidateAll ¶
func (m *UpdateAdsData) ValidateAll() error
ValidateAll checks the field values on UpdateAdsData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAdsDataMultiError, or nil if none found.
type UpdateAdsDataMultiError ¶
type UpdateAdsDataMultiError []error
UpdateAdsDataMultiError is an error wrapping multiple validation errors returned by UpdateAdsData.ValidateAll() if the designated constraints aren't met.
func (UpdateAdsDataMultiError) AllErrors ¶
func (m UpdateAdsDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdsDataMultiError) Error ¶
func (m UpdateAdsDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdsDataValidationError ¶
type UpdateAdsDataValidationError struct {
// contains filtered or unexported fields
}
UpdateAdsDataValidationError is the validation error returned by UpdateAdsData.Validate if the designated constraints aren't met.
func (UpdateAdsDataValidationError) Cause ¶
func (e UpdateAdsDataValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdsDataValidationError) Error ¶
func (e UpdateAdsDataValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdsDataValidationError) ErrorName ¶
func (e UpdateAdsDataValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdsDataValidationError) Field ¶
func (e UpdateAdsDataValidationError) Field() string
Field function returns field value.
func (UpdateAdsDataValidationError) Key ¶
func (e UpdateAdsDataValidationError) Key() bool
Key function returns key value.
func (UpdateAdsDataValidationError) Reason ¶
func (e UpdateAdsDataValidationError) Reason() string
Reason function returns reason value.
type UpdateAdsReply ¶
type UpdateAdsReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Data *UpdateAdsData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 响应数据
// contains filtered or unexported fields
}
更新广告响应
func (*UpdateAdsReply) Descriptor
deprecated
func (*UpdateAdsReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdsReply.ProtoReflect.Descriptor instead.
func (*UpdateAdsReply) GetCode ¶
func (x *UpdateAdsReply) GetCode() int32
func (*UpdateAdsReply) GetData ¶
func (x *UpdateAdsReply) GetData() *UpdateAdsData
func (*UpdateAdsReply) GetMessage ¶
func (x *UpdateAdsReply) GetMessage() string
func (*UpdateAdsReply) ProtoMessage ¶
func (*UpdateAdsReply) ProtoMessage()
func (*UpdateAdsReply) ProtoReflect ¶
func (x *UpdateAdsReply) ProtoReflect() protoreflect.Message
func (*UpdateAdsReply) Reset ¶
func (x *UpdateAdsReply) Reset()
func (*UpdateAdsReply) String ¶
func (x *UpdateAdsReply) String() string
func (*UpdateAdsReply) Validate ¶
func (m *UpdateAdsReply) Validate() error
Validate checks the field values on UpdateAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateAdsReply) ValidateAll ¶
func (m *UpdateAdsReply) ValidateAll() error
ValidateAll checks the field values on UpdateAdsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAdsReplyMultiError, or nil if none found.
type UpdateAdsReplyMultiError ¶
type UpdateAdsReplyMultiError []error
UpdateAdsReplyMultiError is an error wrapping multiple validation errors returned by UpdateAdsReply.ValidateAll() if the designated constraints aren't met.
func (UpdateAdsReplyMultiError) AllErrors ¶
func (m UpdateAdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdsReplyMultiError) Error ¶
func (m UpdateAdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdsReplyValidationError ¶
type UpdateAdsReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateAdsReplyValidationError is the validation error returned by UpdateAdsReply.Validate if the designated constraints aren't met.
func (UpdateAdsReplyValidationError) Cause ¶
func (e UpdateAdsReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdsReplyValidationError) Error ¶
func (e UpdateAdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdsReplyValidationError) ErrorName ¶
func (e UpdateAdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdsReplyValidationError) Field ¶
func (e UpdateAdsReplyValidationError) Field() string
Field function returns field value.
func (UpdateAdsReplyValidationError) Key ¶
func (e UpdateAdsReplyValidationError) Key() bool
Key function returns key value.
func (UpdateAdsReplyValidationError) Reason ¶
func (e UpdateAdsReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateAdsRequest ¶
type UpdateAdsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
TargetUrl string `protobuf:"bytes,6,opt,name=target_url,json=targetUrl,proto3" json:"target_url,omitempty"`
StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Unix timestamp in seconds
EndTime int64 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Unix timestamp in seconds
Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态:0=禁用 1=启用
// contains filtered or unexported fields
}
更新广告请求
func (*UpdateAdsRequest) Descriptor
deprecated
func (*UpdateAdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdsRequest.ProtoReflect.Descriptor instead.
func (*UpdateAdsRequest) GetContent ¶
func (x *UpdateAdsRequest) GetContent() string
func (*UpdateAdsRequest) GetDescription ¶
func (x *UpdateAdsRequest) GetDescription() string
func (*UpdateAdsRequest) GetEndTime ¶
func (x *UpdateAdsRequest) GetEndTime() int64
func (*UpdateAdsRequest) GetId ¶
func (x *UpdateAdsRequest) GetId() int64
func (*UpdateAdsRequest) GetStartTime ¶
func (x *UpdateAdsRequest) GetStartTime() int64
func (*UpdateAdsRequest) GetStatus ¶
func (x *UpdateAdsRequest) GetStatus() int32
func (*UpdateAdsRequest) GetTargetUrl ¶
func (x *UpdateAdsRequest) GetTargetUrl() string
func (*UpdateAdsRequest) GetTitle ¶
func (x *UpdateAdsRequest) GetTitle() string
func (*UpdateAdsRequest) GetType ¶
func (x *UpdateAdsRequest) GetType() string
func (*UpdateAdsRequest) ProtoMessage ¶
func (*UpdateAdsRequest) ProtoMessage()
func (*UpdateAdsRequest) ProtoReflect ¶
func (x *UpdateAdsRequest) ProtoReflect() protoreflect.Message
func (*UpdateAdsRequest) Reset ¶
func (x *UpdateAdsRequest) Reset()
func (*UpdateAdsRequest) String ¶
func (x *UpdateAdsRequest) String() string
func (*UpdateAdsRequest) Validate ¶
func (m *UpdateAdsRequest) Validate() error
Validate checks the field values on UpdateAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateAdsRequest) ValidateAll ¶
func (m *UpdateAdsRequest) ValidateAll() error
ValidateAll checks the field values on UpdateAdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAdsRequestMultiError, or nil if none found.
type UpdateAdsRequestMultiError ¶
type UpdateAdsRequestMultiError []error
UpdateAdsRequestMultiError is an error wrapping multiple validation errors returned by UpdateAdsRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateAdsRequestMultiError) AllErrors ¶
func (m UpdateAdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAdsRequestMultiError) Error ¶
func (m UpdateAdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAdsRequestValidationError ¶
type UpdateAdsRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateAdsRequestValidationError is the validation error returned by UpdateAdsRequest.Validate if the designated constraints aren't met.
func (UpdateAdsRequestValidationError) Cause ¶
func (e UpdateAdsRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAdsRequestValidationError) Error ¶
func (e UpdateAdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAdsRequestValidationError) ErrorName ¶
func (e UpdateAdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAdsRequestValidationError) Field ¶
func (e UpdateAdsRequestValidationError) Field() string
Field function returns field value.
func (UpdateAdsRequestValidationError) Key ¶
func (e UpdateAdsRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAdsRequestValidationError) Reason ¶
func (e UpdateAdsRequestValidationError) Reason() string
Reason function returns reason value.