|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.1
- // protoc v3.20.0--rc1
- // source: business.ext.proto
-
- package pb
-
- import (
- "context"
- "google.golang.org/grpc"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "google.golang.org/protobuf/reflect/protoreflect"
- "google.golang.org/protobuf/runtime/protoimpl"
- "reflect"
- "sync"
- )
-
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
-
- // 消息类型
- type ComplainType int32
-
- const (
- ComplainType_CT_UNKNOWN ComplainType = 0 // 未知
- ComplainType_CT_GAMBLE ComplainType = 1 // 存在赌博行为
- ComplainType_MT_DEFRAUD ComplainType = 2 // 存在骗钱行为
- ComplainType_MT_HARASS ComplainType = 3 // 不当信息骚扰
- ComplainType_MT_RUMOUR ComplainType = 4 // 传播谣言
- ComplainType_MT_COUNTERFEIT_GOODS_INFO ComplainType = 5 // 发布假冒商品信息
- ComplainType_MT_VIOLATION_OF_MINORS ComplainType = 6 // 侵犯未成年人权益
- ComplainType_MT_OTHER ComplainType = 7 // 其他
- )
-
- // Enum value maps for ComplainType.
- var (
- ComplainType_name = map[int32]string{
- 0: "CT_UNKNOWN",
- 1: "CT_GAMBLE",
- 2: "MT_DEFRAUD",
- 3: "MT_HARASS",
- 4: "MT_RUMOUR",
- 5: "MT_COUNTERFEIT_GOODS_INFO",
- 6: "MT_VIOLATION_OF_MINORS",
- 7: "MT_OTHER",
- }
- ComplainType_value = map[string]int32{
- "CT_UNKNOWN": 0,
- "CT_GAMBLE": 1,
- "MT_DEFRAUD": 2,
- "MT_HARASS": 3,
- "MT_RUMOUR": 4,
- "MT_COUNTERFEIT_GOODS_INFO": 5,
- "MT_VIOLATION_OF_MINORS": 6,
- "MT_OTHER": 7,
- }
- )
-
- func (x ComplainType) Enum() *ComplainType {
- p := new(ComplainType)
- *p = x
- return p
- }
-
- func (x ComplainType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
-
- func (ComplainType) Descriptor() protoreflect.EnumDescriptor {
- return file_business_ext_proto_enumTypes[0].Descriptor()
- }
-
- func (ComplainType) Type() protoreflect.EnumType {
- return &file_business_ext_proto_enumTypes[0]
- }
-
- func (x ComplainType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
-
- // Deprecated: Use ComplainType.Descriptor instead.
- func (ComplainType) EnumDescriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{0}
- }
-
- type ComplainGroupReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
- ComplainType ComplainType `protobuf:"varint,2,opt,name=complain_type,json=complainType,proto3,enum=pb.ComplainType" json:"complain_type,omitempty"` // 投诉类型
- Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // 投诉内容
- ImageList []string `protobuf:"bytes,4,rep,name=image_list,json=imageList,proto3" json:"image_list,omitempty"` // 图片
- }
-
- func (x *ComplainGroupReq) Reset() {
- *x = ComplainGroupReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ComplainGroupReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ComplainGroupReq) ProtoMessage() {}
-
- func (x *ComplainGroupReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use ComplainGroupReq.ProtoReflect.Descriptor instead.
- func (*ComplainGroupReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{0}
- }
-
- func (x *ComplainGroupReq) GetGroupId() int64 {
- if x != nil {
- return x.GroupId
- }
- return 0
- }
-
- func (x *ComplainGroupReq) GetComplainType() ComplainType {
- if x != nil {
- return x.ComplainType
- }
- return ComplainType_CT_UNKNOWN
- }
-
- func (x *ComplainGroupReq) GetText() string {
- if x != nil {
- return x.Text
- }
- return ""
- }
-
- func (x *ComplainGroupReq) GetImageList() []string {
- if x != nil {
- return x.ImageList
- }
- return nil
- }
-
- type IsFriendsReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserPhone string `protobuf:"bytes,1,opt,name=user_phone,json=userPhone,proto3" json:"user_phone,omitempty"`
- FriendPhone string `protobuf:"bytes,2,opt,name=friend_phone,json=friendPhone,proto3" json:"friend_phone,omitempty"`
- }
-
- func (x *IsFriendsReq) Reset() {
- *x = IsFriendsReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *IsFriendsReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*IsFriendsReq) ProtoMessage() {}
-
- func (x *IsFriendsReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use IsFriendsReq.ProtoReflect.Descriptor instead.
- func (*IsFriendsReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *IsFriendsReq) GetUserPhone() string {
- if x != nil {
- return x.UserPhone
- }
- return ""
- }
-
- func (x *IsFriendsReq) GetFriendPhone() string {
- if x != nil {
- return x.FriendPhone
- }
- return ""
- }
-
- type IsFriendsResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- IsFriend int64 `protobuf:"varint,1,opt,name=is_friend,json=isFriend,proto3" json:"is_friend,omitempty"`
- User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // 用户信息
- }
-
- func (x *IsFriendsResp) Reset() {
- *x = IsFriendsResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *IsFriendsResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*IsFriendsResp) ProtoMessage() {}
-
- func (x *IsFriendsResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use IsFriendsResp.ProtoReflect.Descriptor instead.
- func (*IsFriendsResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *IsFriendsResp) GetIsFriend() int64 {
- if x != nil {
- return x.IsFriend
- }
- return 0
- }
-
- func (x *IsFriendsResp) GetUser() *User {
- if x != nil {
- return x.User
- }
- return nil
- }
-
- type Emoticon struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 名称
- ImgUrl string `protobuf:"bytes,2,opt,name=img_url,json=imgUrl,proto3" json:"img_url,omitempty"` // 图片地址
- Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // 备注
- Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` // 排序
- }
-
- func (x *Emoticon) Reset() {
- *x = Emoticon{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *Emoticon) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*Emoticon) ProtoMessage() {}
-
- func (x *Emoticon) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use Emoticon.ProtoReflect.Descriptor instead.
- func (*Emoticon) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{3}
- }
-
- func (x *Emoticon) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
-
- func (x *Emoticon) GetImgUrl() string {
- if x != nil {
- return x.ImgUrl
- }
- return ""
- }
-
- func (x *Emoticon) GetMemo() string {
- if x != nil {
- return x.Memo
- }
- return ""
- }
-
- func (x *Emoticon) GetSort() int32 {
- if x != nil {
- return x.Sort
- }
- return 0
- }
-
- type EmoticonListResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Emoticons []*Emoticon `protobuf:"bytes,1,rep,name=emoticons,proto3" json:"emoticons,omitempty"`
- }
-
- func (x *EmoticonListResp) Reset() {
- *x = EmoticonListResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *EmoticonListResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*EmoticonListResp) ProtoMessage() {}
-
- func (x *EmoticonListResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use EmoticonListResp.ProtoReflect.Descriptor instead.
- func (*EmoticonListResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{4}
- }
-
- func (x *EmoticonListResp) GetEmoticons() []*Emoticon {
- if x != nil {
- return x.Emoticons
- }
- return nil
- }
-
- type SignInReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // 手机号
- Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 验证码
- DeviceId int64 `protobuf:"varint,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
- PushAlia string `protobuf:"bytes,5,opt,name=push_alia,json=pushAlia,proto3" json:"push_alia,omitempty"` // 极光推送-别名
- }
-
- func (x *SignInReq) Reset() {
- *x = SignInReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SignInReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SignInReq) ProtoMessage() {}
-
- func (x *SignInReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.
- func (*SignInReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{5}
- }
-
- func (x *SignInReq) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
-
- func (x *SignInReq) GetCode() string {
- if x != nil {
- return x.Code
- }
- return ""
- }
-
- func (x *SignInReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *SignInReq) GetMasterId() int64 {
- if x != nil {
- return x.MasterId
- }
- return 0
- }
-
- func (x *SignInReq) GetPushAlia() string {
- if x != nil {
- return x.PushAlia
- }
- return ""
- }
-
- type SignInResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- IsNew bool `protobuf:"varint,1,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"` // 是否是新用户
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // token
- MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
- }
-
- func (x *SignInResp) Reset() {
- *x = SignInResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SignInResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SignInResp) ProtoMessage() {}
-
- func (x *SignInResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
- func (*SignInResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{6}
- }
-
- func (x *SignInResp) GetIsNew() bool {
- if x != nil {
- return x.IsNew
- }
- return false
- }
-
- func (x *SignInResp) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *SignInResp) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
-
- func (x *SignInResp) GetMasterId() int64 {
- if x != nil {
- return x.MasterId
- }
- return 0
- }
-
- type CloudUploadFileReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` // 目录名
- FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 上传原文件名称
- FileSize string `protobuf:"bytes,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小
- }
-
- func (x *CloudUploadFileReq) Reset() {
- *x = CloudUploadFileReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *CloudUploadFileReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*CloudUploadFileReq) ProtoMessage() {}
-
- func (x *CloudUploadFileReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use CloudUploadFileReq.ProtoReflect.Descriptor instead.
- func (*CloudUploadFileReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{7}
- }
-
- func (x *CloudUploadFileReq) GetDir() string {
- if x != nil {
- return x.Dir
- }
- return ""
- }
-
- func (x *CloudUploadFileReq) GetFileName() string {
- if x != nil {
- return x.FileName
- }
- return ""
- }
-
- func (x *CloudUploadFileReq) GetFileSize() string {
- if x != nil {
- return x.FileSize
- }
- return ""
- }
-
- type CloudUploadFileResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // 请求方式
- Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` // 域名
- Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // key
- Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // token
- }
-
- func (x *CloudUploadFileResp) Reset() {
- *x = CloudUploadFileResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *CloudUploadFileResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*CloudUploadFileResp) ProtoMessage() {}
-
- func (x *CloudUploadFileResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use CloudUploadFileResp.ProtoReflect.Descriptor instead.
- func (*CloudUploadFileResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{8}
- }
-
- func (x *CloudUploadFileResp) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
-
- func (x *CloudUploadFileResp) GetHost() string {
- if x != nil {
- return x.Host
- }
- return ""
- }
-
- func (x *CloudUploadFileResp) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
-
- func (x *CloudUploadFileResp) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
-
- type User struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
- Sex int32 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
- AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
- Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
- CreateTime int64 `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
- UpdateTime int64 `protobuf:"varint,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
- MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
- IsAutoAddedFriends int64 `protobuf:"varint,9,opt,name=is_auto_added_friends,json=isAutoAddedFriends,proto3" json:"is_auto_added_friends,omitempty"` // 是否自动被添加好友
- }
-
- func (x *User) Reset() {
- *x = User{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *User) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*User) ProtoMessage() {}
-
- func (x *User) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use User.ProtoReflect.Descriptor instead.
- func (*User) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{9}
- }
-
- func (x *User) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *User) GetNickname() string {
- if x != nil {
- return x.Nickname
- }
- return ""
- }
-
- func (x *User) GetSex() int32 {
- if x != nil {
- return x.Sex
- }
- return 0
- }
-
- func (x *User) GetAvatarUrl() string {
- if x != nil {
- return x.AvatarUrl
- }
- return ""
- }
-
- func (x *User) GetExtra() string {
- if x != nil {
- return x.Extra
- }
- return ""
- }
-
- func (x *User) GetCreateTime() int64 {
- if x != nil {
- return x.CreateTime
- }
- return 0
- }
-
- func (x *User) GetUpdateTime() int64 {
- if x != nil {
- return x.UpdateTime
- }
- return 0
- }
-
- func (x *User) GetMasterId() int64 {
- if x != nil {
- return x.MasterId
- }
- return 0
- }
-
- func (x *User) GetIsAutoAddedFriends() int64 {
- if x != nil {
- return x.IsAutoAddedFriends
- }
- return 0
- }
-
- type GetUserReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` // 用户手机号
- }
-
- func (x *GetUserReq) Reset() {
- *x = GetUserReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *GetUserReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*GetUserReq) ProtoMessage() {}
-
- func (x *GetUserReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
- func (*GetUserReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{10}
- }
-
- func (x *GetUserReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *GetUserReq) GetPhone() string {
- if x != nil {
- return x.Phone
- }
- return ""
- }
-
- type GetUserResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 用户信息
- }
-
- func (x *GetUserResp) Reset() {
- *x = GetUserResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *GetUserResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*GetUserResp) ProtoMessage() {}
-
- func (x *GetUserResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[11]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use GetUserResp.ProtoReflect.Descriptor instead.
- func (*GetUserResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{11}
- }
-
- func (x *GetUserResp) GetUser() *User {
- if x != nil {
- return x.User
- }
- return nil
- }
-
- type UpdateUserReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
- Sex int32 `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
- AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
- Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
- }
-
- func (x *UpdateUserReq) Reset() {
- *x = UpdateUserReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *UpdateUserReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*UpdateUserReq) ProtoMessage() {}
-
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[12]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
- func (*UpdateUserReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{12}
- }
-
- func (x *UpdateUserReq) GetNickname() string {
- if x != nil {
- return x.Nickname
- }
- return ""
- }
-
- func (x *UpdateUserReq) GetSex() int32 {
- if x != nil {
- return x.Sex
- }
- return 0
- }
-
- func (x *UpdateUserReq) GetAvatarUrl() string {
- if x != nil {
- return x.AvatarUrl
- }
- return ""
- }
-
- func (x *UpdateUserReq) GetExtra() string {
- if x != nil {
- return x.Extra
- }
- return ""
- }
-
- type SearchUserReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- MasterId int64 `protobuf:"varint,2,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
- }
-
- func (x *SearchUserReq) Reset() {
- *x = SearchUserReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SearchUserReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SearchUserReq) ProtoMessage() {}
-
- func (x *SearchUserReq) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[13]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SearchUserReq.ProtoReflect.Descriptor instead.
- func (*SearchUserReq) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{13}
- }
-
- func (x *SearchUserReq) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
-
- func (x *SearchUserReq) GetMasterId() int64 {
- if x != nil {
- return x.MasterId
- }
- return 0
- }
-
- type SearchUserResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
- }
-
- func (x *SearchUserResp) Reset() {
- *x = SearchUserResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_business_ext_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SearchUserResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SearchUserResp) ProtoMessage() {}
-
- func (x *SearchUserResp) ProtoReflect() protoreflect.Message {
- mi := &file_business_ext_proto_msgTypes[14]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SearchUserResp.ProtoReflect.Descriptor instead.
- func (*SearchUserResp) Descriptor() ([]byte, []int) {
- return file_business_ext_proto_rawDescGZIP(), []int{14}
- }
-
- func (x *SearchUserResp) GetUsers() []*User {
- if x != nil {
- return x.Users
- }
- return nil
- }
-
- var File_business_ext_proto protoreflect.FileDescriptor
-
- var file_business_ext_proto_rawDesc = []byte{
- 0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
- 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x43,
- 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x12,
- 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x0d, 0x63, 0x6f,
- 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54,
- 0x79, 0x70, 0x65, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54, 0x79, 0x70,
- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6c,
- 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65,
- 0x4c, 0x69, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x0c, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64,
- 0x73, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x68, 0x6f,
- 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68,
- 0x6f, 0x6e, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x68,
- 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e,
- 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x4a, 0x0a, 0x0d, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65,
- 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x66, 0x72,
- 0x69, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x73, 0x46, 0x72,
- 0x69, 0x65, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73,
- 0x65, 0x72, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x12,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x67, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6d,
- 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12,
- 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73,
- 0x6f, 0x72, 0x74, 0x22, 0x3e, 0x0a, 0x10, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c,
- 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69,
- 0x63, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e,
- 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69, 0x63,
- 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65,
- 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65,
- 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75,
- 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69,
- 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76,
- 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f,
- 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
- 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x69, 0x61, 0x22,
- 0x6f, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x15, 0x0a,
- 0x06, 0x69, 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69,
- 0x73, 0x4e, 0x65, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
- 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
- 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
- 0x22, 0x60, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46,
- 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65,
- 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c,
- 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69,
- 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69,
- 0x7a, 0x65, 0x22, 0x69, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61,
- 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
- 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
- 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x94, 0x02,
- 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
- 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
- 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a,
- 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
- 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74,
- 0x72, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69,
- 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49,
- 0x64, 0x12, 0x31, 0x0a, 0x15, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64,
- 0x65, 0x64, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x12, 0x69, 0x73, 0x41, 0x75, 0x74, 0x6f, 0x41, 0x64, 0x64, 0x65, 0x64, 0x46, 0x72, 0x69,
- 0x65, 0x6e, 0x64, 0x73, 0x22, 0x3b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52,
- 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
- 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
- 0x65, 0x22, 0x2b, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
- 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08,
- 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x72,
- 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12,
- 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
- 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a,
- 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
- 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74,
- 0x72, 0x61, 0x22, 0x3e, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
- 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f,
- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
- 0x49, 0x64, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75,
- 0x73, 0x65, 0x72, 0x73, 0x2a, 0xa4, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69,
- 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e,
- 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x54, 0x5f, 0x47, 0x41, 0x4d, 0x42,
- 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x52, 0x41,
- 0x55, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x54, 0x5f, 0x48, 0x41, 0x52, 0x41, 0x53,
- 0x53, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x54, 0x5f, 0x52, 0x55, 0x4d, 0x4f, 0x55, 0x52,
- 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x54, 0x5f, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52,
- 0x46, 0x45, 0x49, 0x54, 0x5f, 0x47, 0x4f, 0x4f, 0x44, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10,
- 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x54, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f,
- 0x4e, 0x5f, 0x4f, 0x46, 0x5f, 0x4d, 0x49, 0x4e, 0x4f, 0x52, 0x53, 0x10, 0x06, 0x12, 0x0c, 0x0a,
- 0x08, 0x4d, 0x54, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x07, 0x32, 0x9c, 0x03, 0x0a, 0x0b,
- 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x45, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x53,
- 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49,
- 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
- 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12,
- 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
- 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
- 0x12, 0x2a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11,
- 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
- 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x0a,
- 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e,
- 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
- 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
- 0x70, 0x12, 0x42, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
- 0x46, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55,
- 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x70,
- 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
- 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0c, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f,
- 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
- 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x09, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65,
- 0x6e, 0x64, 0x73, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e,
- 0x64, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69,
- 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70,
- 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x43,
- 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a,
- 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69,
- 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x33,
- }
-
- var (
- file_business_ext_proto_rawDescOnce sync.Once
- file_business_ext_proto_rawDescData = file_business_ext_proto_rawDesc
- )
-
- func file_business_ext_proto_rawDescGZIP() []byte {
- file_business_ext_proto_rawDescOnce.Do(func() {
- file_business_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_ext_proto_rawDescData)
- })
- return file_business_ext_proto_rawDescData
- }
-
- var file_business_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_business_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
- var file_business_ext_proto_goTypes = []interface{}{
- (ComplainType)(0), // 0: pb.ComplainType
- (*ComplainGroupReq)(nil), // 1: pb.ComplainGroupReq
- (*IsFriendsReq)(nil), // 2: pb.IsFriendsReq
- (*IsFriendsResp)(nil), // 3: pb.IsFriendsResp
- (*Emoticon)(nil), // 4: pb.Emoticon
- (*EmoticonListResp)(nil), // 5: pb.EmoticonListResp
- (*SignInReq)(nil), // 6: pb.SignInReq
- (*SignInResp)(nil), // 7: pb.SignInResp
- (*CloudUploadFileReq)(nil), // 8: pb.CloudUploadFileReq
- (*CloudUploadFileResp)(nil), // 9: pb.CloudUploadFileResp
- (*User)(nil), // 10: pb.User
- (*GetUserReq)(nil), // 11: pb.GetUserReq
- (*GetUserResp)(nil), // 12: pb.GetUserResp
- (*UpdateUserReq)(nil), // 13: pb.UpdateUserReq
- (*SearchUserReq)(nil), // 14: pb.SearchUserReq
- (*SearchUserResp)(nil), // 15: pb.SearchUserResp
- (*Empty)(nil), // 16: pb.Empty
- }
- var file_business_ext_proto_depIdxs = []int32{
- 0, // 0: pb.ComplainGroupReq.complain_type:type_name -> pb.ComplainType
- 10, // 1: pb.IsFriendsResp.user:type_name -> pb.User
- 4, // 2: pb.EmoticonListResp.emoticons:type_name -> pb.Emoticon
- 10, // 3: pb.GetUserResp.user:type_name -> pb.User
- 10, // 4: pb.SearchUserResp.users:type_name -> pb.User
- 6, // 5: pb.BusinessExt.SignIn:input_type -> pb.SignInReq
- 11, // 6: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq
- 13, // 7: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq
- 14, // 8: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq
- 8, // 9: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq
- 16, // 10: pb.BusinessExt.EmoticonList:input_type -> pb.Empty
- 2, // 11: pb.BusinessExt.IsFriends:input_type -> pb.IsFriendsReq
- 1, // 12: pb.BusinessExt.ComplainGroup:input_type -> pb.ComplainGroupReq
- 7, // 13: pb.BusinessExt.SignIn:output_type -> pb.SignInResp
- 12, // 14: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp
- 16, // 15: pb.BusinessExt.UpdateUser:output_type -> pb.Empty
- 15, // 16: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp
- 9, // 17: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp
- 5, // 18: pb.BusinessExt.EmoticonList:output_type -> pb.EmoticonListResp
- 3, // 19: pb.BusinessExt.IsFriends:output_type -> pb.IsFriendsResp
- 16, // 20: pb.BusinessExt.ComplainGroup:output_type -> pb.Empty
- 13, // [13:21] is the sub-list for method output_type
- 5, // [5:13] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
- }
-
- func init() { file_business_ext_proto_init() }
- func file_business_ext_proto_init() {
- if File_business_ext_proto != nil {
- return
- }
- file_common_ext_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_business_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ComplainGroupReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*IsFriendsReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*IsFriendsResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Emoticon); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*EmoticonListResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SignInReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SignInResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CloudUploadFileReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CloudUploadFileResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*User); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUserReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUserResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateUserReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SearchUserReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_business_ext_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SearchUserResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_business_ext_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 15,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_business_ext_proto_goTypes,
- DependencyIndexes: file_business_ext_proto_depIdxs,
- EnumInfos: file_business_ext_proto_enumTypes,
- MessageInfos: file_business_ext_proto_msgTypes,
- }.Build()
- File_business_ext_proto = out.File
- file_business_ext_proto_rawDesc = nil
- file_business_ext_proto_goTypes = nil
- file_business_ext_proto_depIdxs = nil
- }
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
-
- // BusinessExtClient is the client API for BusinessExt 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.
- type BusinessExtClient interface {
- // 登录
- SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
- // 获取用户信息
- GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
- // 更新用户信息
- UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error)
- // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
- SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error)
- // 上传文件至云端
- CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error)
- // 获取表情
- EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error)
- // 判断是否为好友关系
- IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error)
- // 投诉群
- ComplainGroup(ctx context.Context, in *ComplainGroupReq, opts ...grpc.CallOption) (*Empty, error)
- }
-
- type businessExtClient struct {
- cc grpc.ClientConnInterface
- }
-
- func NewBusinessExtClient(cc grpc.ClientConnInterface) BusinessExtClient {
- return &businessExtClient{cc}
- }
-
- func (c *businessExtClient) SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) {
- out := new(SignInResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/SignIn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
- out := new(GetUserResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/GetUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/UpdateUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error) {
- out := new(SearchUserResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/SearchUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error) {
- out := new(CloudUploadFileResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/CloudUploadFile", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error) {
- out := new(EmoticonListResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/EmoticonList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error) {
- out := new(IsFriendsResp)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/IsFriends", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *businessExtClient) ComplainGroup(ctx context.Context, in *ComplainGroupReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.BusinessExt/ComplainGroup", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // BusinessExtServer is the server API for BusinessExt service.
- // All implementations must embed UnimplementedBusinessExtServer
- // for forward compatibility
- type BusinessExtServer interface {
- // 登录
- SignIn(context.Context, *SignInReq) (*SignInResp, error)
- // 获取用户信息
- GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
- // 更新用户信息
- UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
- // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
- SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error)
- // 上传文件至云端
- CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error)
- // 获取表情
- EmoticonList(context.Context, *Empty) (*EmoticonListResp, error)
- // 判断是否为好友关系
- IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error)
- // 投诉群
- ComplainGroup(context.Context, *ComplainGroupReq) (*Empty, error)
- }
-
- // UnimplementedBusinessExtServer must be embedded to have forward compatible implementations.
- type UnimplementedBusinessExtServer struct {
- }
-
- func (UnimplementedBusinessExtServer) SignIn(context.Context, *SignInReq) (*SignInResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
- }
- func (UnimplementedBusinessExtServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
- }
- func (UnimplementedBusinessExtServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
- }
- func (UnimplementedBusinessExtServer) SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SearchUser not implemented")
- }
- func (UnimplementedBusinessExtServer) CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CloudUploadFile not implemented")
- }
- func (UnimplementedBusinessExtServer) EmoticonList(context.Context, *Empty) (*EmoticonListResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EmoticonList not implemented")
- }
- func (UnimplementedBusinessExtServer) IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method IsFriends not implemented")
- }
- func (UnimplementedBusinessExtServer) ComplainGroup(context.Context, *ComplainGroupReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ComplainGroup not implemented")
- }
-
- func RegisterBusinessExtServer(s grpc.ServiceRegistrar, srv BusinessExtServer) {
- s.RegisterService(&BusinessExt_ServiceDesc, srv)
- }
-
- func _BusinessExt_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SignInReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).SignIn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/SignIn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).SignIn(ctx, req.(*SignInReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).GetUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/GetUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).GetUser(ctx, req.(*GetUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).UpdateUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/UpdateUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).UpdateUser(ctx, req.(*UpdateUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_SearchUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SearchUserReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).SearchUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/SearchUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).SearchUser(ctx, req.(*SearchUserReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_CloudUploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CloudUploadFileReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).CloudUploadFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/CloudUploadFile",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).CloudUploadFile(ctx, req.(*CloudUploadFileReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_EmoticonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).EmoticonList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/EmoticonList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).EmoticonList(ctx, req.(*Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_IsFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IsFriendsReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).IsFriends(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/IsFriends",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).IsFriends(ctx, req.(*IsFriendsReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _BusinessExt_ComplainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ComplainGroupReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(BusinessExtServer).ComplainGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.BusinessExt/ComplainGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BusinessExtServer).ComplainGroup(ctx, req.(*ComplainGroupReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- // BusinessExt_ServiceDesc is the grpc.ServiceDesc for BusinessExt service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var BusinessExt_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "pb.BusinessExt",
- HandlerType: (*BusinessExtServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "SignIn",
- Handler: _BusinessExt_SignIn_Handler,
- },
- {
- MethodName: "GetUser",
- Handler: _BusinessExt_GetUser_Handler,
- },
- {
- MethodName: "UpdateUser",
- Handler: _BusinessExt_UpdateUser_Handler,
- },
- {
- MethodName: "SearchUser",
- Handler: _BusinessExt_SearchUser_Handler,
- },
- {
- MethodName: "CloudUploadFile",
- Handler: _BusinessExt_CloudUploadFile_Handler,
- },
- {
- MethodName: "EmoticonList",
- Handler: _BusinessExt_EmoticonList_Handler,
- },
- {
- MethodName: "IsFriends",
- Handler: _BusinessExt_IsFriends_Handler,
- },
- {
- MethodName: "ComplainGroup",
- Handler: _BusinessExt_ComplainGroup_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "business.ext.proto",
- }
|