service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_testentity_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GoService

type GoService interface {
	Concat(req StringRequest, ret *string) error
	Diff(req StringRequest, ret *string) error
	Test(req model.TSysUser, ret *model.TSysUser) error
}

type Req

type Req struct {
	// 类型 字段 = 标识号
	JsonStr              string   `protobuf:"bytes,1,opt,name=jsonStr,proto3" json:"jsonStr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

定义 Req 消息结构

func (*Req) Descriptor

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

func (*Req) GetJsonStr

func (m *Req) GetJsonStr() string

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) Reset

func (m *Req) Reset()

func (*Req) String

func (m *Req) String() string

func (*Req) XXX_DiscardUnknown

func (m *Req) XXX_DiscardUnknown()

func (*Req) XXX_Marshal

func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Req) XXX_Merge

func (m *Req) XXX_Merge(src proto.Message)

func (*Req) XXX_Size

func (m *Req) XXX_Size() int

func (*Req) XXX_Unmarshal

func (m *Req) XXX_Unmarshal(b []byte) error

type ReqUser

type ReqUser struct {

	// 类型 字段 = 标识号
	JsonStr string         `protobuf:"bytes,1,opt,name=jsonStr,proto3" json:"jsonStr,omitempty"`
	User    *TSysUserProto `protobuf:"bytes,2,opt,name=shop-code,proto3" json:"shop-code,omitempty"`
	// contains filtered or unexported fields
}

定义 Req 消息结构

func (*ReqUser) Descriptor deprecated

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

Deprecated: Use ReqUser.ProtoReflect.Descriptor instead.

func (*ReqUser) GetJsonStr

func (x *ReqUser) GetJsonStr() string

func (*ReqUser) GetUser

func (x *ReqUser) GetUser() *TSysUserProto

func (*ReqUser) ProtoMessage

func (*ReqUser) ProtoMessage()

func (*ReqUser) ProtoReflect

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

func (*ReqUser) Reset

func (x *ReqUser) Reset()

func (*ReqUser) String

func (x *ReqUser) String() string

type Request

type Request struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetName

func (m *Request) GetName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Res

type Res struct {
	BackJson             string   `protobuf:"bytes,1,opt,name=backJson,proto3" json:"backJson,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

定义 Res 消息结构

func (*Res) Descriptor

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

func (*Res) GetBackJson

func (m *Res) GetBackJson() string

func (*Res) ProtoMessage

func (*Res) ProtoMessage()

func (*Res) Reset

func (m *Res) Reset()

func (*Res) String

func (m *Res) String() string

func (*Res) XXX_DiscardUnknown

func (m *Res) XXX_DiscardUnknown()

func (*Res) XXX_Marshal

func (m *Res) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Res) XXX_Merge

func (m *Res) XXX_Merge(src proto.Message)

func (*Res) XXX_Size

func (m *Res) XXX_Size() int

func (*Res) XXX_Unmarshal

func (m *Res) XXX_Unmarshal(b []byte) error

type ResUser

type ResUser struct {
	BackJson string         `protobuf:"bytes,1,opt,name=backJson,proto3" json:"backJson,omitempty"`
	User     *TSysUserProto `protobuf:"bytes,2,opt,name=shop-code,proto3" json:"shop-code,omitempty"`
	// contains filtered or unexported fields
}

定义 Res 消息结构

func (*ResUser) Descriptor deprecated

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

Deprecated: Use ResUser.ProtoReflect.Descriptor instead.

func (*ResUser) GetBackJson

func (x *ResUser) GetBackJson() string

func (*ResUser) GetUser

func (x *ResUser) GetUser() *TSysUserProto

func (*ResUser) ProtoMessage

func (*ResUser) ProtoMessage()

func (*ResUser) ProtoReflect

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

func (*ResUser) Reset

func (x *ResUser) Reset()

func (*ResUser) String

func (x *ResUser) String() string

type Response

type Response struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

type StringRequest

type StringRequest struct {
	A string
	B string
}

type StringService

type StringService struct {
}

func (StringService) Concat

func (s StringService) Concat(req StringRequest, ret *string) error

func (StringService) Diff

func (s StringService) Diff(req StringRequest, ret *string) error

