types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RspMeta

type RspMeta struct {
	Code       int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`                               // 错误码,在 http code 大于等于 400 时返回
	Msg        string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`                                  // 错误信息
	Detail     string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`                            // 错误详情,测试环境才会返回
	TraceId    string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`           // 请求唯一标识
	ServerTime int64  `protobuf:"varint,5,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` // 服务器时间
	// contains filtered or unexported fields
}

func (*RspMeta) Descriptor deprecated

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

Deprecated: Use RspMeta.ProtoReflect.Descriptor instead.

func (*RspMeta) GetCode

func (x *RspMeta) GetCode() int32

func (*RspMeta) GetDetail

func (x *RspMeta) GetDetail() string

func (*RspMeta) GetMsg

func (x *RspMeta) GetMsg() string

func (*RspMeta) GetServerTime

func (x *RspMeta) GetServerTime() int64

func (*RspMeta) GetTraceId

func (x *RspMeta) GetTraceId() string

func (*RspMeta) ProtoMessage

func (*RspMeta) ProtoMessage()

func (*RspMeta) ProtoReflect

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

func (*RspMeta) Reset

func (x *RspMeta) Reset()

func (*RspMeta) String

func (x *RspMeta) String() string

Jump to

Keyboard shortcuts

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