Documentation ¶
Index ¶
- Variables
- func RegisterFavoritesServiceServer(s grpc.ServiceRegistrar, srv FavoritesServiceServer)
- type FavoriteCommonResponse
- func (*FavoriteCommonResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteCommonResponse) GetCode() int64
- func (x *FavoriteCommonResponse) GetData() string
- func (x *FavoriteCommonResponse) GetError() string
- func (x *FavoriteCommonResponse) GetMsg() string
- func (*FavoriteCommonResponse) ProtoMessage()
- func (x *FavoriteCommonResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteCommonResponse) Reset()
- func (x *FavoriteCommonResponse) String() string
- type FavoriteCreateReq
- func (*FavoriteCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteCreateReq) GetFavoriteName() string
- func (x *FavoriteCreateReq) GetUserId() int64
- func (*FavoriteCreateReq) ProtoMessage()
- func (x *FavoriteCreateReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteCreateReq) Reset()
- func (x *FavoriteCreateReq) String() string
- type FavoriteDeleteReq
- func (*FavoriteDeleteReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteDeleteReq) GetFavoriteId() int64
- func (x *FavoriteDeleteReq) GetUserId() int64
- func (*FavoriteDeleteReq) ProtoMessage()
- func (x *FavoriteDeleteReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteDeleteReq) Reset()
- func (x *FavoriteDeleteReq) String() string
- type FavoriteDetailCreateReq
- func (*FavoriteDetailCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteDetailCreateReq) GetDesc() string
- func (x *FavoriteDetailCreateReq) GetFavoriteId() int64
- func (x *FavoriteDetailCreateReq) GetUrl() string
- func (x *FavoriteDetailCreateReq) GetUrlId() int64
- func (x *FavoriteDetailCreateReq) GetUserId() int64
- func (*FavoriteDetailCreateReq) ProtoMessage()
- func (x *FavoriteDetailCreateReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteDetailCreateReq) Reset()
- func (x *FavoriteDetailCreateReq) String() string
- type FavoriteDetailDeleteReq
- func (*FavoriteDetailDeleteReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteDetailDeleteReq) GetFavoriteDetailId() int64
- func (x *FavoriteDetailDeleteReq) GetFavoriteId() int64
- func (x *FavoriteDetailDeleteReq) GetUserId() int64
- func (*FavoriteDetailDeleteReq) ProtoMessage()
- func (x *FavoriteDetailDeleteReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteDetailDeleteReq) Reset()
- func (x *FavoriteDetailDeleteReq) String() string
- type FavoriteDetailListReq
- func (*FavoriteDetailListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteDetailListReq) GetFavoriteId() int64
- func (x *FavoriteDetailListReq) GetUrlId() int64
- func (x *FavoriteDetailListReq) GetUserId() int64
- func (*FavoriteDetailListReq) ProtoMessage()
- func (x *FavoriteDetailListReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteDetailListReq) Reset()
- func (x *FavoriteDetailListReq) String() string
- type FavoriteDetailListResponse
- func (*FavoriteDetailListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteDetailListResponse) GetCode() int64
- func (x *FavoriteDetailListResponse) GetItems() []*FavoriteResp
- func (x *FavoriteDetailListResponse) GetTotal() int64
- func (*FavoriteDetailListResponse) ProtoMessage()
- func (x *FavoriteDetailListResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteDetailListResponse) Reset()
- func (x *FavoriteDetailListResponse) String() string
- type FavoriteListItemResp
- func (*FavoriteListItemResp) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListItemResp) GetFavoriteId() int64
- func (x *FavoriteListItemResp) GetFavoriteName() string
- func (*FavoriteListItemResp) ProtoMessage()
- func (x *FavoriteListItemResp) ProtoReflect() protoreflect.Message
- func (x *FavoriteListItemResp) Reset()
- func (x *FavoriteListItemResp) String() string
- type FavoriteListReq
- func (*FavoriteListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListReq) GetFavoriteId() int64
- func (x *FavoriteListReq) GetUserId() int64
- func (*FavoriteListReq) ProtoMessage()
- func (x *FavoriteListReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteListReq) Reset()
- func (x *FavoriteListReq) String() string
- type FavoriteListResponse
- func (*FavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListResponse) GetCode() int64
- func (x *FavoriteListResponse) GetItems() []*FavoriteListItemResp
- func (x *FavoriteListResponse) GetTotal() int64
- func (*FavoriteListResponse) ProtoMessage()
- func (x *FavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteListResponse) Reset()
- func (x *FavoriteListResponse) String() string
- type FavoriteResp
- func (*FavoriteResp) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteResp) GetFavoriteId() int64
- func (x *FavoriteResp) GetFavoriteName() string
- func (x *FavoriteResp) GetUrlInfo() []*UrlModel
- func (x *FavoriteResp) GetUserId() int64
- func (*FavoriteResp) ProtoMessage()
- func (x *FavoriteResp) ProtoReflect() protoreflect.Message
- func (x *FavoriteResp) Reset()
- func (x *FavoriteResp) String() string
- type FavoriteUpdateReq
- func (*FavoriteUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteUpdateReq) GetFavoriteId() int64
- func (x *FavoriteUpdateReq) GetFavoriteName() string
- func (x *FavoriteUpdateReq) GetUserId() int64
- func (*FavoriteUpdateReq) ProtoMessage()
- func (x *FavoriteUpdateReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteUpdateReq) Reset()
- func (x *FavoriteUpdateReq) String() string
- type FavoritesServiceClient
- type FavoritesServiceServer
- type UnimplementedFavoritesServiceServer
- func (UnimplementedFavoritesServiceServer) FavoriteCreate(context.Context, *FavoriteCreateReq) (*FavoriteCommonResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteDelete(context.Context, *FavoriteDeleteReq) (*FavoriteCommonResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteDetailCreate(context.Context, *FavoriteDetailCreateReq) (*FavoriteCommonResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteDetailDelete(context.Context, *FavoriteDetailDeleteReq) (*FavoriteCommonResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteDetailList(context.Context, *FavoriteDetailListReq) (*FavoriteDetailListResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteList(context.Context, *FavoriteListReq) (*FavoriteListResponse, error)
- func (UnimplementedFavoritesServiceServer) FavoriteUpdate(context.Context, *FavoriteUpdateReq) (*FavoriteCommonResponse, error)
- type UnsafeFavoritesServiceServer
- type UrlModel
- func (*UrlModel) Descriptor() ([]byte, []int)deprecated
- func (x *UrlModel) GetDesc() string
- func (x *UrlModel) GetUrl() string
- func (x *UrlModel) GetUrlId() int64
- func (*UrlModel) ProtoMessage()
- func (x *UrlModel) ProtoReflect() protoreflect.Message
- func (x *UrlModel) Reset()
- func (x *UrlModel) String() string
Constants ¶
This section is empty.
Variables ¶
var FavoritesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "FavoritesService", HandlerType: (*FavoritesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FavoriteCreate", Handler: _FavoritesService_FavoriteCreate_Handler, }, { MethodName: "FavoriteUpdate", Handler: _FavoritesService_FavoriteUpdate_Handler, }, { MethodName: "FavoriteList", Handler: _FavoritesService_FavoriteList_Handler, }, { MethodName: "FavoriteDelete", Handler: _FavoritesService_FavoriteDelete_Handler, }, { MethodName: "FavoriteDetailCreate", Handler: _FavoritesService_FavoriteDetailCreate_Handler, }, { MethodName: "FavoriteDetailList", Handler: _FavoritesService_FavoriteDetailList_Handler, }, { MethodName: "FavoriteDetailDelete", Handler: _FavoritesService_FavoriteDetailDelete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "favorite.proto", }
FavoritesService_ServiceDesc is the grpc.ServiceDesc for FavoritesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_favorite_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFavoritesServiceServer ¶
func RegisterFavoritesServiceServer(s grpc.ServiceRegistrar, srv FavoritesServiceServer)
Types ¶
type FavoriteCommonResponse ¶
type FavoriteCommonResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*FavoriteCommonResponse) Descriptor
deprecated
func (*FavoriteCommonResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteCommonResponse.ProtoReflect.Descriptor instead.
func (*FavoriteCommonResponse) GetCode ¶
func (x *FavoriteCommonResponse) GetCode() int64
func (*FavoriteCommonResponse) GetData ¶
func (x *FavoriteCommonResponse) GetData() string
func (*FavoriteCommonResponse) GetError ¶
func (x *FavoriteCommonResponse) GetError() string
func (*FavoriteCommonResponse) GetMsg ¶
func (x *FavoriteCommonResponse) GetMsg() string
func (*FavoriteCommonResponse) ProtoMessage ¶
func (*FavoriteCommonResponse) ProtoMessage()
func (*FavoriteCommonResponse) ProtoReflect ¶
func (x *FavoriteCommonResponse) ProtoReflect() protoreflect.Message
func (*FavoriteCommonResponse) Reset ¶
func (x *FavoriteCommonResponse) Reset()
func (*FavoriteCommonResponse) String ¶
func (x *FavoriteCommonResponse) String() string
type FavoriteCreateReq ¶
type FavoriteCreateReq struct { // @inject_tag:form:"favorite_name" uri:"favorite_name" FavoriteName string `` /* 138-byte string literal not displayed */ // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // contains filtered or unexported fields }
func (*FavoriteCreateReq) Descriptor
deprecated
func (*FavoriteCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteCreateReq.ProtoReflect.Descriptor instead.
func (*FavoriteCreateReq) GetFavoriteName ¶
func (x *FavoriteCreateReq) GetFavoriteName() string
func (*FavoriteCreateReq) GetUserId ¶
func (x *FavoriteCreateReq) GetUserId() int64
func (*FavoriteCreateReq) ProtoMessage ¶
func (*FavoriteCreateReq) ProtoMessage()
func (*FavoriteCreateReq) ProtoReflect ¶
func (x *FavoriteCreateReq) ProtoReflect() protoreflect.Message
func (*FavoriteCreateReq) Reset ¶
func (x *FavoriteCreateReq) Reset()
func (*FavoriteCreateReq) String ¶
func (x *FavoriteCreateReq) String() string
type FavoriteDeleteReq ¶
type FavoriteDeleteReq struct { // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FavoriteDeleteReq) Descriptor
deprecated
func (*FavoriteDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteDeleteReq.ProtoReflect.Descriptor instead.
func (*FavoriteDeleteReq) GetFavoriteId ¶
func (x *FavoriteDeleteReq) GetFavoriteId() int64
func (*FavoriteDeleteReq) GetUserId ¶
func (x *FavoriteDeleteReq) GetUserId() int64
func (*FavoriteDeleteReq) ProtoMessage ¶
func (*FavoriteDeleteReq) ProtoMessage()
func (*FavoriteDeleteReq) ProtoReflect ¶
func (x *FavoriteDeleteReq) ProtoReflect() protoreflect.Message
func (*FavoriteDeleteReq) Reset ¶
func (x *FavoriteDeleteReq) Reset()
func (*FavoriteDeleteReq) String ¶
func (x *FavoriteDeleteReq) String() string
type FavoriteDetailCreateReq ¶
type FavoriteDetailCreateReq struct { // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // @inject_tag:form:"url_id" uri:"url_id" UrlId int64 `protobuf:"varint,3,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty" form:"url_id" uri:"url_id"` // @inject_tag:form:"url" uri:"url" Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty" form:"url" uri:"url"` // @inject_tag:form:"desc" uri:"desc" Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty" form:"desc" uri:"desc"` // contains filtered or unexported fields }
func (*FavoriteDetailCreateReq) Descriptor
deprecated
func (*FavoriteDetailCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteDetailCreateReq.ProtoReflect.Descriptor instead.
func (*FavoriteDetailCreateReq) GetDesc ¶
func (x *FavoriteDetailCreateReq) GetDesc() string
func (*FavoriteDetailCreateReq) GetFavoriteId ¶
func (x *FavoriteDetailCreateReq) GetFavoriteId() int64
func (*FavoriteDetailCreateReq) GetUrl ¶
func (x *FavoriteDetailCreateReq) GetUrl() string
func (*FavoriteDetailCreateReq) GetUrlId ¶
func (x *FavoriteDetailCreateReq) GetUrlId() int64
func (*FavoriteDetailCreateReq) GetUserId ¶
func (x *FavoriteDetailCreateReq) GetUserId() int64
func (*FavoriteDetailCreateReq) ProtoMessage ¶
func (*FavoriteDetailCreateReq) ProtoMessage()
func (*FavoriteDetailCreateReq) ProtoReflect ¶
func (x *FavoriteDetailCreateReq) ProtoReflect() protoreflect.Message
func (*FavoriteDetailCreateReq) Reset ¶
func (x *FavoriteDetailCreateReq) Reset()
func (*FavoriteDetailCreateReq) String ¶
func (x *FavoriteDetailCreateReq) String() string
type FavoriteDetailDeleteReq ¶
type FavoriteDetailDeleteReq struct { // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // @inject_tag:form:"favorite_detail_id" uri:"favorite_detail_id" FavoriteDetailId int64 `` /* 163-byte string literal not displayed */ // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // contains filtered or unexported fields }
func (*FavoriteDetailDeleteReq) Descriptor
deprecated
func (*FavoriteDetailDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteDetailDeleteReq.ProtoReflect.Descriptor instead.
func (*FavoriteDetailDeleteReq) GetFavoriteDetailId ¶
func (x *FavoriteDetailDeleteReq) GetFavoriteDetailId() int64
func (*FavoriteDetailDeleteReq) GetFavoriteId ¶
func (x *FavoriteDetailDeleteReq) GetFavoriteId() int64
func (*FavoriteDetailDeleteReq) GetUserId ¶
func (x *FavoriteDetailDeleteReq) GetUserId() int64
func (*FavoriteDetailDeleteReq) ProtoMessage ¶
func (*FavoriteDetailDeleteReq) ProtoMessage()
func (*FavoriteDetailDeleteReq) ProtoReflect ¶
func (x *FavoriteDetailDeleteReq) ProtoReflect() protoreflect.Message
func (*FavoriteDetailDeleteReq) Reset ¶
func (x *FavoriteDetailDeleteReq) Reset()
func (*FavoriteDetailDeleteReq) String ¶
func (x *FavoriteDetailDeleteReq) String() string
type FavoriteDetailListReq ¶
type FavoriteDetailListReq struct { // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // @inject_tag:form:"url_id" uri:"url_id" UrlId int64 `protobuf:"varint,3,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty" form:"url_id" uri:"url_id"` // contains filtered or unexported fields }
func (*FavoriteDetailListReq) Descriptor
deprecated
func (*FavoriteDetailListReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteDetailListReq.ProtoReflect.Descriptor instead.
func (*FavoriteDetailListReq) GetFavoriteId ¶
func (x *FavoriteDetailListReq) GetFavoriteId() int64
func (*FavoriteDetailListReq) GetUrlId ¶
func (x *FavoriteDetailListReq) GetUrlId() int64
func (*FavoriteDetailListReq) GetUserId ¶
func (x *FavoriteDetailListReq) GetUserId() int64
func (*FavoriteDetailListReq) ProtoMessage ¶
func (*FavoriteDetailListReq) ProtoMessage()
func (*FavoriteDetailListReq) ProtoReflect ¶
func (x *FavoriteDetailListReq) ProtoReflect() protoreflect.Message
func (*FavoriteDetailListReq) Reset ¶
func (x *FavoriteDetailListReq) Reset()
func (*FavoriteDetailListReq) String ¶
func (x *FavoriteDetailListReq) String() string
type FavoriteDetailListResponse ¶
type FavoriteDetailListResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Items []*FavoriteResp `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FavoriteDetailListResponse) Descriptor
deprecated
func (*FavoriteDetailListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteDetailListResponse.ProtoReflect.Descriptor instead.
func (*FavoriteDetailListResponse) GetCode ¶
func (x *FavoriteDetailListResponse) GetCode() int64
func (*FavoriteDetailListResponse) GetItems ¶
func (x *FavoriteDetailListResponse) GetItems() []*FavoriteResp
func (*FavoriteDetailListResponse) GetTotal ¶
func (x *FavoriteDetailListResponse) GetTotal() int64
func (*FavoriteDetailListResponse) ProtoMessage ¶
func (*FavoriteDetailListResponse) ProtoMessage()
func (*FavoriteDetailListResponse) ProtoReflect ¶
func (x *FavoriteDetailListResponse) ProtoReflect() protoreflect.Message
func (*FavoriteDetailListResponse) Reset ¶
func (x *FavoriteDetailListResponse) Reset()
func (*FavoriteDetailListResponse) String ¶
func (x *FavoriteDetailListResponse) String() string
type FavoriteListItemResp ¶
type FavoriteListItemResp struct { FavoriteId int64 `protobuf:"varint,2,opt,name=favorite_id,json=favoriteId,proto3" json:"favorite_id,omitempty"` FavoriteName string `protobuf:"bytes,3,opt,name=favorite_name,json=favoriteName,proto3" json:"favorite_name,omitempty"` // contains filtered or unexported fields }
func (*FavoriteListItemResp) Descriptor
deprecated
func (*FavoriteListItemResp) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListItemResp.ProtoReflect.Descriptor instead.
func (*FavoriteListItemResp) GetFavoriteId ¶
func (x *FavoriteListItemResp) GetFavoriteId() int64
func (*FavoriteListItemResp) GetFavoriteName ¶
func (x *FavoriteListItemResp) GetFavoriteName() string
func (*FavoriteListItemResp) ProtoMessage ¶
func (*FavoriteListItemResp) ProtoMessage()
func (*FavoriteListItemResp) ProtoReflect ¶
func (x *FavoriteListItemResp) ProtoReflect() protoreflect.Message
func (*FavoriteListItemResp) Reset ¶
func (x *FavoriteListItemResp) Reset()
func (*FavoriteListItemResp) String ¶
func (x *FavoriteListItemResp) String() string
type FavoriteListReq ¶
type FavoriteListReq struct { // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FavoriteListReq) Descriptor
deprecated
func (*FavoriteListReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListReq.ProtoReflect.Descriptor instead.
func (*FavoriteListReq) GetFavoriteId ¶
func (x *FavoriteListReq) GetFavoriteId() int64
func (*FavoriteListReq) GetUserId ¶
func (x *FavoriteListReq) GetUserId() int64
func (*FavoriteListReq) ProtoMessage ¶
func (*FavoriteListReq) ProtoMessage()
func (*FavoriteListReq) ProtoReflect ¶
func (x *FavoriteListReq) ProtoReflect() protoreflect.Message
func (*FavoriteListReq) Reset ¶
func (x *FavoriteListReq) Reset()
func (*FavoriteListReq) String ¶
func (x *FavoriteListReq) String() string
type FavoriteListResponse ¶
type FavoriteListResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Items []*FavoriteListItemResp `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FavoriteListResponse) Descriptor
deprecated
func (*FavoriteListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListResponse.ProtoReflect.Descriptor instead.
func (*FavoriteListResponse) GetCode ¶
func (x *FavoriteListResponse) GetCode() int64
func (*FavoriteListResponse) GetItems ¶
func (x *FavoriteListResponse) GetItems() []*FavoriteListItemResp
func (*FavoriteListResponse) GetTotal ¶
func (x *FavoriteListResponse) GetTotal() int64
func (*FavoriteListResponse) ProtoMessage ¶
func (*FavoriteListResponse) ProtoMessage()
func (*FavoriteListResponse) ProtoReflect ¶
func (x *FavoriteListResponse) ProtoReflect() protoreflect.Message
func (*FavoriteListResponse) Reset ¶
func (x *FavoriteListResponse) Reset()
func (*FavoriteListResponse) String ¶
func (x *FavoriteListResponse) String() string
type FavoriteResp ¶
type FavoriteResp struct { FavoriteId int64 `protobuf:"varint,1,opt,name=favorite_id,json=favoriteId,proto3" json:"favorite_id,omitempty"` FavoriteName string `protobuf:"bytes,2,opt,name=favorite_name,json=favoriteName,proto3" json:"favorite_name,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UrlInfo []*UrlModel `protobuf:"bytes,4,rep,name=url_info,json=urlInfo,proto3" json:"url_info,omitempty"` // contains filtered or unexported fields }
func (*FavoriteResp) Descriptor
deprecated
func (*FavoriteResp) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteResp.ProtoReflect.Descriptor instead.
func (*FavoriteResp) GetFavoriteId ¶
func (x *FavoriteResp) GetFavoriteId() int64
func (*FavoriteResp) GetFavoriteName ¶
func (x *FavoriteResp) GetFavoriteName() string
func (*FavoriteResp) GetUrlInfo ¶
func (x *FavoriteResp) GetUrlInfo() []*UrlModel
func (*FavoriteResp) GetUserId ¶
func (x *FavoriteResp) GetUserId() int64
func (*FavoriteResp) ProtoMessage ¶
func (*FavoriteResp) ProtoMessage()
func (*FavoriteResp) ProtoReflect ¶
func (x *FavoriteResp) ProtoReflect() protoreflect.Message
func (*FavoriteResp) Reset ¶
func (x *FavoriteResp) Reset()
func (*FavoriteResp) String ¶
func (x *FavoriteResp) String() string
type FavoriteUpdateReq ¶
type FavoriteUpdateReq struct { // @inject_tag:form:"user_id" uri:"user_id" UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" uri:"user_id"` // @inject_tag:form:"favorite_id" uri:"favorite_id" FavoriteId int64 `` /* 129-byte string literal not displayed */ // @inject_tag:form:"favorite_name" uri:"favorite_name" FavoriteName string `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FavoriteUpdateReq) Descriptor
deprecated
func (*FavoriteUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteUpdateReq.ProtoReflect.Descriptor instead.
func (*FavoriteUpdateReq) GetFavoriteId ¶
func (x *FavoriteUpdateReq) GetFavoriteId() int64
func (*FavoriteUpdateReq) GetFavoriteName ¶
func (x *FavoriteUpdateReq) GetFavoriteName() string
func (*FavoriteUpdateReq) GetUserId ¶
func (x *FavoriteUpdateReq) GetUserId() int64
func (*FavoriteUpdateReq) ProtoMessage ¶
func (*FavoriteUpdateReq) ProtoMessage()
func (*FavoriteUpdateReq) ProtoReflect ¶
func (x *FavoriteUpdateReq) ProtoReflect() protoreflect.Message
func (*FavoriteUpdateReq) Reset ¶
func (x *FavoriteUpdateReq) Reset()
func (*FavoriteUpdateReq) String ¶
func (x *FavoriteUpdateReq) String() string
type FavoritesServiceClient ¶
type FavoritesServiceClient interface { FavoriteCreate(ctx context.Context, in *FavoriteCreateReq, opts ...grpc.CallOption) (*FavoriteCommonResponse, error) FavoriteUpdate(ctx context.Context, in *FavoriteUpdateReq, opts ...grpc.CallOption) (*FavoriteCommonResponse, error) FavoriteList(ctx context.Context, in *FavoriteListReq, opts ...grpc.CallOption) (*FavoriteListResponse, error) FavoriteDelete(ctx context.Context, in *FavoriteDeleteReq, opts ...grpc.CallOption) (*FavoriteCommonResponse, error) FavoriteDetailCreate(ctx context.Context, in *FavoriteDetailCreateReq, opts ...grpc.CallOption) (*FavoriteCommonResponse, error) FavoriteDetailList(ctx context.Context, in *FavoriteDetailListReq, opts ...grpc.CallOption) (*FavoriteDetailListResponse, error) FavoriteDetailDelete(ctx context.Context, in *FavoriteDetailDeleteReq, opts ...grpc.CallOption) (*FavoriteCommonResponse, error) }
FavoritesServiceClient is the client API for FavoritesService 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 NewFavoritesServiceClient ¶
func NewFavoritesServiceClient(cc grpc.ClientConnInterface) FavoritesServiceClient
type FavoritesServiceServer ¶
type FavoritesServiceServer interface { FavoriteCreate(context.Context, *FavoriteCreateReq) (*FavoriteCommonResponse, error) FavoriteUpdate(context.Context, *FavoriteUpdateReq) (*FavoriteCommonResponse, error) FavoriteList(context.Context, *FavoriteListReq) (*FavoriteListResponse, error) FavoriteDelete(context.Context, *FavoriteDeleteReq) (*FavoriteCommonResponse, error) FavoriteDetailCreate(context.Context, *FavoriteDetailCreateReq) (*FavoriteCommonResponse, error) FavoriteDetailList(context.Context, *FavoriteDetailListReq) (*FavoriteDetailListResponse, error) FavoriteDetailDelete(context.Context, *FavoriteDetailDeleteReq) (*FavoriteCommonResponse, error) // contains filtered or unexported methods }
FavoritesServiceServer is the server API for FavoritesService service. All implementations must embed UnimplementedFavoritesServiceServer for forward compatibility
type UnimplementedFavoritesServiceServer ¶
type UnimplementedFavoritesServiceServer struct { }
UnimplementedFavoritesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFavoritesServiceServer) FavoriteCreate ¶
func (UnimplementedFavoritesServiceServer) FavoriteCreate(context.Context, *FavoriteCreateReq) (*FavoriteCommonResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteDelete ¶
func (UnimplementedFavoritesServiceServer) FavoriteDelete(context.Context, *FavoriteDeleteReq) (*FavoriteCommonResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteDetailCreate ¶
func (UnimplementedFavoritesServiceServer) FavoriteDetailCreate(context.Context, *FavoriteDetailCreateReq) (*FavoriteCommonResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteDetailDelete ¶
func (UnimplementedFavoritesServiceServer) FavoriteDetailDelete(context.Context, *FavoriteDetailDeleteReq) (*FavoriteCommonResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteDetailList ¶
func (UnimplementedFavoritesServiceServer) FavoriteDetailList(context.Context, *FavoriteDetailListReq) (*FavoriteDetailListResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteList ¶
func (UnimplementedFavoritesServiceServer) FavoriteList(context.Context, *FavoriteListReq) (*FavoriteListResponse, error)
func (UnimplementedFavoritesServiceServer) FavoriteUpdate ¶
func (UnimplementedFavoritesServiceServer) FavoriteUpdate(context.Context, *FavoriteUpdateReq) (*FavoriteCommonResponse, error)
type UnsafeFavoritesServiceServer ¶
type UnsafeFavoritesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFavoritesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FavoritesServiceServer will result in compilation errors.
type UrlModel ¶
type UrlModel struct { UrlId int64 `protobuf:"varint,1,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*UrlModel) Descriptor
deprecated
func (*UrlModel) ProtoMessage ¶
func (*UrlModel) ProtoMessage()
func (*UrlModel) ProtoReflect ¶
func (x *UrlModel) ProtoReflect() protoreflect.Message