shop_business

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package shop_business is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	RetCode_name = map[int32]string{
		0:     "SUCCESS",
		500:   "ERROR",
		50001: "USER_NOT_EXIST",
		50002: "USER_EXIST",
		50003: "MERCHANT_NOT_EXIST",
		50004: "MERCHANT_EXIST",
		50005: "SHOP_NOT_EXIST",
		50006: "SHOP_EXIST",
	}
	RetCode_value = map[string]int32{
		"SUCCESS":            0,
		"ERROR":              500,
		"USER_NOT_EXIST":     50001,
		"USER_EXIST":         50002,
		"MERCHANT_NOT_EXIST": 50003,
		"MERCHANT_EXIST":     50004,
		"SHOP_NOT_EXIST":     50005,
		"SHOP_EXIST":         50006,
	}
)

Enum value maps for RetCode.

View Source
var (
	OperationType_name = map[int32]string{
		0: "CREATE",
		1: "UPDATE",
		2: "DELETE",
		3: "AUDIT",
	}
	OperationType_value = map[string]int32{
		"CREATE": 0,
		"UPDATE": 1,
		"DELETE": 2,
		"AUDIT":  3,
	}
)

Enum value maps for OperationType.

View Source
var (
	CoinType_name = map[int32]string{
		0: "CNY",
		1: "USD",
		2: "HKD",
		3: "EUR",
	}
	CoinType_value = map[string]int32{
		"CNY": 0,
		"USD": 1,
		"HKD": 2,
		"EUR": 3,
	}
)

Enum value maps for CoinType.

View Source
var File_proto_micro_mall_shop_proto_shop_business_shop_business_proto protoreflect.FileDescriptor

Functions

func RegisterShopBusinessServiceHandler

func RegisterShopBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterShopBusinessServiceHandler registers the http handlers for service ShopBusinessService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterShopBusinessServiceHandlerClient

func RegisterShopBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ShopBusinessServiceClient) error

RegisterShopBusinessServiceHandlerClient registers the http handlers for service ShopBusinessService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ShopBusinessServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ShopBusinessServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ShopBusinessServiceClient" to call the correct interceptors.

func RegisterShopBusinessServiceHandlerFromEndpoint

func RegisterShopBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterShopBusinessServiceHandlerFromEndpoint is same as RegisterShopBusinessServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterShopBusinessServiceHandlerServer

func RegisterShopBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ShopBusinessServiceServer) error

RegisterShopBusinessServiceHandlerServer registers the http handlers for service ShopBusinessService to "mux". UnaryRPC :call ShopBusinessServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterShopBusinessServiceHandlerFromEndpoint instead.

func RegisterShopBusinessServiceServer

func RegisterShopBusinessServiceServer(s *grpc.Server, srv ShopBusinessServiceServer)

Types

type CoinType

type CoinType int32
const (
	CoinType_CNY CoinType = 0 // 人民币
	CoinType_USD CoinType = 1 // 美元
	CoinType_HKD CoinType = 2 // 港币
	CoinType_EUR CoinType = 3 // 欧元
)

func (CoinType) Descriptor

func (CoinType) Descriptor() protoreflect.EnumDescriptor

func (CoinType) Enum

func (x CoinType) Enum() *CoinType

func (CoinType) EnumDescriptor deprecated

