Documentation ¶
Overview ¶
Package http is a generated blademaster stub package. This code was generated with go-common/app/tool/bmgen/protoc-gen-bm v0.1.
It is generated from these files:
user.proto
Index ¶
- Variables
- func RegisterUserBMServer(e *bm.Engine, server UserBMServer)
- func RegisterUserService(e *bm.Engine, svc UserBMServer, midMap map[string]bm.HandlerFunc)
- type GetInfoReq
- func (*GetInfoReq) Descriptor() ([]byte, []int)
- func (m *GetInfoReq) GetPlatform() string
- func (m *GetInfoReq) Marshal() (dAtA []byte, err error)
- func (m *GetInfoReq) MarshalTo(dAtA []byte) (int, error)
- func (*GetInfoReq) ProtoMessage()
- func (m *GetInfoReq) Reset()
- func (m *GetInfoReq) Size() (n int)
- func (m *GetInfoReq) String() string
- func (m *GetInfoReq) Unmarshal(dAtA []byte) error
- func (m *GetInfoReq) XXX_DiscardUnknown()
- func (m *GetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetInfoReq) XXX_Merge(src proto.Message)
- func (m *GetInfoReq) XXX_Size() int
- func (m *GetInfoReq) XXX_Unmarshal(b []byte) error
- type GetInfoResp
- func (*GetInfoResp) Descriptor() ([]byte, []int)
- func (m *GetInfoResp) GetAchieve() int64
- func (m *GetInfoResp) GetCoin() float64
- func (m *GetInfoResp) GetFace() string
- func (m *GetInfoResp) GetGold() int64
- func (m *GetInfoResp) GetIsLevelTop() int64
- func (m *GetInfoResp) GetSilver() int64
- func (m *GetInfoResp) GetSvip() int
- func (m *GetInfoResp) GetUid() int64
- func (m *GetInfoResp) GetUname() string
- func (m *GetInfoResp) GetUserCharged() int
- func (m *GetInfoResp) GetUserIntimacy() int64
- func (m *GetInfoResp) GetUserLevel() int64
- func (m *GetInfoResp) GetUserLevelRank() string
- func (m *GetInfoResp) GetUserNextIntimacy() int64
- func (m *GetInfoResp) GetUserNextLevel() int64
- func (m *GetInfoResp) GetVip() int
- func (m *GetInfoResp) Marshal() (dAtA []byte, err error)
- func (m *GetInfoResp) MarshalTo(dAtA []byte) (int, error)
- func (*GetInfoResp) ProtoMessage()
- func (m *GetInfoResp) Reset()
- func (m *GetInfoResp) Size() (n int)
- func (m *GetInfoResp) String() string
- func (m *GetInfoResp) Unmarshal(dAtA []byte) error
- func (m *GetInfoResp) XXX_DiscardUnknown()
- func (m *GetInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetInfoResp) XXX_Merge(src proto.Message)
- func (m *GetInfoResp) XXX_Size() int
- func (m *GetInfoResp) XXX_Unmarshal(b []byte) error
- type UserBMServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUser = fmt.Errorf("proto: integer overflow") )
View Source
var PathUserGetUserInfo = "/live.webucenter.User/get_user_info"
Functions ¶
func RegisterUserBMServer ¶
func RegisterUserBMServer(e *bm.Engine, server UserBMServer)
RegisterUserBMServer Register the blademaster route
func RegisterUserService ¶
func RegisterUserService(e *bm.Engine, svc UserBMServer, midMap map[string]bm.HandlerFunc)
RegisterUserService Register the blademaster route with middleware map midMap is the middleware map, the key is defined in proto
Types ¶
type GetInfoReq ¶
type GetInfoReq struct { // platform in url Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty" form:"platform"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetInfoReq get user info req, uid and platform get from header.metadata
func (*GetInfoReq) Descriptor ¶
func (*GetInfoReq) Descriptor() ([]byte, []int)
func (*GetInfoReq) GetPlatform ¶
func (m *GetInfoReq) GetPlatform() string
func (*GetInfoReq) Marshal ¶
func (m *GetInfoReq) Marshal() (dAtA []byte, err error)
func (*GetInfoReq) ProtoMessage ¶
func (*GetInfoReq) ProtoMessage()
func (*GetInfoReq) Reset ¶
func (m *GetInfoReq) Reset()
func (*GetInfoReq) Size ¶
func (m *GetInfoReq) Size() (n int)
func (*GetInfoReq) String ¶
func (m *GetInfoReq) String() string
func (*GetInfoReq) Unmarshal ¶
func (m *GetInfoReq) Unmarshal(dAtA []byte) error
func (*GetInfoReq) XXX_DiscardUnknown ¶
func (m *GetInfoReq) XXX_DiscardUnknown()
func (*GetInfoReq) XXX_Marshal ¶
func (m *GetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoReq) XXX_Merge ¶
func (dst *GetInfoReq) XXX_Merge(src proto.Message)
func (*GetInfoReq) XXX_Size ¶
func (m *GetInfoReq) XXX_Size() int
func (*GetInfoReq) XXX_Unmarshal ¶
func (m *GetInfoReq) XXX_Unmarshal(b []byte) error
type GetInfoResp ¶
type GetInfoResp struct { // 用户uid Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"` // 用户名 Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname"` // 头像 Face string `protobuf:"bytes,3,opt,name=face,proto3" json:"face"` // 主站硬币 Coin float64 `protobuf:"fixed64,4,opt,name=coin,proto3" json:"billCoin"` // 用户银瓜子 Silver int64 `protobuf:"varint,5,opt,name=silver,proto3" json:"silver"` // 用户金瓜子 Gold int64 `protobuf:"varint,6,opt,name=gold,proto3" json:"gold"` // 用户成就点 Achieve int64 `protobuf:"varint,7,opt,name=achieve,proto3" json:"achieve"` // 月费姥爷 Vip int `protobuf:"varint,8,opt,name=vip,proto3,casttype=int" json:"vip"` // 年费姥爷 Svip int `protobuf:"varint,9,opt,name=svip,proto3,casttype=int" json:"svip"` // 用户等级 UserLevel int64 `protobuf:"varint,10,opt,name=user_level,json=userLevel,proto3" json:"user_level"` // 用户下一等级 UserNextLevel int64 `protobuf:"varint,11,opt,name=user_next_level,json=userNextLevel,proto3" json:"user_next_level"` // 用户在当前等级已经获得的经验 UserIntimacy int64 `protobuf:"varint,12,opt,name=user_intimacy,json=userIntimacy,proto3" json:"user_intimacy"` // 用户从当前等级升级到下一级所需总经验 UserNextIntimacy int64 `protobuf:"varint,13,opt,name=user_next_intimacy,json=userNextIntimacy,proto3" json:"user_next_intimacy"` // 新增字段,判断用户是否达到满级 0:没有1:满级 IsLevelTop int64 `protobuf:"varint,14,opt,name=is_level_top,json=isLevelTop,proto3" json:"is_level_top"` // 用户等级排名 UserLevelRank string `protobuf:"bytes,15,opt,name=user_level_rank,json=userLevelRank,proto3" json:"user_level_rank"` // 年返逻辑,已失效 UserCharged int `protobuf:"varint,16,opt,name=user_charged,json=userCharged,proto3,casttype=int" json:"user_charged"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetInfoResp
func (*GetInfoResp) Descriptor ¶
func (*GetInfoResp) Descriptor() ([]byte, []int)
func (*GetInfoResp) GetAchieve ¶
func (m *GetInfoResp) GetAchieve() int64
func (*GetInfoResp) GetCoin ¶
func (m *GetInfoResp) GetCoin() float64
func (*GetInfoResp) GetFace ¶
func (m *GetInfoResp) GetFace() string
func (*GetInfoResp) GetGold ¶
func (m *GetInfoResp) GetGold() int64
func (*GetInfoResp) GetIsLevelTop ¶
func (m *GetInfoResp) GetIsLevelTop() int64
func (*GetInfoResp) GetSilver ¶
func (m *GetInfoResp) GetSilver() int64
func (*GetInfoResp) GetSvip ¶
func (m *GetInfoResp) GetSvip() int
func (*GetInfoResp) GetUid ¶
func (m *GetInfoResp) GetUid() int64
func (*GetInfoResp) GetUname ¶
func (m *GetInfoResp) GetUname() string
func (*GetInfoResp) GetUserCharged ¶
func (m *GetInfoResp) GetUserCharged() int
func (*GetInfoResp) GetUserIntimacy ¶
func (m *GetInfoResp) GetUserIntimacy() int64
func (*GetInfoResp) GetUserLevel ¶
func (m *GetInfoResp) GetUserLevel() int64
func (*GetInfoResp) GetUserLevelRank ¶
func (m *GetInfoResp) GetUserLevelRank() string
func (*GetInfoResp) GetUserNextIntimacy ¶
func (m *GetInfoResp) GetUserNextIntimacy() int64
func (*GetInfoResp) GetUserNextLevel ¶
func (m *GetInfoResp) GetUserNextLevel() int64
func (*GetInfoResp) GetVip ¶
func (m *GetInfoResp) GetVip() int
func (*GetInfoResp) Marshal ¶
func (m *GetInfoResp) Marshal() (dAtA []byte, err error)
func (*GetInfoResp) ProtoMessage ¶
func (*GetInfoResp) ProtoMessage()
func (*GetInfoResp) Reset ¶
func (m *GetInfoResp) Reset()
func (*GetInfoResp) Size ¶
func (m *GetInfoResp) Size() (n int)
func (*GetInfoResp) String ¶
func (m *GetInfoResp) String() string
func (*GetInfoResp) Unmarshal ¶
func (m *GetInfoResp) Unmarshal(dAtA []byte) error
func (*GetInfoResp) XXX_DiscardUnknown ¶
func (m *GetInfoResp) XXX_DiscardUnknown()
func (*GetInfoResp) XXX_Marshal ¶
func (m *GetInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoResp) XXX_Merge ¶
func (dst *GetInfoResp) XXX_Merge(src proto.Message)
func (*GetInfoResp) XXX_Size ¶
func (m *GetInfoResp) XXX_Size() int
func (*GetInfoResp) XXX_Unmarshal ¶
func (m *GetInfoResp) XXX_Unmarshal(b []byte) error
type UserBMServer ¶
type UserBMServer interface { // 根据uid查询用户信息 // `midware:"auth"` GetUserInfo(ctx context.Context, req *GetInfoReq) (resp *GetInfoResp, err error) }
var UserSvc UserBMServer
Click to show internal directories.
Click to hide internal directories.