Documentation
¶
Index ¶
- Variables
- type RspMeta
- func (*RspMeta) Descriptor() ([]byte, []int)deprecated
- func (x *RspMeta) GetCode() int32
- func (x *RspMeta) GetDetail() string
- func (x *RspMeta) GetMsg() string
- func (x *RspMeta) GetServerTime() int64
- func (x *RspMeta) GetTraceId() string
- func (*RspMeta) ProtoMessage()
- func (x *RspMeta) ProtoReflect() protoreflect.Message
- func (x *RspMeta) Reset()
- func (x *RspMeta) String() string
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) GetServerTime ¶
func (*RspMeta) GetTraceId ¶
func (*RspMeta) ProtoMessage ¶
func (*RspMeta) ProtoMessage()
func (*RspMeta) ProtoReflect ¶
func (x *RspMeta) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.