func (CoinType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CoinType.Descriptor instead.

func (CoinType) Number

func (x CoinType) Number() protoreflect.EnumNumber

func (CoinType) String

func (x CoinType) String() string

func (CoinType) Type

type CommonResponse

type CommonResponse struct {
	Code RetCode `protobuf:"varint,1,opt,name=code,proto3,enum=shop_business.RetCode" json:"code,omitempty"`
	Msg  string  `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonResponse) Descriptor deprecated

func (*CommonResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.

func (*CommonResponse) GetCode

func (x *CommonResponse) GetCode() RetCode

func (*CommonResponse) GetMsg

func (x *CommonResponse) GetMsg() string

func (*CommonResponse) ProtoMessage

func (*CommonResponse) ProtoMessage()

func (*CommonResponse) ProtoReflect

func (x *CommonResponse) ProtoReflect() protoreflect.Message

func (*CommonResponse) Reset

func (x *CommonResponse) Reset()

func (*CommonResponse) String

func (x *CommonResponse) String() string

type GetShopInfoRequest

type GetShopInfoRequest struct {
	ShopIds []int64 `protobuf:"varint,1,rep,packed,name=shop_ids,json=shopIds,proto3" json:"shop_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopInfoRequest) Descriptor deprecated

func (*GetShopInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetShopInfoRequest.ProtoReflect.Descriptor instead.

func (*GetShopInfoRequest) GetShopIds

func (x *GetShopInfoRequest) GetShopIds() []int64

func (*GetShopInfoRequest) ProtoMessage

func (*GetShopInfoRequest) ProtoMessage()

func (*GetShopInfoRequest) ProtoReflect

func (x *GetShopInfoRequest) ProtoReflect() protoreflect.Message

func (*GetShopInfoRequest) Reset

func (x *GetShopInfoRequest) Reset()

func (*GetShopInfoRequest) String

func (x *GetShopInfoRequest) String() string

type GetShopInfoResponse

type GetShopInfoResponse struct {
	Common   *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	InfoList []*ShopInfo     `protobuf:"bytes,2,rep,name=info_list,json=infoList,proto3" json:"info_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopInfoResponse) Descriptor deprecated

func (*GetShopInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetShopInfoResponse.ProtoReflect.Descriptor instead.

func (*GetShopInfoResponse) GetCommon

func (x *GetShopInfoResponse) GetCommon() *CommonResponse

func (*GetShopInfoResponse) GetInfoList

func (x *GetShopInfoResponse) GetInfoList() []*ShopInfo

func (*GetShopInfoResponse) ProtoMessage

func (*GetShopInfoResponse) ProtoMessage()

func (*GetShopInfoResponse) ProtoReflect

func (x *GetShopInfoResponse) ProtoReflect() protoreflect.Message

func (*GetShopInfoResponse) Reset

func (x *GetShopInfoResponse) Reset()

func (*GetShopInfoResponse) String

func (x *GetShopInfoResponse) String() string

type GetShopMajorInfoRequest

type GetShopMajorInfoRequest struct {
	ShopIds []int64 `protobuf:"varint,1,rep,packed,name=shop_ids,json=shopIds,proto3" json:"shop_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopMajorInfoRequest) Descriptor deprecated

func (*GetShopMajorInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetShopMajorInfoRequest.ProtoReflect.Descriptor instead.

func (*GetShopMajorInfoRequest) GetShopIds

func (x *GetShopMajorInfoRequest) GetShopIds() []int64

func (*GetShopMajorInfoRequest) ProtoMessage

func (*GetShopMajorInfoRequest) ProtoMessage()

func (*GetShopMajorInfoRequest) ProtoReflect

func (x *GetShopMajorInfoRequest) ProtoReflect() protoreflect.Message

func (*GetShopMajorInfoRequest) Reset

func (x *GetShopMajorInfoRequest) Reset()

func (*GetShopMajorInfoRequest) String

func (x *GetShopMajorInfoRequest) String() string

type GetShopMajorInfoResponse

type GetShopMajorInfoResponse struct {
	Common   *CommonResponse  `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	InfoList []*ShopMajorInfo `protobuf:"bytes,2,rep,name=info_list,json=infoList,proto3" json:"info_list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopMajorInfoResponse) Descriptor deprecated

func (*GetShopMajorInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetShopMajorInfoResponse.ProtoReflect.Descriptor instead.

func (*GetShopMajorInfoResponse) GetCommon

func (x *GetShopMajorInfoResponse) GetCommon() *CommonResponse

func (*GetShopMajorInfoResponse) GetInfoList

func (x *GetShopMajorInfoResponse) GetInfoList() []*ShopMajorInfo

func (*GetShopMajorInfoResponse) ProtoMessage

func (*GetShopMajorInfoResponse) ProtoMessage()

func (*GetShopMajorInfoResponse) ProtoReflect

func (x *GetShopMajorInfoResponse) ProtoReflect() protoreflect.Message

func (*GetShopMajorInfoResponse) Reset

func (x *GetShopMajorInfoResponse) Reset()

func (*GetShopMajorInfoResponse) String

func (x *GetShopMajorInfoResponse) String() string

type GetShopMaterialRequest

type GetShopMaterialRequest struct {
	ShopId int64 `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopMaterialRequest) Descriptor deprecated

func (*GetShopMaterialRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetShopMaterialRequest.ProtoReflect.Descriptor instead.

func (*GetShopMaterialRequest) GetShopId

func (x *GetShopMaterialRequest) GetShopId() int64

func (*GetShopMaterialRequest) ProtoMessage

func (*GetShopMaterialRequest) ProtoMessage()

func (*GetShopMaterialRequest) ProtoReflect

func (x *GetShopMaterialRequest) ProtoReflect() protoreflect.Message

func (*GetShopMaterialRequest) Reset

func (x *GetShopMaterialRequest) Reset()

func (*GetShopMaterialRequest) String

func (x *GetShopMaterialRequest) String() string

type GetShopMaterialResponse

type GetShopMaterialResponse struct {
	Common   *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	Material *ShopMaterial   `protobuf:"bytes,2,opt,name=material,proto3" json:"material,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShopMaterialResponse) Descriptor deprecated

func (*GetShopMaterialResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetShopMaterialResponse.ProtoReflect.Descriptor instead.

func (*GetShopMaterialResponse) GetCommon

func (x *GetShopMaterialResponse) GetCommon() *CommonResponse

func (*GetShopMaterialResponse) GetMaterial

func (x *GetShopMaterialResponse) GetMaterial() *ShopMaterial

func (*GetShopMaterialResponse) ProtoMessage

func (*GetShopMaterialResponse) ProtoMessage()

func (*GetShopMaterialResponse) ProtoReflect

func (x *GetShopMaterialResponse) ProtoReflect() protoreflect.Message

func (*GetShopMaterialResponse) Reset

func (x *GetShopMaterialResponse) Reset()

func (*GetShopMaterialResponse) String

func (x *GetShopMaterialResponse) String() string

type OperationType

type OperationType int32
const (
	OperationType_CREATE OperationType = 0
	OperationType_UPDATE OperationType = 1
	OperationType_DELETE OperationType = 2
	OperationType_AUDIT  OperationType = 3
)

func (OperationType) Descriptor

func (OperationType) Enum

func (x OperationType) Enum() *OperationType

func (OperationType) EnumDescriptor deprecated

func (OperationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OperationType.Descriptor instead.

func (OperationType) Number

func (OperationType) String

func (x OperationType) String() string

func (OperationType) Type

type RetCode

type RetCode int32
const (
	RetCode_SUCCESS            RetCode = 0
	RetCode_ERROR              RetCode = 500
	RetCode_USER_NOT_EXIST     RetCode = 50001
	RetCode_USER_EXIST         RetCode = 50002
	RetCode_MERCHANT_NOT_EXIST RetCode = 50003
	RetCode_MERCHANT_EXIST     RetCode = 50004
	RetCode_SHOP_NOT_EXIST     RetCode = 50005
	RetCode_SHOP_EXIST         RetCode = 50006
)

func (RetCode) Descriptor

func (RetCode) Descriptor() protoreflect.EnumDescriptor

func (RetCode) Enum

func (x RetCode) Enum() *RetCode

func (RetCode) EnumDescriptor deprecated

func (RetCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetCode.Descriptor instead.

func (RetCode) Number

func (x RetCode) Number() protoreflect.EnumNumber

func (RetCode) String

func (x RetCode) String() string

func (RetCode) Type

func (RetCode) Type() protoreflect.EnumType

type SearchShopInfo

type SearchShopInfo struct {
	Info  *ShopMaterial `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Score float64       `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchShopInfo) Descriptor deprecated

func (*SearchShopInfo) Descriptor() ([]byte, []int)

Deprecated: Use SearchShopInfo.ProtoReflect.Descriptor instead.

func (*SearchShopInfo) GetInfo

func (x *SearchShopInfo) GetInfo() *ShopMaterial

func (*SearchShopInfo) GetScore

func (x *SearchShopInfo) GetScore() float64

func (*SearchShopInfo) ProtoMessage

func (*SearchShopInfo) ProtoMessage()

func (*SearchShopInfo) ProtoReflect

func (x *SearchShopInfo) ProtoReflect() protoreflect.Message

func (*SearchShopInfo) Reset

func (x *SearchShopInfo) Reset()

func (*SearchShopInfo) String

func (x *SearchShopInfo) String() string

type SearchShopRequest

type SearchShopRequest struct {
	Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchShopRequest) Descriptor deprecated

func (*SearchShopRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchShopRequest.ProtoReflect.Descriptor instead.

func (*SearchShopRequest) GetKeyword

func (x *SearchShopRequest) GetKeyword() string

func (*SearchShopRequest) ProtoMessage

func (*SearchShopRequest) ProtoMessage()

func (*SearchShopRequest) ProtoReflect

func (x *SearchShopRequest) ProtoReflect() protoreflect.Message

func (*SearchShopRequest) Reset

func (x *SearchShopRequest) Reset()

func (*SearchShopRequest) String

func (x *SearchShopRequest) String() string

type SearchShopResponse

type SearchShopResponse struct {
	Common *CommonResponse   `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	List   []*SearchShopInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchShopResponse) Descriptor deprecated

func (*SearchShopResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchShopResponse.ProtoReflect.Descriptor instead.

func (*SearchShopResponse) GetCommon

func (x *SearchShopResponse) GetCommon() *CommonResponse

func (*SearchShopResponse) GetList

func (x *SearchShopResponse) GetList() []*SearchShopInfo

func (*SearchShopResponse) ProtoMessage

func (*SearchShopResponse) ProtoMessage()

func (*SearchShopResponse) ProtoReflect

func (x *SearchShopResponse) ProtoReflect() protoreflect.Message

func (*SearchShopResponse) Reset

func (x *SearchShopResponse) Reset()

func (*SearchShopResponse) String

func (x *SearchShopResponse) String() string

type SearchSyncShopEntry

type SearchSyncShopEntry struct {
	ShopId       int64  `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	NickName     string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	FullName     string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	ShopCode     string `protobuf:"bytes,4,opt,name=shop_code,json=shopCode,proto3" json:"shop_code,omitempty"`
	RegisterAddr string `protobuf:"bytes,5,opt,name=register_addr,json=registerAddr,proto3" json:"register_addr,omitempty"`
	BusinessAddr string `protobuf:"bytes,6,opt,name=business_addr,json=businessAddr,proto3" json:"business_addr,omitempty"`
	BusinessDesc string `protobuf:"bytes,7,opt,name=business_desc,json=businessDesc,proto3" json:"business_desc,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchSyncShopEntry) Descriptor deprecated

func (*SearchSyncShopEntry) Descriptor() ([]byte, []int)

Deprecated: Use SearchSyncShopEntry.ProtoReflect.Descriptor instead.

func (*SearchSyncShopEntry) GetBusinessAddr

func (x *SearchSyncShopEntry) GetBusinessAddr() string

func (*SearchSyncShopEntry) GetBusinessDesc

func (x *SearchSyncShopEntry) GetBusinessDesc() string

func (*SearchSyncShopEntry) GetFullName

func (x *SearchSyncShopEntry) GetFullName() string

func (*SearchSyncShopEntry) GetNickName

func (x *SearchSyncShopEntry) GetNickName() string

func (*SearchSyncShopEntry) GetRegisterAddr

func (x *SearchSyncShopEntry) GetRegisterAddr() string

func (*SearchSyncShopEntry) GetShopCode

func (x *SearchSyncShopEntry) GetShopCode() string

func (*SearchSyncShopEntry) GetShopId

func (x *SearchSyncShopEntry) GetShopId() int64

func (*SearchSyncShopEntry) ProtoMessage

func (*SearchSyncShopEntry) ProtoMessage()

func (*SearchSyncShopEntry) ProtoReflect

func (x *SearchSyncShopEntry) ProtoReflect() protoreflect.Message

func (*SearchSyncShopEntry) Reset

func (x *SearchSyncShopEntry) Reset()

func (*SearchSyncShopEntry) String

func (x *SearchSyncShopEntry) String() string

type SearchSyncShopRequest

type SearchSyncShopRequest struct {
	ShopId   int64 `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` // 为0则同步全部
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageNum  int64 `protobuf:"varint,3,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchSyncShopRequest) Descriptor deprecated

func (*SearchSyncShopRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchSyncShopRequest.ProtoReflect.Descriptor instead.

func (*SearchSyncShopRequest) GetPageNum

func (x *SearchSyncShopRequest) GetPageNum() int64

func (*SearchSyncShopRequest) GetPageSize

func (x *SearchSyncShopRequest) GetPageSize() int64

func (*SearchSyncShopRequest) GetShopId

func (x *SearchSyncShopRequest) GetShopId() int64

func (*SearchSyncShopRequest) ProtoMessage

func (*SearchSyncShopRequest) ProtoMessage()

func (*SearchSyncShopRequest) ProtoReflect

func (x *SearchSyncShopRequest) ProtoReflect() protoreflect.Message

func (*SearchSyncShopRequest) Reset

func (x *SearchSyncShopRequest) Reset()

func (*SearchSyncShopRequest) String

func (x *SearchSyncShopRequest) String() string

type SearchSyncShopResponse

type SearchSyncShopResponse struct {
	Common *CommonResponse        `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	List   []*SearchSyncShopEntry `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchSyncShopResponse) Descriptor deprecated

func (*SearchSyncShopResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchSyncShopResponse.ProtoReflect.Descriptor instead.

func (*SearchSyncShopResponse) GetCommon

func (x *SearchSyncShopResponse) GetCommon() *CommonResponse

func (*SearchSyncShopResponse) GetList

func (*SearchSyncShopResponse) ProtoMessage

func (*SearchSyncShopResponse) ProtoMessage()

func (*SearchSyncShopResponse) ProtoReflect

func (x *SearchSyncShopResponse) ProtoReflect() protoreflect.Message

func (*SearchSyncShopResponse) Reset

func (x *SearchSyncShopResponse) Reset()

func (*SearchSyncShopResponse) String

func (x *SearchSyncShopResponse) String() string

type ShopApplyRequest

type ShopApplyRequest struct {
	OperationType    OperationType ``                                                                              /* 134-byte string literal not displayed */
	OpUid            int64         `protobuf:"varint,2,opt,name=op_uid,json=opUid,proto3" json:"op_uid,omitempty"` // 操作员
	OpIp             string        `protobuf:"bytes,3,opt,name=op_ip,json=opIp,proto3" json:"op_ip,omitempty"`     // 操作员IP
	ShopId           int64         `protobuf:"varint,4,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	MerchantId       int64         `protobuf:"varint,5,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` // 店铺法人
	NickName         string        `protobuf:"bytes,6,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	FullName         string        `protobuf:"bytes,7,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	RegisterAddr     string        `protobuf:"bytes,8,opt,name=register_addr,json=registerAddr,proto3" json:"register_addr,omitempty"`
	BusinessAddr     string        `protobuf:"bytes,9,opt,name=business_addr,json=businessAddr,proto3" json:"business_addr,omitempty"`
	BusinessLicense  string        `protobuf:"bytes,10,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
	TaxCardNo        string        `protobuf:"bytes,11,opt,name=tax_card_no,json=taxCardNo,proto3" json:"tax_card_no,omitempty"`
	BusinessDesc     string        `protobuf:"bytes,12,opt,name=business_desc,json=businessDesc,proto3" json:"business_desc,omitempty"`
	SocialCreditCode string        `protobuf:"bytes,13,opt,name=social_credit_code,json=socialCreditCode,proto3" json:"social_credit_code,omitempty"`
	OrganizationCode string        `protobuf:"bytes,14,opt,name=organization_code,json=organizationCode,proto3" json:"organization_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopApplyRequest) Descriptor deprecated

func (*ShopApplyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShopApplyRequest.ProtoReflect.Descriptor instead.

func (*ShopApplyRequest) GetBusinessAddr

func (x *ShopApplyRequest) GetBusinessAddr() string

func (*ShopApplyRequest) GetBusinessDesc

func (x *ShopApplyRequest) GetBusinessDesc() string

func (*ShopApplyRequest) GetBusinessLicense

func (x *ShopApplyRequest) GetBusinessLicense() string

func (*ShopApplyRequest) GetFullName

func (x *ShopApplyRequest) GetFullName() string

func (*ShopApplyRequest) GetMerchantId

func (x *ShopApplyRequest) GetMerchantId() int64

func (*ShopApplyRequest) GetNickName

func (x *ShopApplyRequest) GetNickName() string

func (*ShopApplyRequest) GetOpIp

func (x *ShopApplyRequest) GetOpIp() string

func (*ShopApplyRequest) GetOpUid

func (x *ShopApplyRequest) GetOpUid() int64

func (*ShopApplyRequest) GetOperationType

func (x *ShopApplyRequest) GetOperationType() OperationType

func (*ShopApplyRequest) GetOrganizationCode

func (x *ShopApplyRequest) GetOrganizationCode() string

func (*ShopApplyRequest) GetRegisterAddr

func (x *ShopApplyRequest) GetRegisterAddr() string

func (*ShopApplyRequest) GetShopId

func (x *ShopApplyRequest) GetShopId() int64

func (*ShopApplyRequest) GetSocialCreditCode

func (x *ShopApplyRequest) GetSocialCreditCode() string

func (*ShopApplyRequest) GetTaxCardNo

func (x *ShopApplyRequest) GetTaxCardNo() string

func (*ShopApplyRequest) ProtoMessage

func (*ShopApplyRequest) ProtoMessage()

func (*ShopApplyRequest) ProtoReflect

func (x *ShopApplyRequest) ProtoReflect() protoreflect.Message

func (*ShopApplyRequest) Reset

func (x *ShopApplyRequest) Reset()

func (*ShopApplyRequest) String

func (x *ShopApplyRequest) String() string

type ShopApplyResponse

type ShopApplyResponse struct {
	Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	ShopId int64           `protobuf:"varint,2,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopApplyResponse) Descriptor deprecated

func (*ShopApplyResponse) Descriptor() ([]byte, []int)

Deprecated: Use ShopApplyResponse.ProtoReflect.Descriptor instead.

func (*ShopApplyResponse) GetCommon

func (x *ShopApplyResponse) GetCommon() *CommonResponse

func (*ShopApplyResponse) GetShopId

func (x *ShopApplyResponse) GetShopId() int64

func (*ShopApplyResponse) ProtoMessage

func (*ShopApplyResponse) ProtoMessage()

func (*ShopApplyResponse) ProtoReflect

func (x *ShopApplyResponse) ProtoReflect() protoreflect.Message

func (*ShopApplyResponse) Reset

func (x *ShopApplyResponse) Reset()

func (*ShopApplyResponse) String

func (x *ShopApplyResponse) String() string

type ShopBusinessServiceClient

type ShopBusinessServiceClient interface {
	// 提交店铺申请材料
	ShopApply(ctx context.Context, in *ShopApplyRequest, opts ...grpc.CallOption) (*ShopApplyResponse, error)
	// 店铺质押保证金
	ShopPledge(ctx context.Context, in *ShopPledgeRequest, opts ...grpc.CallOption) (*ShopPledgeResponse, error)
	// 获取店铺材料
	GetShopMaterial(ctx context.Context, in *GetShopMaterialRequest, opts ...grpc.CallOption) (*GetShopMaterialResponse, error)
	// 获取店铺数据
	GetShopInfo(ctx context.Context, in *GetShopInfoRequest, opts ...grpc.CallOption) (*GetShopInfoResponse, error)
	// 搜索同步店铺数据
	SearchSyncShop(ctx context.Context, in *SearchSyncShopRequest, opts ...grpc.CallOption) (*SearchSyncShopResponse, error)
	// 搜索店铺
	SearchShop(ctx context.Context, in *SearchShopRequest, opts ...grpc.CallOption) (*SearchShopResponse, error)
	// 获取店铺主要信息
	GetShopMajorInfo(ctx context.Context, in *GetShopMajorInfoRequest, opts ...grpc.CallOption) (*GetShopMajorInfoResponse, error)
}

ShopBusinessServiceClient is the client API for ShopBusinessService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ShopBusinessServiceServer

type ShopBusinessServiceServer interface {
	// 提交店铺申请材料
	ShopApply(context.Context, *ShopApplyRequest) (*ShopApplyResponse, error)
	// 店铺质押保证金
	ShopPledge(context.Context, *ShopPledgeRequest) (*ShopPledgeResponse, error)
	// 获取店铺材料
	GetShopMaterial(context.Context, *GetShopMaterialRequest) (*GetShopMaterialResponse, error)
	// 获取店铺数据
	GetShopInfo(context.Context, *GetShopInfoRequest) (*GetShopInfoResponse, error)
	// 搜索同步店铺数据
	SearchSyncShop(context.Context, *SearchSyncShopRequest) (*SearchSyncShopResponse, error)
	// 搜索店铺
	SearchShop(context.Context, *SearchShopRequest) (*SearchShopResponse, error)
	// 获取店铺主要信息
	GetShopMajorInfo(context.Context, *GetShopMajorInfoRequest) (*GetShopMajorInfoResponse, error)
}

ShopBusinessServiceServer is the server API for ShopBusinessService service.

type ShopInfo

type ShopInfo struct {
	ShopId     int64  `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	MerchantId int64  `protobuf:"varint,5,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` // 店铺法人
	FullName   string `protobuf:"bytes,6,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	ShopCode   string `protobuf:"bytes,7,opt,name=shop_code,json=shopCode,proto3" json:"shop_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopInfo) Descriptor deprecated

func (*ShopInfo) Descriptor() ([]byte, []int)

Deprecated: Use ShopInfo.ProtoReflect.Descriptor instead.

func (*ShopInfo) GetFullName

func (x *ShopInfo) GetFullName() string

func (*ShopInfo) GetMerchantId

func (x *ShopInfo) GetMerchantId() int64

func (*ShopInfo) GetShopCode

func (x *ShopInfo) GetShopCode() string

func (*ShopInfo) GetShopId

func (x *ShopInfo) GetShopId() int64

func (*ShopInfo) ProtoMessage

func (*ShopInfo) ProtoMessage()

func (*ShopInfo) ProtoReflect

func (x *ShopInfo) ProtoReflect() protoreflect.Message

func (*ShopInfo) Reset

func (x *ShopInfo) Reset()

func (*ShopInfo) String

func (x *ShopInfo) String() string

type ShopMajorInfo

type ShopMajorInfo struct {
	ShopId   int64  `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	ShopCode string `protobuf:"bytes,2,opt,name=shop_code,json=shopCode,proto3" json:"shop_code,omitempty"`
	ShopName string `protobuf:"bytes,3,opt,name=shop_name,json=shopName,proto3" json:"shop_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopMajorInfo) Descriptor deprecated

func (*ShopMajorInfo) Descriptor() ([]byte, []int)

Deprecated: Use ShopMajorInfo.ProtoReflect.Descriptor instead.

func (*ShopMajorInfo) GetShopCode

func (x *ShopMajorInfo) GetShopCode() string

func (*ShopMajorInfo) GetShopId

func (x *ShopMajorInfo) GetShopId() int64

func (*ShopMajorInfo) GetShopName

func (x *ShopMajorInfo) GetShopName() string

func (*ShopMajorInfo) ProtoMessage

func (*ShopMajorInfo) ProtoMessage()

func (*ShopMajorInfo) ProtoReflect

func (x *ShopMajorInfo) ProtoReflect() protoreflect.Message

func (*ShopMajorInfo) Reset

func (x *ShopMajorInfo) Reset()

func (*ShopMajorInfo) String

func (x *ShopMajorInfo) String() string

type ShopMaterial

type ShopMaterial struct {
	ShopId           int64  `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	MerchantId       int64  `protobuf:"varint,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` // 店铺法人
	NickName         string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	FullName         string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	RegisterAddr     string `protobuf:"bytes,5,opt,name=register_addr,json=registerAddr,proto3" json:"register_addr,omitempty"`
	BusinessAddr     string `protobuf:"bytes,6,opt,name=business_addr,json=businessAddr,proto3" json:"business_addr,omitempty"`
	BusinessLicense  string `protobuf:"bytes,7,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
	TaxCardNo        string `protobuf:"bytes,8,opt,name=tax_card_no,json=taxCardNo,proto3" json:"tax_card_no,omitempty"`
	BusinessDesc     string `protobuf:"bytes,9,opt,name=business_desc,json=businessDesc,proto3" json:"business_desc,omitempty"`
	SocialCreditCode string `protobuf:"bytes,10,opt,name=social_credit_code,json=socialCreditCode,proto3" json:"social_credit_code,omitempty"`
	OrganizationCode string `protobuf:"bytes,11,opt,name=organization_code,json=organizationCode,proto3" json:"organization_code,omitempty"`
	ShopCode         string `protobuf:"bytes,12,opt,name=shop_code,json=shopCode,proto3" json:"shop_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopMaterial) Descriptor deprecated

func (*ShopMaterial) Descriptor() ([]byte, []int)

Deprecated: Use ShopMaterial.ProtoReflect.Descriptor instead.

func (*ShopMaterial) GetBusinessAddr

func (x *ShopMaterial) GetBusinessAddr() string

func (*ShopMaterial) GetBusinessDesc

func (x *ShopMaterial) GetBusinessDesc() string

func (*ShopMaterial) GetBusinessLicense

func (x *ShopMaterial) GetBusinessLicense() string

func (*ShopMaterial) GetFullName

func (x *ShopMaterial) GetFullName() string

func (*ShopMaterial) GetMerchantId

func (x *ShopMaterial) GetMerchantId() int64

func (*ShopMaterial) GetNickName

func (x *ShopMaterial) GetNickName() string

func (*ShopMaterial) GetOrganizationCode

func (x *ShopMaterial) GetOrganizationCode() string

func (*ShopMaterial) GetRegisterAddr

func (x *ShopMaterial) GetRegisterAddr() string

func (*ShopMaterial) GetShopCode

func (x *ShopMaterial) GetShopCode() string

func (*ShopMaterial) GetShopId

func (x *ShopMaterial) GetShopId() int64

func (*ShopMaterial) GetSocialCreditCode

func (x *ShopMaterial) GetSocialCreditCode() string

func (*ShopMaterial) GetTaxCardNo

func (x *ShopMaterial) GetTaxCardNo() string

func (*ShopMaterial) ProtoMessage

func (*ShopMaterial) ProtoMessage()

func (*ShopMaterial) ProtoReflect

func (x *ShopMaterial) ProtoReflect() protoreflect.Message

func (*ShopMaterial) Reset

func (x *ShopMaterial) Reset()

func (*ShopMaterial) String

func (x *ShopMaterial) String() string

type ShopPledgeRequest

type ShopPledgeRequest struct {
	OpUid    int64    `protobuf:"varint,1,opt,name=op_uid,json=opUid,proto3" json:"op_uid,omitempty"` // 操作员
	OpIp     string   `protobuf:"bytes,2,opt,name=op_ip,json=opIp,proto3" json:"op_ip,omitempty"`     // 操作员IP
	ShopId   int64    `protobuf:"varint,3,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
	Amount   string   `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	CoinType CoinType `protobuf:"varint,5,opt,name=coin_type,json=coinType,proto3,enum=shop_business.CoinType" json:"coin_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopPledgeRequest) Descriptor deprecated

func (*ShopPledgeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShopPledgeRequest.ProtoReflect.Descriptor instead.

func (*ShopPledgeRequest) GetAmount

func (x *ShopPledgeRequest) GetAmount() string

func (*ShopPledgeRequest) GetCoinType

func (x *ShopPledgeRequest) GetCoinType() CoinType

func (*ShopPledgeRequest) GetOpIp

func (x *ShopPledgeRequest) GetOpIp() string

func (*ShopPledgeRequest) GetOpUid

func (x *ShopPledgeRequest) GetOpUid() int64

func (*ShopPledgeRequest) GetShopId

func (x *ShopPledgeRequest) GetShopId() int64

func (*ShopPledgeRequest) ProtoMessage

func (*ShopPledgeRequest) ProtoMessage()

func (*ShopPledgeRequest) ProtoReflect

func (x *ShopPledgeRequest) ProtoReflect() protoreflect.Message

func (*ShopPledgeRequest) Reset

func (x *ShopPledgeRequest) Reset()

func (*ShopPledgeRequest) String

func (x *ShopPledgeRequest) String() string

type ShopPledgeResponse

type ShopPledgeResponse struct {
	Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	State  int32           `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ShopPledgeResponse) Descriptor deprecated

func (*ShopPledgeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ShopPledgeResponse.ProtoReflect.Descriptor instead.

func (*ShopPledgeResponse) GetCommon

func (x *ShopPledgeResponse) GetCommon() *CommonResponse

func (*ShopPledgeResponse) GetState

func (x *ShopPledgeResponse) GetState() int32

func (*ShopPledgeResponse) ProtoMessage

func (*ShopPledgeResponse) ProtoMessage()

func (*ShopPledgeResponse) ProtoReflect

func (x *ShopPledgeResponse) ProtoReflect() protoreflect.Message

func (*ShopPledgeResponse) Reset

func (x *ShopPledgeResponse) Reset()

func (*ShopPledgeResponse) String

func (x *ShopPledgeResponse) String() string

type UnimplementedShopBusinessServiceServer

type UnimplementedShopBusinessServiceServer struct {
}

UnimplementedShopBusinessServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedShopBusinessServiceServer) GetShopInfo

func (*UnimplementedShopBusinessServiceServer) GetShopMajorInfo

func (*UnimplementedShopBusinessServiceServer) GetShopMaterial

func (*UnimplementedShopBusinessServiceServer) SearchShop

func (*UnimplementedShopBusinessServiceServer) SearchSyncShop

func (*UnimplementedShopBusinessServiceServer) ShopApply

func (*UnimplementedShopBusinessServiceServer) ShopPledge

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL