Files
juwan-backend/app/dispute/rpc/pb/dispute.pb.go
T

1291 lines
38 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.1
// source: dispute.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
// --------------------------------disputes--------------------------------
type Disputes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
OrderId int64 `protobuf:"varint,2,opt,name=orderId,proto3" json:"orderId,omitempty"`
InitiatorId int64 `protobuf:"varint,3,opt,name=initiatorId,proto3" json:"initiatorId,omitempty"`
InitiatorName string `protobuf:"bytes,4,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"`
RespondentId int64 `protobuf:"varint,5,opt,name=respondentId,proto3" json:"respondentId,omitempty"`
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
Evidence []string `protobuf:"bytes,7,rep,name=evidence,proto3" json:"evidence,omitempty"`
Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
Result string `protobuf:"bytes,9,opt,name=result,proto3" json:"result,omitempty"`
RespondentReason string `protobuf:"bytes,10,opt,name=respondentReason,proto3" json:"respondentReason,omitempty"`
RespondentEvidence []string `protobuf:"bytes,11,rep,name=respondentEvidence,proto3" json:"respondentEvidence,omitempty"`
AppealReason string `protobuf:"bytes,12,opt,name=appealReason,proto3" json:"appealReason,omitempty"`
AppealedAt int64 `protobuf:"varint,13,opt,name=appealedAt,proto3" json:"appealedAt,omitempty"`
ResolvedBy int64 `protobuf:"varint,14,opt,name=resolvedBy,proto3" json:"resolvedBy,omitempty"`
ResolvedAt int64 `protobuf:"varint,15,opt,name=resolvedAt,proto3" json:"resolvedAt,omitempty"`
CreatedAt int64 `protobuf:"varint,16,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt int64 `protobuf:"varint,17,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Disputes) Reset() {
*x = Disputes{}
mi := &file_dispute_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Disputes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Disputes) ProtoMessage() {}
func (x *Disputes) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Disputes.ProtoReflect.Descriptor instead.
func (*Disputes) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{0}
}
func (x *Disputes) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Disputes) GetOrderId() int64 {
if x != nil {
return x.OrderId
}
return 0
}
func (x *Disputes) GetInitiatorId() int64 {
if x != nil {
return x.InitiatorId
}
return 0
}
func (x *Disputes) GetInitiatorName() string {
if x != nil {
return x.InitiatorName
}
return ""
}
func (x *Disputes) GetRespondentId() int64 {
if x != nil {
return x.RespondentId
}
return 0
}
func (x *Disputes) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
func (x *Disputes) GetEvidence() []string {
if x != nil {
return x.Evidence
}
return nil
}
func (x *Disputes) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *Disputes) GetResult() string {
if x != nil {
return x.Result
}
return ""
}
func (x *Disputes) GetRespondentReason() string {
if x != nil {
return x.RespondentReason
}
return ""
}
func (x *Disputes) GetRespondentEvidence() []string {
if x != nil {
return x.RespondentEvidence
}
return nil
}
func (x *Disputes) GetAppealReason() string {
if x != nil {
return x.AppealReason
}
return ""
}
func (x *Disputes) GetAppealedAt() int64 {
if x != nil {
return x.AppealedAt
}
return 0
}
func (x *Disputes) GetResolvedBy() int64 {
if x != nil {
return x.ResolvedBy
}
return 0
}
func (x *Disputes) GetResolvedAt() int64 {
if x != nil {
return x.ResolvedAt
}
return 0
}
func (x *Disputes) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *Disputes) GetUpdatedAt() int64 {
if x != nil {
return x.UpdatedAt
}
return 0
}
type AddDisputesReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
OrderId int64 `protobuf:"varint,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
InitiatorId int64 `protobuf:"varint,2,opt,name=initiatorId,proto3" json:"initiatorId,omitempty"`
InitiatorName string `protobuf:"bytes,3,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"`
RespondentId int64 `protobuf:"varint,4,opt,name=respondentId,proto3" json:"respondentId,omitempty"`
Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
Evidence []string `protobuf:"bytes,6,rep,name=evidence,proto3" json:"evidence,omitempty"`
Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddDisputesReq) Reset() {
*x = AddDisputesReq{}
mi := &file_dispute_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AddDisputesReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddDisputesReq) ProtoMessage() {}
func (x *AddDisputesReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddDisputesReq.ProtoReflect.Descriptor instead.
func (*AddDisputesReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{1}
}
func (x *AddDisputesReq) GetOrderId() int64 {
if x != nil {
return x.OrderId
}
return 0
}
func (x *AddDisputesReq) GetInitiatorId() int64 {
if x != nil {
return x.InitiatorId
}
return 0
}
func (x *AddDisputesReq) GetInitiatorName() string {
if x != nil {
return x.InitiatorName
}
return ""
}
func (x *AddDisputesReq) GetRespondentId() int64 {
if x != nil {
return x.RespondentId
}
return 0
}
func (x *AddDisputesReq) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
func (x *AddDisputesReq) GetEvidence() []string {
if x != nil {
return x.Evidence
}
return nil
}
func (x *AddDisputesReq) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
type AddDisputesResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddDisputesResp) Reset() {
*x = AddDisputesResp{}
mi := &file_dispute_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AddDisputesResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddDisputesResp) ProtoMessage() {}
func (x *AddDisputesResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddDisputesResp.ProtoReflect.Descriptor instead.
func (*AddDisputesResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{2}
}
func (x *AddDisputesResp) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type UpdateDisputesReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Status *string `protobuf:"bytes,2,opt,name=status,proto3,oneof" json:"status,omitempty"`
Result *string `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"`
RespondentReason *string `protobuf:"bytes,4,opt,name=respondentReason,proto3,oneof" json:"respondentReason,omitempty"`
RespondentEvidence []string `protobuf:"bytes,5,rep,name=respondentEvidence,proto3" json:"respondentEvidence,omitempty"`
AppealReason *string `protobuf:"bytes,6,opt,name=appealReason,proto3,oneof" json:"appealReason,omitempty"`
AppealedAt *int64 `protobuf:"varint,7,opt,name=appealedAt,proto3,oneof" json:"appealedAt,omitempty"`
ResolvedBy *int64 `protobuf:"varint,8,opt,name=resolvedBy,proto3,oneof" json:"resolvedBy,omitempty"`
ResolvedAt *int64 `protobuf:"varint,9,opt,name=resolvedAt,proto3,oneof" json:"resolvedAt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateDisputesReq) Reset() {
*x = UpdateDisputesReq{}
mi := &file_dispute_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateDisputesReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDisputesReq) ProtoMessage() {}
func (x *UpdateDisputesReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDisputesReq.ProtoReflect.Descriptor instead.
func (*UpdateDisputesReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateDisputesReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UpdateDisputesReq) GetStatus() string {
if x != nil && x.Status != nil {
return *x.Status
}
return ""
}
func (x *UpdateDisputesReq) GetResult() string {
if x != nil && x.Result != nil {
return *x.Result
}
return ""
}
func (x *UpdateDisputesReq) GetRespondentReason() string {
if x != nil && x.RespondentReason != nil {
return *x.RespondentReason
}
return ""
}
func (x *UpdateDisputesReq) GetRespondentEvidence() []string {
if x != nil {
return x.RespondentEvidence
}
return nil
}
func (x *UpdateDisputesReq) GetAppealReason() string {
if x != nil && x.AppealReason != nil {
return *x.AppealReason
}
return ""
}
func (x *UpdateDisputesReq) GetAppealedAt() int64 {
if x != nil && x.AppealedAt != nil {
return *x.AppealedAt
}
return 0
}
func (x *UpdateDisputesReq) GetResolvedBy() int64 {
if x != nil && x.ResolvedBy != nil {
return *x.ResolvedBy
}
return 0
}
func (x *UpdateDisputesReq) GetResolvedAt() int64 {
if x != nil && x.ResolvedAt != nil {
return *x.ResolvedAt
}
return 0
}
type UpdateDisputesResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateDisputesResp) Reset() {
*x = UpdateDisputesResp{}
mi := &file_dispute_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateDisputesResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateDisputesResp) ProtoMessage() {}
func (x *UpdateDisputesResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateDisputesResp.ProtoReflect.Descriptor instead.
func (*UpdateDisputesResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{4}
}
type DelDisputesReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DelDisputesReq) Reset() {
*x = DelDisputesReq{}
mi := &file_dispute_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DelDisputesReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DelDisputesReq) ProtoMessage() {}
func (x *DelDisputesReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DelDisputesReq.ProtoReflect.Descriptor instead.
func (*DelDisputesReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{5}
}
func (x *DelDisputesReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type DelDisputesResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DelDisputesResp) Reset() {
*x = DelDisputesResp{}
mi := &file_dispute_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DelDisputesResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DelDisputesResp) ProtoMessage() {}
func (x *DelDisputesResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DelDisputesResp.ProtoReflect.Descriptor instead.
func (*DelDisputesResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{6}
}
type GetDisputesByIdReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDisputesByIdReq) Reset() {
*x = GetDisputesByIdReq{}
mi := &file_dispute_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDisputesByIdReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDisputesByIdReq) ProtoMessage() {}
func (x *GetDisputesByIdReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDisputesByIdReq.ProtoReflect.Descriptor instead.
func (*GetDisputesByIdReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{7}
}
func (x *GetDisputesByIdReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type GetDisputesByIdResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Disputes *Disputes `protobuf:"bytes,1,opt,name=disputes,proto3" json:"disputes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDisputesByIdResp) Reset() {
*x = GetDisputesByIdResp{}
mi := &file_dispute_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDisputesByIdResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDisputesByIdResp) ProtoMessage() {}
func (x *GetDisputesByIdResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetDisputesByIdResp.ProtoReflect.Descriptor instead.
func (*GetDisputesByIdResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{8}
}
func (x *GetDisputesByIdResp) GetDisputes() *Disputes {
if x != nil {
return x.Disputes
}
return nil
}
type SearchDisputesReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Id *int64 `protobuf:"varint,3,opt,name=id,proto3,oneof" json:"id,omitempty"`
OrderId *int64 `protobuf:"varint,4,opt,name=orderId,proto3,oneof" json:"orderId,omitempty"`
InitiatorId *int64 `protobuf:"varint,5,opt,name=initiatorId,proto3,oneof" json:"initiatorId,omitempty"`
RespondentId *int64 `protobuf:"varint,6,opt,name=respondentId,proto3,oneof" json:"respondentId,omitempty"`
Status *string `protobuf:"bytes,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDisputesReq) Reset() {
*x = SearchDisputesReq{}
mi := &file_dispute_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDisputesReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDisputesReq) ProtoMessage() {}
func (x *SearchDisputesReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchDisputesReq.ProtoReflect.Descriptor instead.
func (*SearchDisputesReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{9}
}
func (x *SearchDisputesReq) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *SearchDisputesReq) GetLimit() int64 {
if x != nil {
return x.Limit
}
return 0
}
func (x *SearchDisputesReq) GetId() int64 {
if x != nil && x.Id != nil {
return *x.Id
}
return 0
}
func (x *SearchDisputesReq) GetOrderId() int64 {
if x != nil && x.OrderId != nil {
return *x.OrderId
}
return 0
}
func (x *SearchDisputesReq) GetInitiatorId() int64 {
if x != nil && x.InitiatorId != nil {
return *x.InitiatorId
}
return 0
}
func (x *SearchDisputesReq) GetRespondentId() int64 {
if x != nil && x.RespondentId != nil {
return *x.RespondentId
}
return 0
}
func (x *SearchDisputesReq) GetStatus() string {
if x != nil && x.Status != nil {
return *x.Status
}
return ""
}
type SearchDisputesResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Disputes []*Disputes `protobuf:"bytes,1,rep,name=disputes,proto3" json:"disputes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDisputesResp) Reset() {
*x = SearchDisputesResp{}
mi := &file_dispute_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDisputesResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDisputesResp) ProtoMessage() {}
func (x *SearchDisputesResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchDisputesResp.ProtoReflect.Descriptor instead.
func (*SearchDisputesResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{10}
}
func (x *SearchDisputesResp) GetDisputes() []*Disputes {
if x != nil {
return x.Disputes
}
return nil
}
// --------------------------------disputeTimeline--------------------------------
type DisputeTimeline struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DisputeId int64 `protobuf:"varint,2,opt,name=disputeId,proto3" json:"disputeId,omitempty"`
EventType string `protobuf:"bytes,3,opt,name=eventType,proto3" json:"eventType,omitempty"`
ActorId int64 `protobuf:"varint,4,opt,name=actorId,proto3" json:"actorId,omitempty"`
ActorName string `protobuf:"bytes,5,opt,name=actorName,proto3" json:"actorName,omitempty"`
Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DisputeTimeline) Reset() {
*x = DisputeTimeline{}
mi := &file_dispute_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DisputeTimeline) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisputeTimeline) ProtoMessage() {}
func (x *DisputeTimeline) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DisputeTimeline.ProtoReflect.Descriptor instead.
func (*DisputeTimeline) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{11}
}
func (x *DisputeTimeline) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *DisputeTimeline) GetDisputeId() int64 {
if x != nil {
return x.DisputeId
}
return 0
}
func (x *DisputeTimeline) GetEventType() string {
if x != nil {
return x.EventType
}
return ""
}
func (x *DisputeTimeline) GetActorId() int64 {
if x != nil {
return x.ActorId
}
return 0
}
func (x *DisputeTimeline) GetActorName() string {
if x != nil {
return x.ActorName
}
return ""
}
func (x *DisputeTimeline) GetDetails() string {
if x != nil {
return x.Details
}
return ""
}
func (x *DisputeTimeline) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
type AddDisputeTimelineReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
DisputeId int64 `protobuf:"varint,1,opt,name=disputeId,proto3" json:"disputeId,omitempty"`
EventType string `protobuf:"bytes,2,opt,name=eventType,proto3" json:"eventType,omitempty"`
ActorId int64 `protobuf:"varint,3,opt,name=actorId,proto3" json:"actorId,omitempty"`
ActorName string `protobuf:"bytes,4,opt,name=actorName,proto3" json:"actorName,omitempty"`
Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddDisputeTimelineReq) Reset() {
*x = AddDisputeTimelineReq{}
mi := &file_dispute_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AddDisputeTimelineReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddDisputeTimelineReq) ProtoMessage() {}
func (x *AddDisputeTimelineReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddDisputeTimelineReq.ProtoReflect.Descriptor instead.
func (*AddDisputeTimelineReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{12}
}
func (x *AddDisputeTimelineReq) GetDisputeId() int64 {
if x != nil {
return x.DisputeId
}
return 0
}
func (x *AddDisputeTimelineReq) GetEventType() string {
if x != nil {
return x.EventType
}
return ""
}
func (x *AddDisputeTimelineReq) GetActorId() int64 {
if x != nil {
return x.ActorId
}
return 0
}
func (x *AddDisputeTimelineReq) GetActorName() string {
if x != nil {
return x.ActorName
}
return ""
}
func (x *AddDisputeTimelineReq) GetDetails() string {
if x != nil {
return x.Details
}
return ""
}
type AddDisputeTimelineResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddDisputeTimelineResp) Reset() {
*x = AddDisputeTimelineResp{}
mi := &file_dispute_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AddDisputeTimelineResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddDisputeTimelineResp) ProtoMessage() {}
func (x *AddDisputeTimelineResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddDisputeTimelineResp.ProtoReflect.Descriptor instead.
func (*AddDisputeTimelineResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{13}
}
type SearchDisputeTimelineReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
DisputeId *int64 `protobuf:"varint,3,opt,name=disputeId,proto3,oneof" json:"disputeId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDisputeTimelineReq) Reset() {
*x = SearchDisputeTimelineReq{}
mi := &file_dispute_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDisputeTimelineReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDisputeTimelineReq) ProtoMessage() {}
func (x *SearchDisputeTimelineReq) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchDisputeTimelineReq.ProtoReflect.Descriptor instead.
func (*SearchDisputeTimelineReq) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{14}
}
func (x *SearchDisputeTimelineReq) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *SearchDisputeTimelineReq) GetLimit() int64 {
if x != nil {
return x.Limit
}
return 0
}
func (x *SearchDisputeTimelineReq) GetDisputeId() int64 {
if x != nil && x.DisputeId != nil {
return *x.DisputeId
}
return 0
}
type SearchDisputeTimelineResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Timeline []*DisputeTimeline `protobuf:"bytes,1,rep,name=timeline,proto3" json:"timeline,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDisputeTimelineResp) Reset() {
*x = SearchDisputeTimelineResp{}
mi := &file_dispute_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDisputeTimelineResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDisputeTimelineResp) ProtoMessage() {}
func (x *SearchDisputeTimelineResp) ProtoReflect() protoreflect.Message {
mi := &file_dispute_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchDisputeTimelineResp.ProtoReflect.Descriptor instead.
func (*SearchDisputeTimelineResp) Descriptor() ([]byte, []int) {
return file_dispute_proto_rawDescGZIP(), []int{15}
}
func (x *SearchDisputeTimelineResp) GetTimeline() []*DisputeTimeline {
if x != nil {
return x.Timeline
}
return nil
}
var File_dispute_proto protoreflect.FileDescriptor
const file_dispute_proto_rawDesc = "" +
"\n" +
"\rdispute.proto\x12\x02pb\"\xa0\x04\n" +
"\bDisputes\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x18\n" +
"\aorderId\x18\x02 \x01(\x03R\aorderId\x12 \n" +
"\vinitiatorId\x18\x03 \x01(\x03R\vinitiatorId\x12$\n" +
"\rinitiatorName\x18\x04 \x01(\tR\rinitiatorName\x12\"\n" +
"\frespondentId\x18\x05 \x01(\x03R\frespondentId\x12\x16\n" +
"\x06reason\x18\x06 \x01(\tR\x06reason\x12\x1a\n" +
"\bevidence\x18\a \x03(\tR\bevidence\x12\x16\n" +
"\x06status\x18\b \x01(\tR\x06status\x12\x16\n" +
"\x06result\x18\t \x01(\tR\x06result\x12*\n" +
"\x10respondentReason\x18\n" +
" \x01(\tR\x10respondentReason\x12.\n" +
"\x12respondentEvidence\x18\v \x03(\tR\x12respondentEvidence\x12\"\n" +
"\fappealReason\x18\f \x01(\tR\fappealReason\x12\x1e\n" +
"\n" +
"appealedAt\x18\r \x01(\x03R\n" +
"appealedAt\x12\x1e\n" +
"\n" +
"resolvedBy\x18\x0e \x01(\x03R\n" +
"resolvedBy\x12\x1e\n" +
"\n" +
"resolvedAt\x18\x0f \x01(\x03R\n" +
"resolvedAt\x12\x1c\n" +
"\tcreatedAt\x18\x10 \x01(\x03R\tcreatedAt\x12\x1c\n" +
"\tupdatedAt\x18\x11 \x01(\x03R\tupdatedAt\"\xe2\x01\n" +
"\x0eAddDisputesReq\x12\x18\n" +
"\aorderId\x18\x01 \x01(\x03R\aorderId\x12 \n" +
"\vinitiatorId\x18\x02 \x01(\x03R\vinitiatorId\x12$\n" +
"\rinitiatorName\x18\x03 \x01(\tR\rinitiatorName\x12\"\n" +
"\frespondentId\x18\x04 \x01(\x03R\frespondentId\x12\x16\n" +
"\x06reason\x18\x05 \x01(\tR\x06reason\x12\x1a\n" +
"\bevidence\x18\x06 \x03(\tR\bevidence\x12\x16\n" +
"\x06status\x18\a \x01(\tR\x06status\"!\n" +
"\x0fAddDisputesResp\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"\xbf\x03\n" +
"\x11UpdateDisputesReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1b\n" +
"\x06status\x18\x02 \x01(\tH\x00R\x06status\x88\x01\x01\x12\x1b\n" +
"\x06result\x18\x03 \x01(\tH\x01R\x06result\x88\x01\x01\x12/\n" +
"\x10respondentReason\x18\x04 \x01(\tH\x02R\x10respondentReason\x88\x01\x01\x12.\n" +
"\x12respondentEvidence\x18\x05 \x03(\tR\x12respondentEvidence\x12'\n" +
"\fappealReason\x18\x06 \x01(\tH\x03R\fappealReason\x88\x01\x01\x12#\n" +
"\n" +
"appealedAt\x18\a \x01(\x03H\x04R\n" +
"appealedAt\x88\x01\x01\x12#\n" +
"\n" +
"resolvedBy\x18\b \x01(\x03H\x05R\n" +
"resolvedBy\x88\x01\x01\x12#\n" +
"\n" +
"resolvedAt\x18\t \x01(\x03H\x06R\n" +
"resolvedAt\x88\x01\x01B\t\n" +
"\a_statusB\t\n" +
"\a_resultB\x13\n" +
"\x11_respondentReasonB\x0f\n" +
"\r_appealReasonB\r\n" +
"\v_appealedAtB\r\n" +
"\v_resolvedByB\r\n" +
"\v_resolvedAt\"\x14\n" +
"\x12UpdateDisputesResp\" \n" +
"\x0eDelDisputesReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"\x11\n" +
"\x0fDelDisputesResp\"$\n" +
"\x12GetDisputesByIdReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"?\n" +
"\x13GetDisputesByIdResp\x12(\n" +
"\bdisputes\x18\x01 \x01(\v2\f.pb.DisputesR\bdisputes\"\xa1\x02\n" +
"\x11SearchDisputesReq\x12\x16\n" +
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x14\n" +
"\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x13\n" +
"\x02id\x18\x03 \x01(\x03H\x00R\x02id\x88\x01\x01\x12\x1d\n" +
"\aorderId\x18\x04 \x01(\x03H\x01R\aorderId\x88\x01\x01\x12%\n" +
"\vinitiatorId\x18\x05 \x01(\x03H\x02R\vinitiatorId\x88\x01\x01\x12'\n" +
"\frespondentId\x18\x06 \x01(\x03H\x03R\frespondentId\x88\x01\x01\x12\x1b\n" +
"\x06status\x18\a \x01(\tH\x04R\x06status\x88\x01\x01B\x05\n" +
"\x03_idB\n" +
"\n" +
"\b_orderIdB\x0e\n" +
"\f_initiatorIdB\x0f\n" +
"\r_respondentIdB\t\n" +
"\a_status\">\n" +
"\x12SearchDisputesResp\x12(\n" +
"\bdisputes\x18\x01 \x03(\v2\f.pb.DisputesR\bdisputes\"\xcd\x01\n" +
"\x0fDisputeTimeline\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1c\n" +
"\tdisputeId\x18\x02 \x01(\x03R\tdisputeId\x12\x1c\n" +
"\teventType\x18\x03 \x01(\tR\teventType\x12\x18\n" +
"\aactorId\x18\x04 \x01(\x03R\aactorId\x12\x1c\n" +
"\tactorName\x18\x05 \x01(\tR\tactorName\x12\x18\n" +
"\adetails\x18\x06 \x01(\tR\adetails\x12\x1c\n" +
"\tcreatedAt\x18\a \x01(\x03R\tcreatedAt\"\xa5\x01\n" +
"\x15AddDisputeTimelineReq\x12\x1c\n" +
"\tdisputeId\x18\x01 \x01(\x03R\tdisputeId\x12\x1c\n" +
"\teventType\x18\x02 \x01(\tR\teventType\x12\x18\n" +
"\aactorId\x18\x03 \x01(\x03R\aactorId\x12\x1c\n" +
"\tactorName\x18\x04 \x01(\tR\tactorName\x12\x18\n" +
"\adetails\x18\x05 \x01(\tR\adetails\"\x18\n" +
"\x16AddDisputeTimelineResp\"y\n" +
"\x18SearchDisputeTimelineReq\x12\x16\n" +
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x14\n" +
"\x05limit\x18\x02 \x01(\x03R\x05limit\x12!\n" +
"\tdisputeId\x18\x03 \x01(\x03H\x00R\tdisputeId\x88\x01\x01B\f\n" +
"\n" +
"_disputeId\"L\n" +
"\x19SearchDisputeTimelineResp\x12/\n" +
"\btimeline\x18\x01 \x03(\v2\x13.pb.DisputeTimelineR\btimeline2\xe9\x03\n" +
"\x0edisputeService\x126\n" +
"\vAddDisputes\x12\x12.pb.AddDisputesReq\x1a\x13.pb.AddDisputesResp\x12?\n" +
"\x0eUpdateDisputes\x12\x15.pb.UpdateDisputesReq\x1a\x16.pb.UpdateDisputesResp\x126\n" +
"\vDelDisputes\x12\x12.pb.DelDisputesReq\x1a\x13.pb.DelDisputesResp\x12B\n" +
"\x0fGetDisputesById\x12\x16.pb.GetDisputesByIdReq\x1a\x17.pb.GetDisputesByIdResp\x12?\n" +
"\x0eSearchDisputes\x12\x15.pb.SearchDisputesReq\x1a\x16.pb.SearchDisputesResp\x12K\n" +
"\x12AddDisputeTimeline\x12\x19.pb.AddDisputeTimelineReq\x1a\x1a.pb.AddDisputeTimelineResp\x12T\n" +
"\x15SearchDisputeTimeline\x12\x1c.pb.SearchDisputeTimelineReq\x1a\x1d.pb.SearchDisputeTimelineRespB\x06Z\x04./pbb\x06proto3"
var (
file_dispute_proto_rawDescOnce sync.Once
file_dispute_proto_rawDescData []byte
)
func file_dispute_proto_rawDescGZIP() []byte {
file_dispute_proto_rawDescOnce.Do(func() {
file_dispute_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_dispute_proto_rawDesc), len(file_dispute_proto_rawDesc)))
})
return file_dispute_proto_rawDescData
}
var file_dispute_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_dispute_proto_goTypes = []any{
(*Disputes)(nil), // 0: pb.Disputes
(*AddDisputesReq)(nil), // 1: pb.AddDisputesReq
(*AddDisputesResp)(nil), // 2: pb.AddDisputesResp
(*UpdateDisputesReq)(nil), // 3: pb.UpdateDisputesReq
(*UpdateDisputesResp)(nil), // 4: pb.UpdateDisputesResp
(*DelDisputesReq)(nil), // 5: pb.DelDisputesReq
(*DelDisputesResp)(nil), // 6: pb.DelDisputesResp
(*GetDisputesByIdReq)(nil), // 7: pb.GetDisputesByIdReq
(*GetDisputesByIdResp)(nil), // 8: pb.GetDisputesByIdResp
(*SearchDisputesReq)(nil), // 9: pb.SearchDisputesReq
(*SearchDisputesResp)(nil), // 10: pb.SearchDisputesResp
(*DisputeTimeline)(nil), // 11: pb.DisputeTimeline
(*AddDisputeTimelineReq)(nil), // 12: pb.AddDisputeTimelineReq
(*AddDisputeTimelineResp)(nil), // 13: pb.AddDisputeTimelineResp
(*SearchDisputeTimelineReq)(nil), // 14: pb.SearchDisputeTimelineReq
(*SearchDisputeTimelineResp)(nil), // 15: pb.SearchDisputeTimelineResp
}
var file_dispute_proto_depIdxs = []int32{
0, // 0: pb.GetDisputesByIdResp.disputes:type_name -> pb.Disputes
0, // 1: pb.SearchDisputesResp.disputes:type_name -> pb.Disputes
11, // 2: pb.SearchDisputeTimelineResp.timeline:type_name -> pb.DisputeTimeline
1, // 3: pb.disputeService.AddDisputes:input_type -> pb.AddDisputesReq
3, // 4: pb.disputeService.UpdateDisputes:input_type -> pb.UpdateDisputesReq
5, // 5: pb.disputeService.DelDisputes:input_type -> pb.DelDisputesReq
7, // 6: pb.disputeService.GetDisputesById:input_type -> pb.GetDisputesByIdReq
9, // 7: pb.disputeService.SearchDisputes:input_type -> pb.SearchDisputesReq
12, // 8: pb.disputeService.AddDisputeTimeline:input_type -> pb.AddDisputeTimelineReq
14, // 9: pb.disputeService.SearchDisputeTimeline:input_type -> pb.SearchDisputeTimelineReq
2, // 10: pb.disputeService.AddDisputes:output_type -> pb.AddDisputesResp
4, // 11: pb.disputeService.UpdateDisputes:output_type -> pb.UpdateDisputesResp
6, // 12: pb.disputeService.DelDisputes:output_type -> pb.DelDisputesResp
8, // 13: pb.disputeService.GetDisputesById:output_type -> pb.GetDisputesByIdResp
10, // 14: pb.disputeService.SearchDisputes:output_type -> pb.SearchDisputesResp
13, // 15: pb.disputeService.AddDisputeTimeline:output_type -> pb.AddDisputeTimelineResp
15, // 16: pb.disputeService.SearchDisputeTimeline:output_type -> pb.SearchDisputeTimelineResp
10, // [10:17] is the sub-list for method output_type
3, // [3:10] 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_dispute_proto_init() }
func file_dispute_proto_init() {
if File_dispute_proto != nil {
return
}
file_dispute_proto_msgTypes[3].OneofWrappers = []any{}
file_dispute_proto_msgTypes[9].OneofWrappers = []any{}
file_dispute_proto_msgTypes[14].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_dispute_proto_rawDesc), len(file_dispute_proto_rawDesc)),
NumEnums: 0,
NumMessages: 16,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_dispute_proto_goTypes,
DependencyIndexes: file_dispute_proto_depIdxs,
MessageInfos: file_dispute_proto_msgTypes,
}.Build()
File_dispute_proto = out.File
file_dispute_proto_goTypes = nil
file_dispute_proto_depIdxs = nil
}