func (StringService) Test

func (s StringService) Test(req model.TSysUser, ret *model.TSysUser) error

type TSysUserProto

type TSysUserProto struct {
	Id         int32  `protobuf:"zigzag32,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Username   string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"`
	Passwd     string `protobuf:"bytes,3,opt,name=Passwd,proto3" json:"Passwd,omitempty"`
	Realname   string `protobuf:"bytes,4,opt,name=Realname,proto3" json:"Realname,omitempty"`
	CorpId     int32  `protobuf:"zigzag32,5,opt,name=CorpId,proto3" json:"CorpId,omitempty"`
	OrgId      int32  `protobuf:"zigzag32,6,opt,name=OrgId,proto3" json:"OrgId,omitempty"`
	MobileNo   string `protobuf:"bytes,7,opt,name=MobileNo,proto3" json:"MobileNo,omitempty"`
	Email      string `protobuf:"bytes,8,opt,name=Email,proto3" json:"Email,omitempty"`
	Status     int32  `protobuf:"zigzag32,9,opt,name=Status,proto3" json:"Status,omitempty"`
	Remark     string `protobuf:"bytes,10,opt,name=Remark,proto3" json:"Remark,omitempty"`
	CreateBy   int32  `protobuf:"zigzag32,11,opt,name=CreateBy,proto3" json:"CreateBy,omitempty"`
	CreateOn   int64  `protobuf:"fixed64,12,opt,name=CreateOn,proto3" json:"CreateOn,omitempty"`
	OpBy       int32  `protobuf:"zigzag32,13,opt,name=OpBy,proto3" json:"OpBy,omitempty"`
	OpOn       int64  `protobuf:"fixed64,14,opt,name=OpOn,proto3" json:"OpOn,omitempty"`
	ExtParams  string `protobuf:"bytes,15,opt,name=ExtParams,proto3" json:"ExtParams,omitempty"`
	EmployeeId int32  `protobuf:"zigzag32,16,opt,name=EmployeeId,proto3" json:"EmployeeId,omitempty"`
	// contains filtered or unexported fields
}

func (*TSysUserProto) Descriptor deprecated

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

Deprecated: Use TSysUserProto.ProtoReflect.Descriptor instead.

func (*TSysUserProto) GetCorpId

func (x *TSysUserProto) GetCorpId() int32

func (*TSysUserProto) GetCreateBy

func (x *TSysUserProto) GetCreateBy() int32

func (*TSysUserProto) GetCreateOn

func (x *TSysUserProto) GetCreateOn() int64

func (*TSysUserProto) GetEmail

func (x *TSysUserProto) GetEmail() string

func (*TSysUserProto) GetEmployeeId

func (x *TSysUserProto) GetEmployeeId() int32

func (*TSysUserProto) GetExtParams

func (x *TSysUserProto) GetExtParams() string

func (*TSysUserProto) GetId

func (x *TSysUserProto) GetId() int32

func (*TSysUserProto) GetMobileNo

func (x *TSysUserProto) GetMobileNo() string

func (*TSysUserProto) GetOpBy

func (x *TSysUserProto) GetOpBy() int32

func (*TSysUserProto) GetOpOn

func (x *TSysUserProto) GetOpOn() int64

func (*TSysUserProto) GetOrgId

func (x *TSysUserProto) GetOrgId() int32

func (*TSysUserProto) GetPasswd

func (x *TSysUserProto) GetPasswd() string

func (*TSysUserProto) GetRealname

func (x *TSysUserProto) GetRealname() string

func (*TSysUserProto) GetRemark

func (x *TSysUserProto) GetRemark() string

func (*TSysUserProto) GetStatus

func (x *TSysUserProto) GetStatus() int32

func (*TSysUserProto) GetUsername

func (x *TSysUserProto) GetUsername() string

func (*TSysUserProto) ProtoMessage

func (*TSysUserProto) ProtoMessage()

func (*TSysUserProto) ProtoReflect

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

func (*TSysUserProto) Reset

func (x *TSysUserProto) Reset()

func (*TSysUserProto) String

func (x *TSysUserProto) String() string

Jump to

Keyboard shortcuts

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