v1

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationAdsServiceCreateAds = "/api.admin.ads.v1.AdsService/CreateAds"
View Source
const OperationAdsServiceDeleteAds = "/api.admin.ads.v1.AdsService/DeleteAds"
View Source
const OperationAdsServiceGetAds = "/api.admin.ads.v1.AdsService/GetAds"
View Source
const OperationAdsServiceGetAdsList = "/api.admin.ads.v1.AdsService/GetAdsList"
View Source
const OperationAdsServiceUpdateAds = "/api.admin.ads.v1.AdsService/UpdateAds"

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Ads.ProtoReflect.Descriptor instead.

func (*Ads) GetContent

func (x *Ads) GetContent() string

func (*Ads) GetCreatedAt

func (x *Ads) GetCreatedAt() int64

func (*Ads) GetDescription

func (x *Ads) GetDescription() string

func (*Ads) GetEndTime

func (x *Ads) GetEndTime() int64

func (*Ads) GetId

func (x *Ads) GetId() int64

func (*Ads) GetStartTime

func (x *Ads) GetStartTime() int64

func (*Ads) GetStatus

func (x *Ads) GetStatus() int32

func (*Ads) GetTargetUrl

func (x *Ads) GetTargetUrl() string

func (*Ads) GetTitle

func (x *Ads) GetTitle() string

func (*Ads) GetType

func (x *Ads) GetType() string

func (*Ads) GetUpdatedAt

func (x *Ads) GetUpdatedAt() int64

func (*Ads) ProtoMessage

func (*Ads) ProtoMessage()

func (*Ads) ProtoReflect

func (x *Ads) ProtoReflect() protoreflect.Message

func (*Ads) Reset

func (x *Ads) Reset()

func (*Ads) String

func (x *Ads) String() string

func (*Ads) Validate

func (m *Ads) Validate() error

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

func (m *Ads) ValidateAll() error

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

CreateAds 创建广告

func (*AdsServiceHTTPClientImpl) DeleteAds

DeleteAds 删除广告

func (*AdsServiceHTTPClientImpl) GetAds

GetAds 获取广告详情

func (*AdsServiceHTTPClientImpl) GetAdsList

GetAdsList 获取广告列表

func (*AdsServiceHTTPClientImpl) UpdateAds

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

Cause function returns cause value.

func (CreateAdsDataValidationError) Error

Error satisfies the builtin error interface

func (CreateAdsDataValidationError) ErrorName

func (e CreateAdsDataValidationError) ErrorName() string

ErrorName returns error name.

func (CreateAdsDataValidationError) Field

Field function returns field value.

func (CreateAdsDataValidationError) Key

Key function returns key value.

func (CreateAdsDataValidationError) Reason

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

Cause function returns cause value.

func (CreateAdsReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateAdsReplyValidationError) ErrorName

func (e CreateAdsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateAdsReplyValidationError) Field

Field function returns field value.

func (CreateAdsReplyValidationError) Key

Key function returns key value.

func (CreateAdsReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateAdsRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAdsRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAdsRequestValidationError) Field

Field function returns field value.

func (CreateAdsRequestValidationError) Key

Key function returns key value.

func (CreateAdsRequestValidationError) Reason

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

Cause function returns cause value.

func (DeleteAdsDataValidationError) Error

Error satisfies the builtin error interface

func (DeleteAdsDataValidationError) ErrorName

func (e DeleteAdsDataValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteAdsDataValidationError) Field

Field function returns field value.

func (DeleteAdsDataValidationError) Key

Key function returns key value.

func (DeleteAdsDataValidationError) Reason

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

Cause function returns cause value.

func (DeleteAdsReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteAdsReplyValidationError) ErrorName

func (e DeleteAdsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteAdsReplyValidationError) Field

Field function returns field value.

func (DeleteAdsReplyValidationError) Key

Key function returns key value.

func (DeleteAdsReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteAdsRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAdsRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAdsRequestValidationError) Field

Field function returns field value.

func (DeleteAdsRequestValidationError) Key

Key function returns key value.

func (DeleteAdsRequestValidationError) Reason

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

Error satisfies the builtin error interface

func (GetAdsDataValidationError) ErrorName

func (e GetAdsDataValidationError) ErrorName() string

ErrorName returns error name.

func (GetAdsDataValidationError) Field

Field function returns field value.

func (GetAdsDataValidationError) Key

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

Cause function returns cause value.

func (GetAdsListDataValidationError) Error

Error satisfies the builtin error interface

func (GetAdsListDataValidationError) ErrorName

func (e GetAdsListDataValidationError) ErrorName() string

ErrorName returns error name.

func (GetAdsListDataValidationError) Field

Field function returns field value.

func (GetAdsListDataValidationError) Key

Key function returns key value.

func (GetAdsListDataValidationError) Reason

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

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

Cause function returns cause value.

func (GetAdsListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAdsListReplyValidationError) ErrorName

func (e GetAdsListReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetAdsListReplyValidationError) Field

Field function returns field value.

func (GetAdsListReplyValidationError) Key

Key function returns key value.

func (GetAdsListReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetAdsListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAdsListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAdsListRequestValidationError) Field

Field function returns field value.

func (GetAdsListRequestValidationError) Key

Key function returns key value.

func (GetAdsListRequestValidationError) Reason

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

Cause function returns cause value.

func (GetAdsReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAdsReplyValidationError) ErrorName

func (e GetAdsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetAdsReplyValidationError) Field

Field function returns field value.

func (GetAdsReplyValidationError) Key

Key function returns key value.

func (GetAdsReplyValidationError) Reason

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

Cause function returns cause value.

func (GetAdsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAdsRequestValidationError) ErrorName

func (e GetAdsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetAdsRequestValidationError) Field

Field function returns field value.

func (GetAdsRequestValidationError) Key

Key function returns key value.

func (GetAdsRequestValidationError) Reason

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) DeleteAds

func (UnimplementedAdsServiceServer) GetAds

func (UnimplementedAdsServiceServer) GetAdsList

func (UnimplementedAdsServiceServer) UpdateAds

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

Cause function returns cause value.

func (UpdateAdsDataValidationError) Error

Error satisfies the builtin error interface

func (UpdateAdsDataValidationError) ErrorName

func (e UpdateAdsDataValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateAdsDataValidationError) Field

Field function returns field value.

func (UpdateAdsDataValidationError) Key

Key function returns key value.

func (UpdateAdsDataValidationError) Reason

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

Cause function returns cause value.

func (UpdateAdsReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateAdsReplyValidationError) ErrorName

func (e UpdateAdsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateAdsReplyValidationError) Field

Field function returns field value.

func (UpdateAdsReplyValidationError) Key

Key function returns key value.

func (UpdateAdsReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateAdsRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAdsRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAdsRequestValidationError) Field

Field function returns field value.

func (UpdateAdsRequestValidationError) Key

Key function returns key value.

func (UpdateAdsRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL