Documentation ¶
Index ¶
- Variables
- func RegisterSpaceServer(s *grpc.Server, srv SpaceServer)
- type AdInfoListResponse
- func (*AdInfoListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AdInfoListResponse) GetAdInfoResponses() []*AdInfoResponse
- func (*AdInfoListResponse) ProtoMessage()
- func (x *AdInfoListResponse) ProtoReflect() protoreflect.Message
- func (x *AdInfoListResponse) Reset()
- func (x *AdInfoListResponse) String() string
- type AdInfoResponse
- func (*AdInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AdInfoResponse) GetBaseProto() *BaseProto
- func (x *AdInfoResponse) GetEndTime() int64
- func (x *AdInfoResponse) GetHtmlContent() string
- func (x *AdInfoResponse) GetId() int32
- func (x *AdInfoResponse) GetImg() string
- func (x *AdInfoResponse) GetKeyword() string
- func (x *AdInfoResponse) GetLink() string
- func (x *AdInfoResponse) GetName() string
- func (x *AdInfoResponse) GetPriority() int32
- func (x *AdInfoResponse) GetSpaceId() int32
- func (x *AdInfoResponse) GetStartTime() int64
- func (x *AdInfoResponse) GetStatus() int32
- func (x *AdInfoResponse) GetText() string
- func (*AdInfoResponse) ProtoMessage()
- func (x *AdInfoResponse) ProtoReflect() protoreflect.Message
- func (x *AdInfoResponse) Reset()
- func (x *AdInfoResponse) String() string
- type AdSaveOrUpdateRequest
- func (*AdSaveOrUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AdSaveOrUpdateRequest) GetBaseProto() *BaseProto
- func (x *AdSaveOrUpdateRequest) GetEndTime() int64
- func (x *AdSaveOrUpdateRequest) GetHtmlContent() string
- func (x *AdSaveOrUpdateRequest) GetId() int32
- func (x *AdSaveOrUpdateRequest) GetImg() string
- func (x *AdSaveOrUpdateRequest) GetKeyword() string
- func (x *AdSaveOrUpdateRequest) GetLink() string
- func (x *AdSaveOrUpdateRequest) GetName() string
- func (x *AdSaveOrUpdateRequest) GetPriority() int32
- func (x *AdSaveOrUpdateRequest) GetSpaceId() int32
- func (x *AdSaveOrUpdateRequest) GetStartTime() int64
- func (x *AdSaveOrUpdateRequest) GetStatus() int32
- func (x *AdSaveOrUpdateRequest) GetText() string
- func (*AdSaveOrUpdateRequest) ProtoMessage()
- func (x *AdSaveOrUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *AdSaveOrUpdateRequest) Reset()
- func (x *AdSaveOrUpdateRequest) String() string
- type AdUpdateStatusRequest
- func (*AdUpdateStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AdUpdateStatusRequest) GetId() int32
- func (x *AdUpdateStatusRequest) GetStatus() int32
- func (*AdUpdateStatusRequest) ProtoMessage()
- func (x *AdUpdateStatusRequest) ProtoReflect() protoreflect.Message
- func (x *AdUpdateStatusRequest) Reset()
- func (x *AdUpdateStatusRequest) String() string
- type BaseProto
- func (*BaseProto) Descriptor() ([]byte, []int)deprecated
- func (x *BaseProto) GetCreateTime() int64
- func (x *BaseProto) GetDeleteTime() int64
- func (x *BaseProto) GetUpdateTime() int64
- func (*BaseProto) ProtoMessage()
- func (x *BaseProto) ProtoReflect() protoreflect.Message
- func (x *BaseProto) Reset()
- func (x *BaseProto) String() string
- type GetAdByIdRequest
- type GetAdListRequest
- func (*GetAdListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdListRequest) GetPageSize() int32
- func (x *GetAdListRequest) GetPages() int32
- func (*GetAdListRequest) ProtoMessage()
- func (x *GetAdListRequest) ProtoReflect() protoreflect.Message
- func (x *GetAdListRequest) Reset()
- func (x *GetAdListRequest) String() string
- type GetAllAdsRequest
- type GetAllAdsResponse
- func (*GetAllAdsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllAdsResponse) GetAdInfoListRsp() []*AdInfoResponse
- func (x *GetAllAdsResponse) GetBaseProto() *BaseProto
- func (x *GetAllAdsResponse) GetId() int32
- func (x *GetAllAdsResponse) GetName() string
- func (x *GetAllAdsResponse) GetSpaceKey() string
- func (*GetAllAdsResponse) ProtoMessage()
- func (x *GetAllAdsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllAdsResponse) Reset()
- func (x *GetAllAdsResponse) String() string
- type GetAllSpacesRequest
- func (*GetAllSpacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllSpacesRequest) GetPageSize() int32
- func (x *GetAllSpacesRequest) GetPages() int32
- func (*GetAllSpacesRequest) ProtoMessage()
- func (x *GetAllSpacesRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllSpacesRequest) Reset()
- func (x *GetAllSpacesRequest) String() string
- type GetSpaceByIdRequest
- func (*GetSpaceByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSpaceByIdRequest) GetId() int32
- func (*GetSpaceByIdRequest) ProtoMessage()
- func (x *GetSpaceByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetSpaceByIdRequest) Reset()
- func (x *GetSpaceByIdRequest) String() string
- type GetSpaceByIdResponse
- func (*GetSpaceByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSpaceByIdResponse) GetBaseProto() *BaseProto
- func (x *GetSpaceByIdResponse) GetId() int32
- func (x *GetSpaceByIdResponse) GetName() string
- func (x *GetSpaceByIdResponse) GetSpaceKey() string
- func (*GetSpaceByIdResponse) ProtoMessage()
- func (x *GetSpaceByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetSpaceByIdResponse) Reset()
- func (x *GetSpaceByIdResponse) String() string
- type SpaceClient
- type SpaceInfoListResponse
- func (*SpaceInfoListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceInfoListResponse) GetSpaceInfoResponse() []*SpaceInfoResponse
- func (*SpaceInfoListResponse) ProtoMessage()
- func (x *SpaceInfoListResponse) ProtoReflect() protoreflect.Message
- func (x *SpaceInfoListResponse) Reset()
- func (x *SpaceInfoListResponse) String() string
- type SpaceInfoResponse
- func (*SpaceInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceInfoResponse) GetBaseProto() *BaseProto
- func (x *SpaceInfoResponse) GetId() int32
- func (x *SpaceInfoResponse) GetName() string
- func (x *SpaceInfoResponse) GetSpaceKey() string
- func (*SpaceInfoResponse) ProtoMessage()
- func (x *SpaceInfoResponse) ProtoReflect() protoreflect.Message
- func (x *SpaceInfoResponse) Reset()
- func (x *SpaceInfoResponse) String() string
- type SpaceSaveOrUpdateRequest
- func (*SpaceSaveOrUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpaceSaveOrUpdateRequest) GetId() int32
- func (x *SpaceSaveOrUpdateRequest) GetName() string
- func (x *SpaceSaveOrUpdateRequest) GetSpaceKey() string
- func (*SpaceSaveOrUpdateRequest) ProtoMessage()
- func (x *SpaceSaveOrUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *SpaceSaveOrUpdateRequest) Reset()
- func (x *SpaceSaveOrUpdateRequest) String() string
- type SpaceServer
- type UnimplementedSpaceServer
- func (*UnimplementedSpaceServer) AdSaveOrUpdate(context.Context, *AdSaveOrUpdateRequest) (*empty.Empty, error)
- func (*UnimplementedSpaceServer) AdUpdateStatus(context.Context, *AdUpdateStatusRequest) (*empty.Empty, error)
- func (*UnimplementedSpaceServer) GetAdById(context.Context, *GetAdByIdRequest) (*AdInfoResponse, error)
- func (*UnimplementedSpaceServer) GetAdList(context.Context, *GetAdListRequest) (*AdInfoListResponse, error)
- func (*UnimplementedSpaceServer) GetAllAds(context.Context, *GetAllAdsRequest) (*GetAllAdsResponse, error)
- func (*UnimplementedSpaceServer) GetAllSpaces(context.Context, *GetAllSpacesRequest) (*SpaceInfoListResponse, error)
- func (*UnimplementedSpaceServer) GetSpaceById(context.Context, *GetSpaceByIdRequest) (*GetSpaceByIdResponse, error)
- func (*UnimplementedSpaceServer) SpaceSaveOrUpdate(context.Context, *SpaceSaveOrUpdateRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var File_space_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSpaceServer ¶
func RegisterSpaceServer(s *grpc.Server, srv SpaceServer)
Types ¶
type AdInfoListResponse ¶
type AdInfoListResponse struct { AdInfoResponses []*AdInfoResponse `protobuf:"bytes,1,rep,name=ad_info_responses,json=adInfoResponses,proto3" json:"ad_info_responses,omitempty"` // contains filtered or unexported fields }
func (*AdInfoListResponse) Descriptor
deprecated
func (*AdInfoListResponse) Descriptor() ([]byte, []int)
Deprecated: Use AdInfoListResponse.ProtoReflect.Descriptor instead.
func (*AdInfoListResponse) GetAdInfoResponses ¶
func (x *AdInfoListResponse) GetAdInfoResponses() []*AdInfoResponse
func (*AdInfoListResponse) ProtoMessage ¶
func (*AdInfoListResponse) ProtoMessage()
func (*AdInfoListResponse) ProtoReflect ¶
func (x *AdInfoListResponse) ProtoReflect() protoreflect.Message
func (*AdInfoListResponse) Reset ¶
func (x *AdInfoListResponse) Reset()
func (*AdInfoListResponse) String ¶
func (x *AdInfoListResponse) String() string
type AdInfoResponse ¶
type AdInfoResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SpaceId int32 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` HtmlContent string `protobuf:"bytes,4,opt,name=html_content,json=htmlContent,proto3" json:"html_content,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` Priority int32 `protobuf:"varint,10,opt,name=priority,proto3" json:"priority,omitempty"` Img string `protobuf:"bytes,11,opt,name=img,proto3" json:"img,omitempty"` Id int32 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` BaseProto *BaseProto `protobuf:"bytes,13,opt,name=base_proto,json=baseProto,proto3" json:"base_proto,omitempty"` // contains filtered or unexported fields }
func (*AdInfoResponse) Descriptor
deprecated
func (*AdInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use AdInfoResponse.ProtoReflect.Descriptor instead.
func (*AdInfoResponse) GetBaseProto ¶
func (x *AdInfoResponse) GetBaseProto() *BaseProto
func (*AdInfoResponse) GetEndTime ¶
func (x *AdInfoResponse) GetEndTime() int64
func (*AdInfoResponse) GetHtmlContent ¶
func (x *AdInfoResponse) GetHtmlContent() string
func (*AdInfoResponse) GetId ¶
func (x *AdInfoResponse) GetId() int32
func (*AdInfoResponse) GetImg ¶
func (x *AdInfoResponse) GetImg() string
func (*AdInfoResponse) GetKeyword ¶
func (x *AdInfoResponse) GetKeyword() string
func (*AdInfoResponse) GetLink ¶
func (x *AdInfoResponse) GetLink() string
func (*AdInfoResponse) GetName ¶
func (x *AdInfoResponse) GetName() string
func (*AdInfoResponse) GetPriority ¶
func (x *AdInfoResponse) GetPriority() int32
func (*AdInfoResponse) GetSpaceId ¶
func (x *AdInfoResponse) GetSpaceId() int32
func (*AdInfoResponse) GetStartTime ¶
func (x *AdInfoResponse) GetStartTime() int64
func (*AdInfoResponse) GetStatus ¶
func (x *AdInfoResponse) GetStatus() int32
func (*AdInfoResponse) GetText ¶
func (x *AdInfoResponse) GetText() string
func (*AdInfoResponse) ProtoMessage ¶
func (*AdInfoResponse) ProtoMessage()
func (*AdInfoResponse) ProtoReflect ¶
func (x *AdInfoResponse) ProtoReflect() protoreflect.Message
func (*AdInfoResponse) Reset ¶
func (x *AdInfoResponse) Reset()
func (*AdInfoResponse) String ¶
func (x *AdInfoResponse) String() string
type AdSaveOrUpdateRequest ¶
type AdSaveOrUpdateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SpaceId int32 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` HtmlContent string `protobuf:"bytes,4,opt,name=html_content,json=htmlContent,proto3" json:"html_content,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` StartTime int64 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` Priority int32 `protobuf:"varint,10,opt,name=priority,proto3" json:"priority,omitempty"` Img string `protobuf:"bytes,11,opt,name=img,proto3" json:"img,omitempty"` Id int32 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` BaseProto *BaseProto `protobuf:"bytes,13,opt,name=base_proto,json=baseProto,proto3" json:"base_proto,omitempty"` // contains filtered or unexported fields }
func (*AdSaveOrUpdateRequest) Descriptor
deprecated
func (*AdSaveOrUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdSaveOrUpdateRequest.ProtoReflect.Descriptor instead.
func (*AdSaveOrUpdateRequest) GetBaseProto ¶
func (x *AdSaveOrUpdateRequest) GetBaseProto() *BaseProto
func (*AdSaveOrUpdateRequest) GetEndTime ¶
func (x *AdSaveOrUpdateRequest) GetEndTime() int64
func (*AdSaveOrUpdateRequest) GetHtmlContent ¶
func (x *AdSaveOrUpdateRequest) GetHtmlContent() string
func (*AdSaveOrUpdateRequest) GetId ¶
func (x *AdSaveOrUpdateRequest) GetId() int32
func (*AdSaveOrUpdateRequest) GetImg ¶
func (x *AdSaveOrUpdateRequest) GetImg() string
func (*AdSaveOrUpdateRequest) GetKeyword ¶
func (x *AdSaveOrUpdateRequest) GetKeyword() string
func (*AdSaveOrUpdateRequest) GetLink ¶
func (x *AdSaveOrUpdateRequest) GetLink() string
func (*AdSaveOrUpdateRequest) GetName ¶
func (x *AdSaveOrUpdateRequest) GetName() string
func (*AdSaveOrUpdateRequest) GetPriority ¶
func (x *AdSaveOrUpdateRequest) GetPriority() int32
func (*AdSaveOrUpdateRequest) GetSpaceId ¶
func (x *AdSaveOrUpdateRequest) GetSpaceId() int32
func (*AdSaveOrUpdateRequest) GetStartTime ¶
func (x *AdSaveOrUpdateRequest) GetStartTime() int64
func (*AdSaveOrUpdateRequest) GetStatus ¶
func (x *AdSaveOrUpdateRequest) GetStatus() int32
func (*AdSaveOrUpdateRequest) GetText ¶
func (x *AdSaveOrUpdateRequest) GetText() string
func (*AdSaveOrUpdateRequest) ProtoMessage ¶
func (*AdSaveOrUpdateRequest) ProtoMessage()
func (*AdSaveOrUpdateRequest) ProtoReflect ¶
func (x *AdSaveOrUpdateRequest) ProtoReflect() protoreflect.Message
func (*AdSaveOrUpdateRequest) Reset ¶
func (x *AdSaveOrUpdateRequest) Reset()
func (*AdSaveOrUpdateRequest) String ¶
func (x *AdSaveOrUpdateRequest) String() string
type AdUpdateStatusRequest ¶
type AdUpdateStatusRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AdUpdateStatusRequest) Descriptor
deprecated
func (*AdUpdateStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdUpdateStatusRequest.ProtoReflect.Descriptor instead.
func (*AdUpdateStatusRequest) GetId ¶
func (x *AdUpdateStatusRequest) GetId() int32
func (*AdUpdateStatusRequest) GetStatus ¶
func (x *AdUpdateStatusRequest) GetStatus() int32
func (*AdUpdateStatusRequest) ProtoMessage ¶
func (*AdUpdateStatusRequest) ProtoMessage()
func (*AdUpdateStatusRequest) ProtoReflect ¶
func (x *AdUpdateStatusRequest) ProtoReflect() protoreflect.Message
func (*AdUpdateStatusRequest) Reset ¶
func (x *AdUpdateStatusRequest) Reset()
func (*AdUpdateStatusRequest) String ¶
func (x *AdUpdateStatusRequest) String() string
type BaseProto ¶
type BaseProto struct { CreateTime int64 `protobuf:"varint,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime int64 `protobuf:"varint,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` DeleteTime int64 `protobuf:"varint,3,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // contains filtered or unexported fields }
func (*BaseProto) Descriptor
deprecated
func (*BaseProto) GetCreateTime ¶
func (*BaseProto) GetDeleteTime ¶
func (*BaseProto) GetUpdateTime ¶
func (*BaseProto) ProtoMessage ¶
func (*BaseProto) ProtoMessage()
func (*BaseProto) ProtoReflect ¶
func (x *BaseProto) ProtoReflect() protoreflect.Message
type GetAdByIdRequest ¶
type GetAdByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAdByIdRequest) Descriptor
deprecated
func (*GetAdByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAdByIdRequest.ProtoReflect.Descriptor instead.
func (*GetAdByIdRequest) GetId ¶
func (x *GetAdByIdRequest) GetId() int32
func (*GetAdByIdRequest) ProtoMessage ¶
func (*GetAdByIdRequest) ProtoMessage()
func (*GetAdByIdRequest) ProtoReflect ¶
func (x *GetAdByIdRequest) ProtoReflect() protoreflect.Message
func (*GetAdByIdRequest) Reset ¶
func (x *GetAdByIdRequest) Reset()
func (*GetAdByIdRequest) String ¶
func (x *GetAdByIdRequest) String() string
type GetAdListRequest ¶
type GetAdListRequest struct { Pages int32 `protobuf:"varint,1,opt,name=pages,proto3" json:"pages,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*GetAdListRequest) Descriptor
deprecated
func (*GetAdListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAdListRequest.ProtoReflect.Descriptor instead.
func (*GetAdListRequest) GetPageSize ¶
func (x *GetAdListRequest) GetPageSize() int32
func (*GetAdListRequest) GetPages ¶
func (x *GetAdListRequest) GetPages() int32
func (*GetAdListRequest) ProtoMessage ¶
func (*GetAdListRequest) ProtoMessage()
func (*GetAdListRequest) ProtoReflect ¶
func (x *GetAdListRequest) ProtoReflect() protoreflect.Message
func (*GetAdListRequest) Reset ¶
func (x *GetAdListRequest) Reset()
func (*GetAdListRequest) String ¶
func (x *GetAdListRequest) String() string
type GetAllAdsRequest ¶
type GetAllAdsRequest struct { SpaceKey string `protobuf:"bytes,1,opt,name=space_key,json=spaceKey,proto3" json:"space_key,omitempty"` // contains filtered or unexported fields }
func (*GetAllAdsRequest) Descriptor
deprecated
func (*GetAllAdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllAdsRequest.ProtoReflect.Descriptor instead.
func (*GetAllAdsRequest) GetSpaceKey ¶
func (x *GetAllAdsRequest) GetSpaceKey() string
func (*GetAllAdsRequest) ProtoMessage ¶
func (*GetAllAdsRequest) ProtoMessage()
func (*GetAllAdsRequest) ProtoReflect ¶
func (x *GetAllAdsRequest) ProtoReflect() protoreflect.Message
func (*GetAllAdsRequest) Reset ¶
func (x *GetAllAdsRequest) Reset()
func (*GetAllAdsRequest) String ¶
func (x *GetAllAdsRequest) String() string
type GetAllAdsResponse ¶
type GetAllAdsResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SpaceKey string `protobuf:"bytes,3,opt,name=space_key,json=spaceKey,proto3" json:"space_key,omitempty"` BaseProto *BaseProto `protobuf:"bytes,4,opt,name=base_proto,json=baseProto,proto3" json:"base_proto,omitempty"` AdInfoListRsp []*AdInfoResponse `protobuf:"bytes,5,rep,name=ad_info_list_rsp,json=adInfoListRsp,proto3" json:"ad_info_list_rsp,omitempty"` // contains filtered or unexported fields }
func (*GetAllAdsResponse) Descriptor
deprecated
func (*GetAllAdsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllAdsResponse.ProtoReflect.Descriptor instead.
func (*GetAllAdsResponse) GetAdInfoListRsp ¶
func (x *GetAllAdsResponse) GetAdInfoListRsp() []*AdInfoResponse
func (*GetAllAdsResponse) GetBaseProto ¶
func (x *GetAllAdsResponse) GetBaseProto() *BaseProto
func (*GetAllAdsResponse) GetId ¶
func (x *GetAllAdsResponse) GetId() int32
func (*GetAllAdsResponse) GetName ¶
func (x *GetAllAdsResponse) GetName() string
func (*GetAllAdsResponse) GetSpaceKey ¶
func (x *GetAllAdsResponse) GetSpaceKey() string
func (*GetAllAdsResponse) ProtoMessage ¶
func (*GetAllAdsResponse) ProtoMessage()
func (*GetAllAdsResponse) ProtoReflect ¶
func (x *GetAllAdsResponse) ProtoReflect() protoreflect.Message
func (*GetAllAdsResponse) Reset ¶
func (x *GetAllAdsResponse) Reset()
func (*GetAllAdsResponse) String ¶
func (x *GetAllAdsResponse) String() string
type GetAllSpacesRequest ¶
type GetAllSpacesRequest struct { Pages int32 `protobuf:"varint,1,opt,name=pages,proto3" json:"pages,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*GetAllSpacesRequest) Descriptor
deprecated
func (*GetAllSpacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllSpacesRequest.ProtoReflect.Descriptor instead.
func (*GetAllSpacesRequest) GetPageSize ¶
func (x *GetAllSpacesRequest) GetPageSize() int32
func (*GetAllSpacesRequest) GetPages ¶
func (x *GetAllSpacesRequest) GetPages() int32
func (*GetAllSpacesRequest) ProtoMessage ¶
func (*GetAllSpacesRequest) ProtoMessage()
func (*GetAllSpacesRequest) ProtoReflect ¶
func (x *GetAllSpacesRequest) ProtoReflect() protoreflect.Message
func (*GetAllSpacesRequest) Reset ¶
func (x *GetAllSpacesRequest) Reset()
func (*GetAllSpacesRequest) String ¶
func (x *GetAllSpacesRequest) String() string
type GetSpaceByIdRequest ¶
type GetSpaceByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSpaceByIdRequest) Descriptor
deprecated
func (*GetSpaceByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceByIdRequest.ProtoReflect.Descriptor instead.
func (*GetSpaceByIdRequest) GetId ¶
func (x *GetSpaceByIdRequest) GetId() int32
func (*GetSpaceByIdRequest) ProtoMessage ¶
func (*GetSpaceByIdRequest) ProtoMessage()
func (*GetSpaceByIdRequest) ProtoReflect ¶
func (x *GetSpaceByIdRequest) ProtoReflect() protoreflect.Message
func (*GetSpaceByIdRequest) Reset ¶
func (x *GetSpaceByIdRequest) Reset()
func (*GetSpaceByIdRequest) String ¶
func (x *GetSpaceByIdRequest) String() string
type GetSpaceByIdResponse ¶
type GetSpaceByIdResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SpaceKey string `protobuf:"bytes,3,opt,name=space_key,json=spaceKey,proto3" json:"space_key,omitempty"` BaseProto *BaseProto `protobuf:"bytes,4,opt,name=base_proto,json=baseProto,proto3" json:"base_proto,omitempty"` // todo 查询广告位的时候是否需要把广告也查询出来 // contains filtered or unexported fields }
func (*GetSpaceByIdResponse) Descriptor
deprecated
func (*GetSpaceByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSpaceByIdResponse.ProtoReflect.Descriptor instead.
func (*GetSpaceByIdResponse) GetBaseProto ¶
func (x *GetSpaceByIdResponse) GetBaseProto() *BaseProto
func (*GetSpaceByIdResponse) GetId ¶
func (x *GetSpaceByIdResponse) GetId() int32
func (*GetSpaceByIdResponse) GetName ¶
func (x *GetSpaceByIdResponse) GetName() string
func (*GetSpaceByIdResponse) GetSpaceKey ¶
func (x *GetSpaceByIdResponse) GetSpaceKey() string
func (*GetSpaceByIdResponse) ProtoMessage ¶
func (*GetSpaceByIdResponse) ProtoMessage()
func (*GetSpaceByIdResponse) ProtoReflect ¶
func (x *GetSpaceByIdResponse) ProtoReflect() protoreflect.Message
func (*GetSpaceByIdResponse) Reset ¶
func (x *GetSpaceByIdResponse) Reset()
func (*GetSpaceByIdResponse) String ¶
func (x *GetSpaceByIdResponse) String() string
type SpaceClient ¶
type SpaceClient interface { // 根据ID获取广告信息 GetAdById(ctx context.Context, in *GetAdByIdRequest, opts ...grpc.CallOption) (*AdInfoResponse, error) // 获取所有的广告信息 GetAdList(ctx context.Context, in *GetAdListRequest, opts ...grpc.CallOption) (*AdInfoListResponse, error) // 获取所有广告位及其广告 GetAllAds(ctx context.Context, in *GetAllAdsRequest, opts ...grpc.CallOption) (*GetAllAdsResponse, error) // 新增或者修改广告信息 AdSaveOrUpdate(ctx context.Context, in *AdSaveOrUpdateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // 获取所有的广告位 GetAllSpaces(ctx context.Context, in *GetAllSpacesRequest, opts ...grpc.CallOption) (*SpaceInfoListResponse, error) // 根据Id获取广告位 GetSpaceById(ctx context.Context, in *GetSpaceByIdRequest, opts ...grpc.CallOption) (*GetSpaceByIdResponse, error) // 新增或者修改广告位 SpaceSaveOrUpdate(ctx context.Context, in *SpaceSaveOrUpdateRequest, opts ...grpc.CallOption) (*empty.Empty, error) // 更新广告的状态 AdUpdateStatus(ctx context.Context, in *AdUpdateStatusRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
SpaceClient is the client API for Space service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSpaceClient ¶
func NewSpaceClient(cc grpc.ClientConnInterface) SpaceClient
type SpaceInfoListResponse ¶
type SpaceInfoListResponse struct { SpaceInfoResponse []*SpaceInfoResponse `protobuf:"bytes,1,rep,name=space_info_response,json=spaceInfoResponse,proto3" json:"space_info_response,omitempty"` // contains filtered or unexported fields }
func (*SpaceInfoListResponse) Descriptor
deprecated
func (*SpaceInfoListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpaceInfoListResponse.ProtoReflect.Descriptor instead.
func (*SpaceInfoListResponse) GetSpaceInfoResponse ¶
func (x *SpaceInfoListResponse) GetSpaceInfoResponse() []*SpaceInfoResponse
func (*SpaceInfoListResponse) ProtoMessage ¶
func (*SpaceInfoListResponse) ProtoMessage()
func (*SpaceInfoListResponse) ProtoReflect ¶
func (x *SpaceInfoListResponse) ProtoReflect() protoreflect.Message
func (*SpaceInfoListResponse) Reset ¶
func (x *SpaceInfoListResponse) Reset()
func (*SpaceInfoListResponse) String ¶
func (x *SpaceInfoListResponse) String() string
type SpaceInfoResponse ¶
type SpaceInfoResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SpaceKey string `protobuf:"bytes,3,opt,name=space_key,json=spaceKey,proto3" json:"space_key,omitempty"` BaseProto *BaseProto `protobuf:"bytes,4,opt,name=base_proto,json=baseProto,proto3" json:"base_proto,omitempty"` // contains filtered or unexported fields }
func (*SpaceInfoResponse) Descriptor
deprecated
func (*SpaceInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use SpaceInfoResponse.ProtoReflect.Descriptor instead.
func (*SpaceInfoResponse) GetBaseProto ¶
func (x *SpaceInfoResponse) GetBaseProto() *BaseProto
func (*SpaceInfoResponse) GetId ¶
func (x *SpaceInfoResponse) GetId() int32
func (*SpaceInfoResponse) GetName ¶
func (x *SpaceInfoResponse) GetName() string
func (*SpaceInfoResponse) GetSpaceKey ¶
func (x *SpaceInfoResponse) GetSpaceKey() string
func (*SpaceInfoResponse) ProtoMessage ¶
func (*SpaceInfoResponse) ProtoMessage()
func (*SpaceInfoResponse) ProtoReflect ¶
func (x *SpaceInfoResponse) ProtoReflect() protoreflect.Message
func (*SpaceInfoResponse) Reset ¶
func (x *SpaceInfoResponse) Reset()
func (*SpaceInfoResponse) String ¶
func (x *SpaceInfoResponse) String() string
type SpaceSaveOrUpdateRequest ¶
type SpaceSaveOrUpdateRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SpaceKey string `protobuf:"bytes,3,opt,name=space_key,json=spaceKey,proto3" json:"space_key,omitempty"` // contains filtered or unexported fields }
func (*SpaceSaveOrUpdateRequest) Descriptor
deprecated
func (*SpaceSaveOrUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpaceSaveOrUpdateRequest.ProtoReflect.Descriptor instead.
func (*SpaceSaveOrUpdateRequest) GetId ¶
func (x *SpaceSaveOrUpdateRequest) GetId() int32
func (*SpaceSaveOrUpdateRequest) GetName ¶
func (x *SpaceSaveOrUpdateRequest) GetName() string
func (*SpaceSaveOrUpdateRequest) GetSpaceKey ¶
func (x *SpaceSaveOrUpdateRequest) GetSpaceKey() string
func (*SpaceSaveOrUpdateRequest) ProtoMessage ¶
func (*SpaceSaveOrUpdateRequest) ProtoMessage()
func (*SpaceSaveOrUpdateRequest) ProtoReflect ¶
func (x *SpaceSaveOrUpdateRequest) ProtoReflect() protoreflect.Message
func (*SpaceSaveOrUpdateRequest) Reset ¶
func (x *SpaceSaveOrUpdateRequest) Reset()
func (*SpaceSaveOrUpdateRequest) String ¶
func (x *SpaceSaveOrUpdateRequest) String() string
type SpaceServer ¶
type SpaceServer interface { // 根据ID获取广告信息 GetAdById(context.Context, *GetAdByIdRequest) (*AdInfoResponse, error) // 获取所有的广告信息 GetAdList(context.Context, *GetAdListRequest) (*AdInfoListResponse, error) // 获取所有广告位及其广告 GetAllAds(context.Context, *GetAllAdsRequest) (*GetAllAdsResponse, error) // 新增或者修改广告信息 AdSaveOrUpdate(context.Context, *AdSaveOrUpdateRequest) (*empty.Empty, error) // 获取所有的广告位 GetAllSpaces(context.Context, *GetAllSpacesRequest) (*SpaceInfoListResponse, error) // 根据Id获取广告位 GetSpaceById(context.Context, *GetSpaceByIdRequest) (*GetSpaceByIdResponse, error) // 新增或者修改广告位 SpaceSaveOrUpdate(context.Context, *SpaceSaveOrUpdateRequest) (*empty.Empty, error) // 更新广告的状态 AdUpdateStatus(context.Context, *AdUpdateStatusRequest) (*empty.Empty, error) }
SpaceServer is the server API for Space service.
type UnimplementedSpaceServer ¶
type UnimplementedSpaceServer struct { }
UnimplementedSpaceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSpaceServer) AdSaveOrUpdate ¶
func (*UnimplementedSpaceServer) AdSaveOrUpdate(context.Context, *AdSaveOrUpdateRequest) (*empty.Empty, error)
func (*UnimplementedSpaceServer) AdUpdateStatus ¶
func (*UnimplementedSpaceServer) AdUpdateStatus(context.Context, *AdUpdateStatusRequest) (*empty.Empty, error)
func (*UnimplementedSpaceServer) GetAdById ¶
func (*UnimplementedSpaceServer) GetAdById(context.Context, *GetAdByIdRequest) (*AdInfoResponse, error)
func (*UnimplementedSpaceServer) GetAdList ¶
func (*UnimplementedSpaceServer) GetAdList(context.Context, *GetAdListRequest) (*AdInfoListResponse, error)
func (*UnimplementedSpaceServer) GetAllAds ¶
func (*UnimplementedSpaceServer) GetAllAds(context.Context, *GetAllAdsRequest) (*GetAllAdsResponse, error)
func (*UnimplementedSpaceServer) GetAllSpaces ¶
func (*UnimplementedSpaceServer) GetAllSpaces(context.Context, *GetAllSpacesRequest) (*SpaceInfoListResponse, error)
func (*UnimplementedSpaceServer) GetSpaceById ¶
func (*UnimplementedSpaceServer) GetSpaceById(context.Context, *GetSpaceByIdRequest) (*GetSpaceByIdResponse, error)
func (*UnimplementedSpaceServer) SpaceSaveOrUpdate ¶
func (*UnimplementedSpaceServer) SpaceSaveOrUpdate(context.Context, *SpaceSaveOrUpdateRequest) (*empty.Empty, error)