mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
app info.
This commit is contained in:
parent
22159e13f9
commit
6582b1e89d
@ -3,8 +3,11 @@ package client
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
||||
"math/rand"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
||||
@ -1152,3 +1155,23 @@ func (c *QQClient) buildPttShortVideoDownReqPacket(uuid, md5 []byte) (uint16, []
|
||||
packet := packets.BuildUniPacket(c.Uin, seq, "PttCenterSvr.ShortVideoDownReq", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||
return seq, packet
|
||||
}
|
||||
|
||||
// LightAppSvc.mini_app_info.GetAppInfoById
|
||||
func (c *QQClient) buildAppInfoRequestPacket(id string) (uint16, []byte) {
|
||||
seq := c.nextSeq()
|
||||
req := &qweb.GetAppInfoByIdReq{
|
||||
AppId: id,
|
||||
NeedVersionInfo: 1,
|
||||
}
|
||||
b, _ := proto.Marshal(req)
|
||||
body := &qweb.QWebReq{
|
||||
Seq: 1,
|
||||
Qua: "V1_AND_SQ_8.4.8_1492_YYB_D",
|
||||
DeviceInfo: fmt.Sprintf("i=865166025905020&imsi=460002478794049&mac=02:00:00:00:00:00&m=%v&o=7.1.2&a=25&sc=1&sd=0&p=900*1600&f=nubia&mm=3479&cf=2407&cc=4&aid=086bbf84a7d5fbb3&qimei=865166023450458&sharpP=1&n=wifi", string(SystemDeviceInfo.Model)),
|
||||
BusiBuff: b,
|
||||
TraceId: fmt.Sprintf("%v_%v_%v", c.Uin, time.Now().Format("0102150405"), rand.Int63()),
|
||||
}
|
||||
payload, _ := proto.Marshal(body)
|
||||
packet := packets.BuildUniPacket(c.Uin, seq, "LightAppSvc.mini_app_info.GetAppInfoById", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||
return seq, packet
|
||||
}
|
||||
|
@ -142,6 +142,7 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
|
||||
"OidbSvc.0x88d_0": decodeGroupInfoResponse,
|
||||
"SummaryCard.ReqSummaryCard": decodeSummaryCardResponse,
|
||||
"PttCenterSvr.ShortVideoDownReq": decodePttShortVideoDownResponse,
|
||||
"LightAppSvc.mini_app_info.GetAppInfoById": decodeAppInfoResponse,
|
||||
},
|
||||
sigInfo: &loginSigInfo{},
|
||||
requestPacketRequestId: 1921334513,
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/Mrs4s/MiraiGo/client/pb/notify"
|
||||
"github.com/Mrs4s/MiraiGo/client/pb/pttcenter"
|
||||
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
@ -984,3 +985,18 @@ func decodePttShortVideoDownResponse(c *QQClient, _ uint16, payload []byte) (int
|
||||
}
|
||||
return rsp.PttShortVideoDownloadRsp.DownloadAddr.Host[0] + rsp.PttShortVideoDownloadRsp.DownloadAddr.UrlArgs, nil
|
||||
}
|
||||
|
||||
func decodeAppInfoResponse(c *QQClient, _ uint16, payload []byte) (interface{}, error) {
|
||||
pkg := qweb.QWebRsp{}
|
||||
rsp := qweb.GetAppInfoByIdRsp{}
|
||||
if err := proto.Unmarshal(payload, &pkg); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if pkg.RetCode != 0 {
|
||||
return nil, errors.New(pkg.ErrMsg)
|
||||
}
|
||||
if err := proto.Unmarshal(pkg.BusiBuff, &rsp); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return rsp.AppInfo, nil
|
||||
}
|
||||
|
587
client/pb/qweb/app.pb.go
Normal file
587
client/pb/qweb/app.pb.go
Normal file
@ -0,0 +1,587 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.11.4
|
||||
// source: app.proto
|
||||
|
||||
package qweb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type GetAppInfoByIdReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
//CommonExt ExtInfo = 1;
|
||||
AppId string `protobuf:"bytes,2,opt,name=appId,proto3" json:"appId,omitempty"`
|
||||
NeedVersionInfo int32 `protobuf:"varint,3,opt,name=needVersionInfo,proto3" json:"needVersionInfo,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdReq) Reset() {
|
||||
*x = GetAppInfoByIdReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_app_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetAppInfoByIdReq) ProtoMessage() {}
|
||||
|
||||
func (x *GetAppInfoByIdReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_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 GetAppInfoByIdReq.ProtoReflect.Descriptor instead.
|
||||
func (*GetAppInfoByIdReq) Descriptor() ([]byte, []int) {
|
||||
return file_app_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdReq) GetAppId() string {
|
||||
if x != nil {
|
||||
return x.AppId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdReq) GetNeedVersionInfo() int32 {
|
||||
if x != nil {
|
||||
return x.NeedVersionInfo
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type GetAppInfoByIdRsp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AppInfo *ApiAppInfo `protobuf:"bytes,2,opt,name=appInfo,proto3" json:"appInfo,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdRsp) Reset() {
|
||||
*x = GetAppInfoByIdRsp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_app_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdRsp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetAppInfoByIdRsp) ProtoMessage() {}
|
||||
|
||||
func (x *GetAppInfoByIdRsp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_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 GetAppInfoByIdRsp.ProtoReflect.Descriptor instead.
|
||||
func (*GetAppInfoByIdRsp) Descriptor() ([]byte, []int) {
|
||||
return file_app_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GetAppInfoByIdRsp) GetAppInfo() *ApiAppInfo {
|
||||
if x != nil {
|
||||
return x.AppInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ApiAppInfo struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AppId string `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"`
|
||||
AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"`
|
||||
Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
|
||||
DownloadUrl string `protobuf:"bytes,4,opt,name=downloadUrl,proto3" json:"downloadUrl,omitempty"`
|
||||
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Desc string `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`
|
||||
// pub accts = 7;
|
||||
Type int32 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"`
|
||||
BaseLibMiniVersion string `protobuf:"bytes,9,opt,name=baseLibMiniVersion,proto3" json:"baseLibMiniVersion,omitempty"`
|
||||
SubPkgs []*AppSubPkgInfo `protobuf:"bytes,10,rep,name=subPkgs,proto3" json:"subPkgs,omitempty"`
|
||||
// first = 11;
|
||||
Domain *DomainConfig `protobuf:"bytes,12,opt,name=domain,proto3" json:"domain,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) Reset() {
|
||||
*x = ApiAppInfo{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_app_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApiAppInfo) ProtoMessage() {}
|
||||
|
||||
func (x *ApiAppInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_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 ApiAppInfo.ProtoReflect.Descriptor instead.
|
||||
func (*ApiAppInfo) Descriptor() ([]byte, []int) {
|
||||
return file_app_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetAppId() string {
|
||||
if x != nil {
|
||||
return x.AppId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetAppName() string {
|
||||
if x != nil {
|
||||
return x.AppName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetIcon() string {
|
||||
if x != nil {
|
||||
return x.Icon
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetDownloadUrl() string {
|
||||
if x != nil {
|
||||
return x.DownloadUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetDesc() string {
|
||||
if x != nil {
|
||||
return x.Desc
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetBaseLibMiniVersion() string {
|
||||
if x != nil {
|
||||
return x.BaseLibMiniVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetSubPkgs() []*AppSubPkgInfo {
|
||||
if x != nil {
|
||||
return x.SubPkgs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ApiAppInfo) GetDomain() *DomainConfig {
|
||||
if x != nil {
|
||||
return x.Domain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AppSubPkgInfo struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
SubPkgName string `protobuf:"bytes,1,opt,name=subPkgName,proto3" json:"subPkgName,omitempty"`
|
||||
DownloadUrl string `protobuf:"bytes,2,opt,name=downloadUrl,proto3" json:"downloadUrl,omitempty"`
|
||||
Independent int32 `protobuf:"varint,3,opt,name=independent,proto3" json:"independent,omitempty"`
|
||||
FileSize int32 `protobuf:"varint,4,opt,name=fileSize,proto3" json:"fileSize,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) Reset() {
|
||||
*x = AppSubPkgInfo{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_app_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AppSubPkgInfo) ProtoMessage() {}
|
||||
|
||||
func (x *AppSubPkgInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_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 AppSubPkgInfo.ProtoReflect.Descriptor instead.
|
||||
func (*AppSubPkgInfo) Descriptor() ([]byte, []int) {
|
||||
return file_app_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) GetSubPkgName() string {
|
||||
if x != nil {
|
||||
return x.SubPkgName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) GetDownloadUrl() string {
|
||||
if x != nil {
|
||||
return x.DownloadUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) GetIndependent() int32 {
|
||||
if x != nil {
|
||||
return x.Independent
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AppSubPkgInfo) GetFileSize() int32 {
|
||||
if x != nil {
|
||||
return x.FileSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DomainConfig struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RequestDomain []string `protobuf:"bytes,1,rep,name=requestDomain,proto3" json:"requestDomain,omitempty"`
|
||||
SocketDomain []string `protobuf:"bytes,2,rep,name=socketDomain,proto3" json:"socketDomain,omitempty"`
|
||||
UploadFileDomain []string `protobuf:"bytes,3,rep,name=uploadFileDomain,proto3" json:"uploadFileDomain,omitempty"`
|
||||
DownloadFileDomain []string `protobuf:"bytes,4,rep,name=downloadFileDomain,proto3" json:"downloadFileDomain,omitempty"`
|
||||
BusinessDomain []string `protobuf:"bytes,5,rep,name=businessDomain,proto3" json:"businessDomain,omitempty"`
|
||||
UdpIpList []string `protobuf:"bytes,6,rep,name=udpIpList,proto3" json:"udpIpList,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DomainConfig) Reset() {
|
||||
*x = DomainConfig{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_app_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DomainConfig) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DomainConfig) ProtoMessage() {}
|
||||
|
||||
func (x *DomainConfig) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_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 DomainConfig.ProtoReflect.Descriptor instead.
|
||||
func (*DomainConfig) Descriptor() ([]byte, []int) {
|
||||
return file_app_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetRequestDomain() []string {
|
||||
if x != nil {
|
||||
return x.RequestDomain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetSocketDomain() []string {
|
||||
if x != nil {
|
||||
return x.SocketDomain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetUploadFileDomain() []string {
|
||||
if x != nil {
|
||||
return x.UploadFileDomain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetDownloadFileDomain() []string {
|
||||
if x != nil {
|
||||
return x.DownloadFileDomain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetBusinessDomain() []string {
|
||||
if x != nil {
|
||||
return x.BusinessDomain
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DomainConfig) GetUdpIpList() []string {
|
||||
if x != nil {
|
||||
return x.UdpIpList
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_app_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_app_proto_rawDesc = []byte{
|
||||
0x0a, 0x09, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x11, 0x47,
|
||||
0x65, 0x74, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x65, 0x65, 0x64, 0x56, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x0f, 0x6e, 0x65, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x22, 0x3a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79,
|
||||
0x49, 0x64, 0x52, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x41, 0x70, 0x69, 0x41, 0x70, 0x70, 0x49,
|
||||
0x6e, 0x66, 0x6f, 0x52, 0x07, 0x61, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xb5, 0x02, 0x0a,
|
||||
0x0a, 0x41, 0x70, 0x69, 0x41, 0x70, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x61,
|
||||
0x70, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49,
|
||||
0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69,
|
||||
0x63, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12,
|
||||
0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72,
|
||||
0x6c, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x64,
|
||||
0x65, 0x73, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74,
|
||||
0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x62, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x62, 0x4d, 0x69,
|
||||
0x6e, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x12, 0x62, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x62, 0x4d, 0x69, 0x6e, 0x69, 0x56, 0x65, 0x72, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x50, 0x6b, 0x67, 0x73, 0x18, 0x0a,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x41, 0x70, 0x70, 0x53, 0x75, 0x62, 0x50, 0x6b, 0x67,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x73, 0x75, 0x62, 0x50, 0x6b, 0x67, 0x73, 0x12, 0x25, 0x0a,
|
||||
0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x6f,
|
||||
0x6d, 0x61, 0x69, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x53, 0x75, 0x62, 0x50,
|
||||
0x6b, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x50, 0x6b, 0x67,
|
||||
0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x50,
|
||||
0x6b, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
|
||||
0x61, 0x64, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, 0x77,
|
||||
0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x64, 0x65,
|
||||
0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69,
|
||||
0x6e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xfa, 0x01, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69,
|
||||
0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d,
|
||||
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x22, 0x0a,
|
||||
0x0c, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20,
|
||||
0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69,
|
||||
0x6e, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x44,
|
||||
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x75, 0x70, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2e, 0x0a,
|
||||
0x12, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x6d,
|
||||
0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x64, 0x6f, 0x77, 0x6e, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x26, 0x0a,
|
||||
0x0e, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
|
||||
0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x44,
|
||||
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x64, 0x70, 0x49, 0x70, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x64, 0x70, 0x49, 0x70, 0x4c,
|
||||
0x69, 0x73, 0x74, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x3b, 0x71, 0x77, 0x65, 0x62, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_app_proto_rawDescOnce sync.Once
|
||||
file_app_proto_rawDescData = file_app_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_app_proto_rawDescGZIP() []byte {
|
||||
file_app_proto_rawDescOnce.Do(func() {
|
||||
file_app_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_proto_rawDescData)
|
||||
})
|
||||
return file_app_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_app_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_app_proto_goTypes = []interface{}{
|
||||
(*GetAppInfoByIdReq)(nil), // 0: GetAppInfoByIdReq
|
||||
(*GetAppInfoByIdRsp)(nil), // 1: GetAppInfoByIdRsp
|
||||
(*ApiAppInfo)(nil), // 2: ApiAppInfo
|
||||
(*AppSubPkgInfo)(nil), // 3: AppSubPkgInfo
|
||||
(*DomainConfig)(nil), // 4: DomainConfig
|
||||
}
|
||||
var file_app_proto_depIdxs = []int32{
|
||||
2, // 0: GetAppInfoByIdRsp.appInfo:type_name -> ApiAppInfo
|
||||
3, // 1: ApiAppInfo.subPkgs:type_name -> AppSubPkgInfo
|
||||
4, // 2: ApiAppInfo.domain:type_name -> DomainConfig
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_app_proto_init() }
|
||||
func file_app_proto_init() {
|
||||
if File_app_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_app_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetAppInfoByIdReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_app_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetAppInfoByIdRsp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_app_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ApiAppInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_app_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AppSubPkgInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_app_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DomainConfig); 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_app_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 5,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_app_proto_goTypes,
|
||||
DependencyIndexes: file_app_proto_depIdxs,
|
||||
MessageInfos: file_app_proto_msgTypes,
|
||||
}.Build()
|
||||
File_app_proto = out.File
|
||||
file_app_proto_rawDesc = nil
|
||||
file_app_proto_goTypes = nil
|
||||
file_app_proto_depIdxs = nil
|
||||
}
|
44
client/pb/qweb/app.proto
Normal file
44
client/pb/qweb/app.proto
Normal file
@ -0,0 +1,44 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = ".;qweb";
|
||||
|
||||
message GetAppInfoByIdReq {
|
||||
//CommonExt ExtInfo = 1;
|
||||
string appId = 2;
|
||||
int32 needVersionInfo = 3;
|
||||
}
|
||||
|
||||
message GetAppInfoByIdRsp {
|
||||
ApiAppInfo appInfo = 2;
|
||||
}
|
||||
|
||||
message ApiAppInfo {
|
||||
string appId = 1;
|
||||
string appName = 2;
|
||||
string icon = 3;
|
||||
string downloadUrl = 4;
|
||||
string version = 5;
|
||||
string desc = 6;
|
||||
// pub accts = 7;
|
||||
int32 type = 8;
|
||||
string baseLibMiniVersion = 9;
|
||||
repeated AppSubPkgInfo subPkgs = 10;
|
||||
// first = 11;
|
||||
DomainConfig domain = 12;
|
||||
}
|
||||
|
||||
message AppSubPkgInfo {
|
||||
string subPkgName = 1;
|
||||
string downloadUrl = 2;
|
||||
int32 independent = 3;
|
||||
int32 fileSize = 4;
|
||||
}
|
||||
|
||||
message DomainConfig {
|
||||
repeated string requestDomain = 1;
|
||||
repeated string socketDomain = 2;
|
||||
repeated string uploadFileDomain = 3;
|
||||
repeated string downloadFileDomain = 4;
|
||||
repeated string businessDomain = 5;
|
||||
repeated string udpIpList = 6;
|
||||
}
|
275
client/pb/qweb/protocol.pb.go
Normal file
275
client/pb/qweb/protocol.pb.go
Normal file
@ -0,0 +1,275 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.11.4
|
||||
// source: protocol.proto
|
||||
|
||||
package qweb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
type QWebReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
|
||||
Qua string `protobuf:"bytes,2,opt,name=qua,proto3" json:"qua,omitempty"`
|
||||
DeviceInfo string `protobuf:"bytes,3,opt,name=deviceInfo,proto3" json:"deviceInfo,omitempty"`
|
||||
BusiBuff []byte `protobuf:"bytes,4,opt,name=busiBuff,proto3" json:"busiBuff,omitempty"`
|
||||
TraceId string `protobuf:"bytes,5,opt,name=traceId,proto3" json:"traceId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QWebReq) Reset() {
|
||||
*x = QWebReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *QWebReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*QWebReq) ProtoMessage() {}
|
||||
|
||||
func (x *QWebReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_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 QWebReq.ProtoReflect.Descriptor instead.
|
||||
func (*QWebReq) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *QWebReq) GetSeq() int64 {
|
||||
if x != nil {
|
||||
return x.Seq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *QWebReq) GetQua() string {
|
||||
if x != nil {
|
||||
return x.Qua
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *QWebReq) GetDeviceInfo() string {
|
||||
if x != nil {
|
||||
return x.DeviceInfo
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *QWebReq) GetBusiBuff() []byte {
|
||||
if x != nil {
|
||||
return x.BusiBuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *QWebReq) GetTraceId() string {
|
||||
if x != nil {
|
||||
return x.TraceId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type QWebRsp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
|
||||
RetCode int64 `protobuf:"varint,2,opt,name=retCode,proto3" json:"retCode,omitempty"`
|
||||
ErrMsg string `protobuf:"bytes,3,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
|
||||
BusiBuff []byte `protobuf:"bytes,4,opt,name=busiBuff,proto3" json:"busiBuff,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QWebRsp) Reset() {
|
||||
*x = QWebRsp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protocol_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *QWebRsp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*QWebRsp) ProtoMessage() {}
|
||||
|
||||
func (x *QWebRsp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protocol_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 QWebRsp.ProtoReflect.Descriptor instead.
|
||||
func (*QWebRsp) Descriptor() ([]byte, []int) {
|
||||
return file_protocol_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *QWebRsp) GetSeq() int64 {
|
||||
if x != nil {
|
||||
return x.Seq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *QWebRsp) GetRetCode() int64 {
|
||||
if x != nil {
|
||||
return x.RetCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *QWebRsp) GetErrMsg() string {
|
||||
if x != nil {
|
||||
return x.ErrMsg
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *QWebRsp) GetBusiBuff() []byte {
|
||||
if x != nil {
|
||||
return x.BusiBuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_protocol_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protocol_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x22, 0x83, 0x01, 0x0a, 0x07, 0x51, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x71, 0x75, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x71, 0x75, 0x61,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x62, 0x75, 0x73, 0x69, 0x42, 0x75, 0x66, 0x66, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x08, 0x62, 0x75, 0x73, 0x69, 0x42, 0x75, 0x66, 0x66, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74,
|
||||
0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x69, 0x0a, 0x07, 0x51, 0x57, 0x65, 0x62, 0x52, 0x73,
|
||||
0x70, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03,
|
||||
0x73, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65,
|
||||
0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x75, 0x73, 0x69, 0x42, 0x75, 0x66,
|
||||
0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x62, 0x75, 0x73, 0x69, 0x42, 0x75, 0x66,
|
||||
0x66, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x3b, 0x71, 0x77, 0x65, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_protocol_proto_rawDescOnce sync.Once
|
||||
file_protocol_proto_rawDescData = file_protocol_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_protocol_proto_rawDescGZIP() []byte {
|
||||
file_protocol_proto_rawDescOnce.Do(func() {
|
||||
file_protocol_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocol_proto_rawDescData)
|
||||
})
|
||||
return file_protocol_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_protocol_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_protocol_proto_goTypes = []interface{}{
|
||||
(*QWebReq)(nil), // 0: QWebReq
|
||||
(*QWebRsp)(nil), // 1: QWebRsp
|
||||
}
|
||||
var file_protocol_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protocol_proto_init() }
|
||||
func file_protocol_proto_init() {
|
||||
if File_protocol_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_protocol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*QWebReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_protocol_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*QWebRsp); 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_protocol_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_protocol_proto_goTypes,
|
||||
DependencyIndexes: file_protocol_proto_depIdxs,
|
||||
MessageInfos: file_protocol_proto_msgTypes,
|
||||
}.Build()
|
||||
File_protocol_proto = out.File
|
||||
file_protocol_proto_rawDesc = nil
|
||||
file_protocol_proto_goTypes = nil
|
||||
file_protocol_proto_depIdxs = nil
|
||||
}
|
18
client/pb/qweb/protocol.proto
Normal file
18
client/pb/qweb/protocol.proto
Normal file
@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = ".;qweb";
|
||||
|
||||
message QWebReq {
|
||||
int64 seq = 1;
|
||||
string qua = 2;
|
||||
string deviceInfo = 3;
|
||||
bytes busiBuff = 4;
|
||||
string traceId = 5;
|
||||
}
|
||||
|
||||
message QWebRsp {
|
||||
int64 seq = 1;
|
||||
int64 retCode = 2;
|
||||
string errMsg = 3;
|
||||
bytes busiBuff = 4;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user