Compare commits
	
		
			2 Commits
		
	
	
		
			3da31de230
			...
			8f6326bfaf
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8f6326bfaf | |||
| f612f8ad23 | 
| @ -46,6 +46,11 @@ func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundl | ||||
| 	resp.Data = lo.Map(data, func(m model.BundleExtendRecordItemPo, _ int) *bundle.BundleExtendRecordItem { | ||||
| 		result := &bundle.BundleExtendRecordItem{} | ||||
| 		copier.Copy(result, &m) | ||||
| 		result.CreatedAt = uint64(m.CreatedAt.UnixMilli()) | ||||
| 		if result.Type == 2 {  // 自行购买的情况下操作人就是用户
 | ||||
| 			result.OperatorName = result.UserName | ||||
| 			result.OperatorPhoneNumber = result.UserPhoneNumber | ||||
| 		} | ||||
| 		return result | ||||
| 	}) | ||||
| 	return resp, nil | ||||
|  | ||||
| @ -109,6 +109,8 @@ type BundleExtendRecordItemPo struct { | ||||
| 	ImagesAdditional    int | ||||
| 	DataAdditional      int | ||||
| 	VideoAdditional     int | ||||
| 	Type                int | ||||
| 	Remark              string | ||||
| 	OperatorName        string | ||||
| 	OperatorPhoneNumber string | ||||
| 	OrderUUID           string | ||||
|  | ||||
| @ -550,9 +550,10 @@ message BundleExtendRequest{ | ||||
|   uint32 timeUnit = 7; // 1 日 2 月 3年 | ||||
|   string remark = 8;  | ||||
|   string associatedorderNumber = 9;  | ||||
|   string operatorName = 10;  | ||||
|   string operatorPhoneNumber = 11;  | ||||
|   int32 type = 12; | ||||
|   uint64 operatorId = 10;  | ||||
|   string operatorName = 11;  | ||||
|   string operatorPhoneNumber = 12;  | ||||
|   int32 type = 13; | ||||
| } | ||||
| 
 | ||||
| message BundleExtendResponse{ | ||||
|  | ||||
| @ -4711,9 +4711,10 @@ type BundleExtendRequest struct { | ||||
| 	TimeUnit                    uint32 `protobuf:"varint,7,opt,name=timeUnit,proto3" json:"timeUnit,omitempty"` // 1 日 2 月 3年
 | ||||
| 	Remark                      string `protobuf:"bytes,8,opt,name=remark,proto3" json:"remark,omitempty"` | ||||
| 	AssociatedorderNumber       string `protobuf:"bytes,9,opt,name=associatedorderNumber,proto3" json:"associatedorderNumber,omitempty"` | ||||
| 	OperatorName                string `protobuf:"bytes,10,opt,name=operatorName,proto3" json:"operatorName,omitempty"` | ||||
| 	OperatorPhoneNumber         string `protobuf:"bytes,11,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` | ||||
| 	Type                        int32  `protobuf:"varint,12,opt,name=type,proto3" json:"type,omitempty"` | ||||
| 	OperatorId                  uint64 `protobuf:"varint,10,opt,name=operatorId,proto3" json:"operatorId,omitempty"` | ||||
| 	OperatorName                string `protobuf:"bytes,11,opt,name=operatorName,proto3" json:"operatorName,omitempty"` | ||||
| 	OperatorPhoneNumber         string `protobuf:"bytes,12,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` | ||||
| 	Type                        int32  `protobuf:"varint,13,opt,name=type,proto3" json:"type,omitempty"` | ||||
| } | ||||
| 
 | ||||
| func (x *BundleExtendRequest) Reset() { | ||||
| @ -4811,6 +4812,13 @@ func (x *BundleExtendRequest) GetAssociatedorderNumber() string { | ||||
| 	return "" | ||||
| } | ||||
| 
 | ||||
| func (x *BundleExtendRequest) GetOperatorId() uint64 { | ||||
| 	if x != nil { | ||||
| 		return x.OperatorId | ||||
| 	} | ||||
| 	return 0 | ||||
| } | ||||
| 
 | ||||
| func (x *BundleExtendRequest) GetOperatorName() string { | ||||
| 	if x != nil { | ||||
| 		return x.OperatorName | ||||
| @ -8054,7 +8062,7 @@ var file_pb_bundle_proto_rawDesc = []byte{ | ||||
| 	0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, | ||||
| 	0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x17, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, | ||||
| 	0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, | ||||
| 	0x22, 0xef, 0x03, 0x0a, 0x13, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, | ||||
| 	0x22, 0x8f, 0x04, 0x0a, 0x13, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, | ||||
| 	0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, | ||||
| 	0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, | ||||
| 	0x12, 0x2c, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, | ||||
| @ -8078,13 +8086,15 @@ var file_pb_bundle_proto_rawDesc = []byte{ | ||||
| 	0x72, 0x6b, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, | ||||
| 	0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, | ||||
| 	0x09, 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x6f, 0x72, 0x64, | ||||
| 	0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, | ||||
| 	0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, | ||||
| 	0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, | ||||
| 	0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6f, 0x70, | ||||
| 	0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, | ||||
| 	0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, | ||||
| 	0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x13, | ||||
| 	0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, | ||||
| 	0x62, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, | ||||
| 	0x62, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, | ||||
| 	0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, | ||||
| 	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, | ||||
| 	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, | ||||
| 	0x70, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, | ||||
| 	0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x1e, 0x42, | ||||
| 	0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, | ||||
|  | ||||
| @ -7,8 +7,8 @@ import ( | ||||
| 	fmt "fmt" | ||||
| 	math "math" | ||||
| 	proto "github.com/golang/protobuf/proto" | ||||
| 	_ "google.golang.org/protobuf/types/descriptorpb" | ||||
| 	_ "github.com/mwitkow/go-proto-validators" | ||||
| 	_ "google.golang.org/protobuf/types/descriptorpb" | ||||
| 	github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" | ||||
| ) | ||||
| 
 | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| // Code generated by protoc-gen-go-triple. DO NOT EDIT.
 | ||||
| // versions:
 | ||||
| // - protoc-gen-go-triple v1.0.8
 | ||||
| // - protoc             v4.24.0--rc1
 | ||||
| // - protoc             v3.20.3
 | ||||
| // source: pb/bundle.proto
 | ||||
| 
 | ||||
| package bundle | ||||
| @ -49,11 +49,11 @@ type BundleClient interface { | ||||
| 	OrderRecordsListV2(ctx context.Context, in *OrderRecordsRequestV2, opts ...grpc_go.CallOption) (*OrderRecordsResponseV2, common.ErrorWithAttachment) | ||||
| 	OrderListByOrderNo(ctx context.Context, in *OrderInfoByOrderNoRequest, opts ...grpc_go.CallOption) (*OrderInfoByOrderNoResp, common.ErrorWithAttachment) | ||||
| 	OnlyAddValueListByOrderNo(ctx context.Context, in *OnlyAddValueListByOrderNoRequest, opts ...grpc_go.CallOption) (*OnlyAddValueListByOrderNoResp, common.ErrorWithAttachment) | ||||
| 	//增值套餐
 | ||||
| 	// 增值套餐
 | ||||
| 	CreateValueAddBundle(ctx context.Context, in *CreateValueAddBundleRequest, opts ...grpc_go.CallOption) (*CreateValueAddBundleResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) | ||||
| 	//新增值服务
 | ||||
| 	// 新增值服务
 | ||||
| 	SaveValueAddService(ctx context.Context, in *ValueAddServiceLang, opts ...grpc_go.CallOption) (*SaveResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddServiceList(ctx context.Context, in *ValueAddServiceListRequest, opts ...grpc_go.CallOption) (*ValueAddServiceListResponse, common.ErrorWithAttachment) | ||||
| 	ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment) | ||||
| @ -74,7 +74,7 @@ type BundleClient interface { | ||||
| 	GetVedioWorkDetail(ctx context.Context, in *GetVedioWorkDetailReq, opts ...grpc_go.CallOption) (*GetVedioeWorkDetailResp, common.ErrorWithAttachment) | ||||
| 	ToBeComfirmedWorks(ctx context.Context, in *ToBeComfirmedWorksReq, opts ...grpc_go.CallOption) (*ToBeComfirmedWorksResp, common.ErrorWithAttachment) | ||||
| 	ConfirmWork(ctx context.Context, in *ConfirmWorkReq, opts ...grpc_go.CallOption) (*ConfirmWorkResp, common.ErrorWithAttachment) | ||||
| 	//对账单
 | ||||
| 	// 对账单
 | ||||
| 	GetReconciliationList(ctx context.Context, in *GetReconciliationListReq, opts ...grpc_go.CallOption) (*GetReconciliationListResp, common.ErrorWithAttachment) | ||||
| 	CreateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||
| 	UpdateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) | ||||
| @ -447,11 +447,11 @@ type BundleServer interface { | ||||
| 	OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error) | ||||
| 	OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error) | ||||
| 	OnlyAddValueListByOrderNo(context.Context, *OnlyAddValueListByOrderNoRequest) (*OnlyAddValueListByOrderNoResp, error) | ||||
| 	//增值套餐
 | ||||
| 	// 增值套餐
 | ||||
| 	CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error) | ||||
| 	ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) | ||||
| 	ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) | ||||
| 	//新增值服务
 | ||||
| 	// 新增值服务
 | ||||
| 	SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error) | ||||
| 	ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) | ||||
| 	ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) | ||||
| @ -472,7 +472,7 @@ type BundleServer interface { | ||||
| 	GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error) | ||||
| 	ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error) | ||||
| 	ConfirmWork(context.Context, *ConfirmWorkReq) (*ConfirmWorkResp, error) | ||||
| 	//对账单
 | ||||
| 	// 对账单
 | ||||
| 	GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error) | ||||
| 	CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||
| 	UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user