Compare commits
No commits in common. "main" and "dev-lzh" have entirely different histories.
@ -117,13 +117,3 @@ func (b *BundleProvider) UpdateReconciliationStatusBySerialNumber(_ context.Cont
|
|||||||
func (b *BundleProvider) DeleteValueAddService(_ context.Context, req *bundle.DeleteValueAddServiceRequest) (res *bundle.CommonResponse, err error) {
|
func (b *BundleProvider) DeleteValueAddService(_ context.Context, req *bundle.DeleteValueAddServiceRequest) (res *bundle.CommonResponse, err error) {
|
||||||
return logic.DeleteValueAddService(req)
|
return logic.DeleteValueAddService(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 自动创建用户且实名且下订单
|
|
||||||
func (b *BundleProvider) ListUnfinishedInfos(_ context.Context, req *bundle.AutoCreateUserAndOrderRequest) (res *bundle.UnfinishedInfos, err error) {
|
|
||||||
return logic.ListUnfinishedInfos(req)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 自动创建用户且实名且下订单
|
|
||||||
func (b *BundleProvider) SoftDeleteUnfinishedInfo(_ context.Context, req *bundle.SoftDeleteUnfinishedInfoRequest) (res *bundle.CommonResponse, err error) {
|
|
||||||
return logic.SoftDeleteUnfinishedInfo(req)
|
|
||||||
}
|
|
||||||
|
@ -32,8 +32,7 @@ func AddBundleExtendRecord(data model.BundleExtensionRecords) error {
|
|||||||
et, _ := time.ParseInLocation(time.DateTime, record.ExpirationTime, loc)
|
et, _ := time.ParseInLocation(time.DateTime, record.ExpirationTime, loc)
|
||||||
expireTime = et
|
expireTime = et
|
||||||
} else {
|
} else {
|
||||||
t, _ := time.Parse("2006-01-02 15:04:05", record.PayTime)
|
expireTime = time.Now()
|
||||||
expireTime = t
|
|
||||||
logger.Infof("过期时间为空,使用默认过期时间" + expireTime.Format(time.DateTime))
|
logger.Infof("过期时间为空,使用默认过期时间" + expireTime.Format(time.DateTime))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,22 +112,6 @@ func UpdateOrderRecordByOrderNO(orderRecord *model.BundleOrderRecords) (res *bun
|
|||||||
valueAdd.CheckoutSessionId = orderRecord.CheckoutSessionId
|
valueAdd.CheckoutSessionId = orderRecord.CheckoutSessionId
|
||||||
valueAdd.CheckoutSessionUrl = orderRecord.CheckoutSessionUrl
|
valueAdd.CheckoutSessionUrl = orderRecord.CheckoutSessionUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
if orderRecord.Status == 2 {
|
|
||||||
tempValues := make([]*model.BundleOrderValueAdd, 0)
|
|
||||||
err = app.ModuleClients.BundleDB.Model(&model.BundleOrderValueAdd{}).
|
|
||||||
Where("order_no = ?", orderRecord.OrderNo).
|
|
||||||
Find(&tempValues).Error
|
|
||||||
if len(tempValues) > 0 {
|
|
||||||
for _, value := range tempValues {
|
|
||||||
if value.PaymentStatus == 2 {
|
|
||||||
fmt.Println("====================已经付过了")
|
|
||||||
return nil, errors.New("已付款了")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
err = app.ModuleClients.BundleDB.Model(&model.BundleOrderValueAdd{}).
|
err = app.ModuleClients.BundleDB.Model(&model.BundleOrderValueAdd{}).
|
||||||
Where("order_no = ?", orderRecord.OrderNo).
|
Where("order_no = ?", orderRecord.OrderNo).
|
||||||
Updates(valueAdd).Error
|
Updates(valueAdd).Error
|
||||||
@ -468,9 +452,6 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
|
|||||||
if req.OrderAddCreateAtStart != "" && req.OrderAddCreateAtEnd != "" {
|
if req.OrderAddCreateAtStart != "" && req.OrderAddCreateAtEnd != "" {
|
||||||
modelObj = modelObj.Where("bundle_order_records.created_at between ? and ?", req.OrderAddCreateAtStart, req.OrderAddCreateAtEnd)
|
modelObj = modelObj.Where("bundle_order_records.created_at between ? and ?", req.OrderAddCreateAtStart, req.OrderAddCreateAtEnd)
|
||||||
}
|
}
|
||||||
if req.BundlePayStart != "" && req.BundlePayEnd != "" {
|
|
||||||
modelObj = modelObj.Where("bundle_order_records.pay_time between ? and ?", req.BundlePayStart, req.BundlePayEnd)
|
|
||||||
}
|
|
||||||
err = modelObj.Count(&count).Error
|
err = modelObj.Count(&count).Error
|
||||||
if req.PageSize != 0 && req.Page != 0 {
|
if req.PageSize != 0 && req.Page != 0 {
|
||||||
modelObj = modelObj.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize))
|
modelObj = modelObj.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize))
|
||||||
@ -496,7 +477,6 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
|
|||||||
BundleCreateAt: record.CreatedAt.Format("2006-01-02 15:04:05"),
|
BundleCreateAt: record.CreatedAt.Format("2006-01-02 15:04:05"),
|
||||||
Amount: record.Amount,
|
Amount: record.Amount,
|
||||||
CustomerId: customerID,
|
CustomerId: customerID,
|
||||||
PayTime: record.PayTime,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 聚合子订单
|
// 聚合子订单
|
||||||
@ -505,29 +485,20 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
|
|||||||
for _, sub := range record.BundleOrderValueAdd {
|
for _, sub := range record.BundleOrderValueAdd {
|
||||||
orderAddNo := sub.OrderNo
|
orderAddNo := sub.OrderNo
|
||||||
amount := float32(sub.Amount)
|
amount := float32(sub.Amount)
|
||||||
|
|
||||||
if existing, ok := addMap[orderAddNo]; ok {
|
if existing, ok := addMap[orderAddNo]; ok {
|
||||||
existing.Amount += amount
|
existing.Amount += amount
|
||||||
// 仅当 VideoNum 尚未设置且当前是 ServiceType == 1 时赋值
|
|
||||||
if existing.VideoNum == 0 && sub.ServiceType == 1 {
|
|
||||||
existing.VideoNum = sub.Num
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
var videoNum int32
|
|
||||||
if sub.ServiceType == 1 {
|
|
||||||
videoNum = sub.Num
|
|
||||||
}
|
|
||||||
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
|
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
|
||||||
OrderAddNo: orderAddNo,
|
OrderAddNo: orderAddNo,
|
||||||
Amount: amount,
|
Amount: amount,
|
||||||
CurrencyType: int32(sub.CurrencyType),
|
CurrencyType: int32(sub.CurrencyType),
|
||||||
HandlingFee: sub.HandlingFee, //手续费
|
|
||||||
OrderAddCreateAt: sub.CreatedAt.Format("2006-01-02 15:04:05"),
|
OrderAddCreateAt: sub.CreatedAt.Format("2006-01-02 15:04:05"),
|
||||||
AddPayStatus: int32(sub.PaymentStatus),
|
AddPayStatus: int32(sub.PaymentStatus),
|
||||||
Contract: sub.SignContract,
|
Contract: sub.SignContract,
|
||||||
Snapshot: sub.Snapshot,
|
Snapshot: sub.Snapshot,
|
||||||
CheckoutSessionId: sub.CheckoutSessionId,
|
CheckoutSessionId: sub.CheckoutSessionId,
|
||||||
CustomerID: sub.CustomerID,
|
CustomerID: sub.CustomerID,
|
||||||
VideoNum: videoNum,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -671,7 +642,6 @@ func CreateReconciliation(req *bundle.ReconciliationInfo) (res *bundle.CommonRes
|
|||||||
PayStatus: int(req.PayStatus),
|
PayStatus: int(req.PayStatus),
|
||||||
SerialNumber: req.SerialNumber,
|
SerialNumber: req.SerialNumber,
|
||||||
CreationTime: time.Now().Format("2006-01-02 15:04:05"),
|
CreationTime: time.Now().Format("2006-01-02 15:04:05"),
|
||||||
HandlingFee: req.HandlingFee,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建记录
|
// 创建记录
|
||||||
@ -702,7 +672,6 @@ func UpdateReconciliation(req *bundle.ReconciliationInfo) (res *bundle.CommonRes
|
|||||||
PayTime: req.PayTime,
|
PayTime: req.PayTime,
|
||||||
PayStatus: int(req.PayStatus),
|
PayStatus: int(req.PayStatus),
|
||||||
SerialNumber: req.SerialNumber,
|
SerialNumber: req.SerialNumber,
|
||||||
HandlingFee: req.HandlingFee,
|
|
||||||
}
|
}
|
||||||
if err := app.ModuleClients.BundleDB.Model(&existing).Updates(updates).Error; err != nil {
|
if err := app.ModuleClients.BundleDB.Model(&existing).Updates(updates).Error; err != nil {
|
||||||
return nil, fmt.Errorf("更新对账单失败: %v", err)
|
return nil, fmt.Errorf("更新对账单失败: %v", err)
|
||||||
@ -791,65 +760,3 @@ func DeleteValueAddService(req *bundle.DeleteValueAddServiceRequest) (res *bundl
|
|||||||
res.Msg = msg.SuccessDeletedOrderInfo
|
res.Msg = msg.SuccessDeletedOrderInfo
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func ListUnfinishedInfos(req *bundle.AutoCreateUserAndOrderRequest) (res *bundle.UnfinishedInfos, err error) {
|
|
||||||
res = new(bundle.UnfinishedInfos)
|
|
||||||
res.UnfinishedInfos = make([]*bundle.UnfinishedInfo, 0)
|
|
||||||
|
|
||||||
// TODO 0.捞出指定数量的数据
|
|
||||||
infos := make([]*model.FieePaymentAuto, 0)
|
|
||||||
query := app.ModuleClients.BundleDB.Where("deleted_at is null")
|
|
||||||
if req.Num != 0 {
|
|
||||||
query.Limit(int(req.Num))
|
|
||||||
}
|
|
||||||
err = query.Find(&infos).Error
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, info := range infos {
|
|
||||||
unfinishedInfo := new(bundle.UnfinishedInfo)
|
|
||||||
unfinishedInfo.ID = uint32(info.ID)
|
|
||||||
unfinishedInfo.UserNum = info.UserNum
|
|
||||||
unfinishedInfo.UserName = info.UserName
|
|
||||||
unfinishedInfo.UserTelArea = info.UserTelArea
|
|
||||||
unfinishedInfo.UserTel = info.UserTel
|
|
||||||
unfinishedInfo.UserSex = info.UserSex
|
|
||||||
unfinishedInfo.Nationality = info.Nationality
|
|
||||||
unfinishedInfo.PlaceOfResidence = info.PlaceOfResidence
|
|
||||||
unfinishedInfo.DocumentType = int32(info.DocumentType)
|
|
||||||
unfinishedInfo.UserIdCardFrontUrl = info.UserIdCardFrontUrl
|
|
||||||
unfinishedInfo.UserIdCardReverseUrl = info.UserIdCardReverseUrl
|
|
||||||
unfinishedInfo.UserIdCardValidity = info.UserIdCardValidity
|
|
||||||
unfinishedInfo.OrderNo = info.OrderNo
|
|
||||||
unfinishedInfo.OrderPayAmount = info.OrderPayAmount
|
|
||||||
unfinishedInfo.OrderSettlementAmount = info.OrderSettlementAmount
|
|
||||||
unfinishedInfo.OrderFeeAmount = info.OrderFeeAmount
|
|
||||||
unfinishedInfo.OrderPayCurrency = info.OrderPayCurrency
|
|
||||||
unfinishedInfo.OrderAccountCurrency = info.OrderAccountCurrency
|
|
||||||
unfinishedInfo.PayTime = info.PayTime.Format("2006-01-02 15:04:05")
|
|
||||||
res.UnfinishedInfos = append(res.UnfinishedInfos, unfinishedInfo)
|
|
||||||
}
|
|
||||||
|
|
||||||
return res, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func SoftDeleteUnfinishedInfo(req *bundle.SoftDeleteUnfinishedInfoRequest) (res *bundle.CommonResponse, err error) {
|
|
||||||
res = new(bundle.CommonResponse)
|
|
||||||
|
|
||||||
exist := new(model.FieePaymentAuto)
|
|
||||||
// 查询未处理的数据
|
|
||||||
err = app.ModuleClients.BundleDB.Model(&model.FieePaymentAuto{}).
|
|
||||||
Where("id = ?", req.ID).
|
|
||||||
First(&exist).Error
|
|
||||||
if err != nil {
|
|
||||||
return nil, errors.New("数据不存在")
|
|
||||||
}
|
|
||||||
|
|
||||||
if err = app.ModuleClients.BundleDB.Where("id = ?", req.ID).
|
|
||||||
Delete(&model.FieePaymentAuto{}).Error; err != nil {
|
|
||||||
return res, errors.New("删除自动导入表数据失败")
|
|
||||||
}
|
|
||||||
|
|
||||||
return res, nil
|
|
||||||
}
|
|
||||||
|
@ -13,9 +13,6 @@ func CreateOrderRecord(req *bundle.OrderCreateRecord) (res *bundle.CommonRespons
|
|||||||
res = new(bundle.CommonResponse)
|
res = new(bundle.CommonResponse)
|
||||||
orderUUID := app.ModuleClients.SfNode.Generate().Base64()
|
orderUUID := app.ModuleClients.SfNode.Generate().Base64()
|
||||||
orderNo := utils.GetOrderNo()
|
orderNo := utils.GetOrderNo()
|
||||||
if req.OrderNo != "" {
|
|
||||||
orderNo = req.OrderNo
|
|
||||||
}
|
|
||||||
var addRecords []model.BundleOrderValueAdd
|
var addRecords []model.BundleOrderValueAdd
|
||||||
for _, i := range req.AddRecords {
|
for _, i := range req.AddRecords {
|
||||||
addRecords = append(addRecords, model.BundleOrderValueAdd{
|
addRecords = append(addRecords, model.BundleOrderValueAdd{
|
||||||
@ -37,7 +34,6 @@ func CreateOrderRecord(req *bundle.OrderCreateRecord) (res *bundle.CommonRespons
|
|||||||
Signature: req.Signature,
|
Signature: req.Signature,
|
||||||
SignedTime: req.SignedTime,
|
SignedTime: req.SignedTime,
|
||||||
Snapshot: req.Snapshot,
|
Snapshot: req.Snapshot,
|
||||||
HandlingFee: i.HandlingFee,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
orderRecord := &model.BundleOrderRecords{
|
orderRecord := &model.BundleOrderRecords{
|
||||||
@ -165,15 +161,3 @@ func DeleteValueAddService(req *bundle.DeleteValueAddServiceRequest) (res *bundl
|
|||||||
res, err = dao.DeleteValueAddService(req)
|
res, err = dao.DeleteValueAddService(req)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func ListUnfinishedInfos(req *bundle.AutoCreateUserAndOrderRequest) (res *bundle.UnfinishedInfos, err error) {
|
|
||||||
res = new(bundle.UnfinishedInfos)
|
|
||||||
res, err = dao.ListUnfinishedInfos(req)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func SoftDeleteUnfinishedInfo(req *bundle.SoftDeleteUnfinishedInfoRequest) (res *bundle.CommonResponse, err error) {
|
|
||||||
res = new(bundle.CommonResponse)
|
|
||||||
res, err = dao.SoftDeleteUnfinishedInfo(req)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@ -65,7 +65,6 @@ type BundleOrderValueAdd struct {
|
|||||||
Snapshot string `gorm:"column:snapshot;comment:快照" json:"snapshot"` //订单快照
|
Snapshot string `gorm:"column:snapshot;comment:快照" json:"snapshot"` //订单快照
|
||||||
CheckoutSessionId string `json:"checkoutSessionId" gorm:"column:checkout_session_id;type:varchar(1024);default:null;comment:checkoutSessionId"`
|
CheckoutSessionId string `json:"checkoutSessionId" gorm:"column:checkout_session_id;type:varchar(1024);default:null;comment:checkoutSessionId"`
|
||||||
CheckoutSessionUrl string `json:"checkoutSessionUrl" gorm:"column:checkout_session_url;type:varchar(1024);default:null;comment:checkoutSessionUrl"`
|
CheckoutSessionUrl string `json:"checkoutSessionUrl" gorm:"column:checkout_session_url;type:varchar(1024);default:null;comment:checkoutSessionUrl"`
|
||||||
HandlingFee string `gorm:"column:handling_fee;comment:手续费" json:"handlingFee"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 财务确认状态
|
// 财务确认状态
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
package model
|
|
||||||
|
|
||||||
import (
|
|
||||||
"gorm.io/gorm"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
// 用来自动导入 来创建用户和订单的 数据
|
|
||||||
type FieePaymentAuto struct {
|
|
||||||
gorm.Model
|
|
||||||
UserNum string `json:"userNum" gorm:"column:user_num;type:varchar(64);comment:用户编号"`
|
|
||||||
UserName string `json:"userName" gorm:"column:user_name;type:varchar(128);comment:用户姓名"`
|
|
||||||
UserTelArea string `json:"userTelArea" gorm:"column:user_tel_area;type:varchar(32);comment:用户手机号区号"`
|
|
||||||
UserTel string `json:"userTel" gorm:"column:user_tel;type:varchar(32);comment:用户手机号"`
|
|
||||||
UserSex string `json:"userSex" gorm:"column:user_sex;type:varchar(16);comment:用户性别"`
|
|
||||||
Nationality string `json:"nationality" gorm:"column:nationality;type:varchar(128);comment:国籍"`
|
|
||||||
PlaceOfResidence string `json:"placeOfResidence" gorm:"column:place_of_residence;type:varchar(512);comment:用户居住地"`
|
|
||||||
DocumentType int `json:"documentType" gorm:"column:document_type;type:varchar(512);comment:证件类型:1护照 2身份证 3驾驶证 4居住证 5自拍照 6社保卡"`
|
|
||||||
UserIdCardFrontUrl string `json:"userIdCardFrontUrl" gorm:"column:user_id_card_front_url;type:varchar(1024);comment:用户身份证正面"`
|
|
||||||
UserIdCardReverseUrl string `json:"userIdCardReverseUrl" gorm:"column:user_id_card_reverse_url;type:varchar(1024);comment:用户身份证反面"`
|
|
||||||
UserIdCardValidity string `json:"userIdCardValidity" gorm:"column:user_id_card_validity;type:varchar(64);comment:证件有效期"`
|
|
||||||
OrderNo string `json:"orderNo" gorm:"column:order_no;type:varchar(128);comment:订单编号"`
|
|
||||||
OrderPayAmount string `gorm:"column:order_pay_amount;type:decimal(20,2);comment:订单支付金额" json:"orderPayAmount"`
|
|
||||||
OrderSettlementAmount string `gorm:"column:order_settlement_amount;type:decimal(20,2);comment:订单结算金额" json:"orderSettlementAmount"`
|
|
||||||
OrderFeeAmount string `gorm:"column:order_fee_amount;type:decimal(20,2);comment:订单手续费金额" json:"orderFeeAmount"`
|
|
||||||
OrderPayCurrency string `json:"orderPayCurrency" gorm:"column:order_pay_currency;type:varchar(16);comment:支付时的币种:cny人民币,usd美元"`
|
|
||||||
OrderAccountCurrency string `json:"orderAccountCurrency" gorm:"column:order_account_currency;type:varchar(16);comment:账户上的币种: 暂时固定usd美元"`
|
|
||||||
PayTime time.Time `gorm:"column:pay_time;type:datetime;default:null;comment:支付成功时间" json:"payTime"`
|
|
||||||
}
|
|
@ -17,5 +17,4 @@ type Reconciliation struct {
|
|||||||
PayStatus int `gorm:"column:pay_status;comment:支付状态" json:"payStatus"`
|
PayStatus int `gorm:"column:pay_status;comment:支付状态" json:"payStatus"`
|
||||||
SerialNumber string `gorm:"column:serial_number;comment:流水号" json:"serialNumber"`
|
SerialNumber string `gorm:"column:serial_number;comment:流水号" json:"serialNumber"`
|
||||||
CreationTime string `gorm:"column:creation_time;comment:创建时间" json:"creationTime"`
|
CreationTime string `gorm:"column:creation_time;comment:创建时间" json:"creationTime"`
|
||||||
HandlingFee string `gorm:"column:handling_fee;comment:手续费" json:"handlingFee"`
|
|
||||||
}
|
}
|
||||||
|
@ -74,10 +74,6 @@ service Bundle {
|
|||||||
rpc CreateReconciliation(ReconciliationInfo) returns (CommonResponse) {} // 创建对账单
|
rpc CreateReconciliation(ReconciliationInfo) returns (CommonResponse) {} // 创建对账单
|
||||||
rpc UpdateReconciliation(ReconciliationInfo) returns (CommonResponse) {} // 更新对账单
|
rpc UpdateReconciliation(ReconciliationInfo) returns (CommonResponse) {} // 更新对账单
|
||||||
rpc UpdateReconciliationStatusBySerialNumber(UpdateStatusAndPayTimeBySerialNumber) returns (CommonResponse) {} // 更新对账单
|
rpc UpdateReconciliationStatusBySerialNumber(UpdateStatusAndPayTimeBySerialNumber) returns (CommonResponse) {} // 更新对账单
|
||||||
|
|
||||||
// 查出没处理的数据
|
|
||||||
rpc ListUnfinishedInfos(AutoCreateUserAndOrderRequest) returns (UnfinishedInfos) {} // 查出没处理的数据
|
|
||||||
rpc SoftDeleteUnfinishedInfo(SoftDeleteUnfinishedInfoRequest) returns (CommonResponse) {} // 软删除
|
|
||||||
}
|
}
|
||||||
message DeleteValueAddServiceRequest{
|
message DeleteValueAddServiceRequest{
|
||||||
string orderNo = 1;
|
string orderNo = 1;
|
||||||
@ -120,7 +116,6 @@ message ReconciliationInfo{
|
|||||||
int32 payStatus = 12;
|
int32 payStatus = 12;
|
||||||
string serialNumber = 13;
|
string serialNumber = 13;
|
||||||
uint64 userID = 14;
|
uint64 userID = 14;
|
||||||
string handlingFee = 15;
|
|
||||||
}
|
}
|
||||||
message OrderInfoByOrderNoRequest{
|
message OrderInfoByOrderNoRequest{
|
||||||
string orderNo = 1;
|
string orderNo = 1;
|
||||||
@ -159,7 +154,6 @@ message OrderCreateRecord{
|
|||||||
string snapshot = 18 [json_name = "snapshot"];
|
string snapshot = 18 [json_name = "snapshot"];
|
||||||
int32 payType = 19 [json_name = "payType"];
|
int32 payType = 19 [json_name = "payType"];
|
||||||
repeated OrderCreateAddRecord addRecords = 20 [json_name = "addRecords"]; //增值服务
|
repeated OrderCreateAddRecord addRecords = 20 [json_name = "addRecords"]; //增值服务
|
||||||
string orderNo = 21 [json_name = "orderNo"];
|
|
||||||
}
|
}
|
||||||
message OrderCreateAddRecord{
|
message OrderCreateAddRecord{
|
||||||
int32 serviceType = 1 [json_name = "serviceType"];
|
int32 serviceType = 1 [json_name = "serviceType"];
|
||||||
@ -170,7 +164,6 @@ message OrderCreateAddRecord{
|
|||||||
string unit = 6 [json_name = "unit"];
|
string unit = 6 [json_name = "unit"];
|
||||||
int32 source = 7 [json_name = "source"];
|
int32 source = 7 [json_name = "source"];
|
||||||
int32 paymentStatus = 8 [json_name = "paymentStatus"];
|
int32 paymentStatus = 8 [json_name = "paymentStatus"];
|
||||||
string handlingFee = 9 [json_name = "handlingFee"];
|
|
||||||
}
|
}
|
||||||
message OrderRecordsRequestV2{
|
message OrderRecordsRequestV2{
|
||||||
string customerName = 1;
|
string customerName = 1;
|
||||||
@ -187,8 +180,6 @@ message OrderRecordsRequestV2{
|
|||||||
int32 page = 12;
|
int32 page = 12;
|
||||||
int32 pageSize = 13;
|
int32 pageSize = 13;
|
||||||
repeated int64 userIds = 14;
|
repeated int64 userIds = 14;
|
||||||
string bundlePayStart = 15;
|
|
||||||
string bundlePayEnd = 16;
|
|
||||||
}
|
}
|
||||||
message OrderRecordsResponseV2{
|
message OrderRecordsResponseV2{
|
||||||
repeated OrderBundleRecordInfo bundleInfo = 1;
|
repeated OrderBundleRecordInfo bundleInfo = 1;
|
||||||
@ -206,14 +197,13 @@ message OrderBundleRecordInfo{
|
|||||||
float amount = 7;
|
float amount = 7;
|
||||||
repeated OrderAddBundleRecordInfo addBundleInfo = 8;
|
repeated OrderAddBundleRecordInfo addBundleInfo = 8;
|
||||||
int64 customerId = 9;
|
int64 customerId = 9;
|
||||||
string payTime = 10;
|
|
||||||
}
|
}
|
||||||
message OrderAddBundleRecordInfo{
|
message OrderAddBundleRecordInfo{
|
||||||
string orderAddNo = 1;
|
string orderAddNo = 1;
|
||||||
float amount = 2;
|
float amount = 2;
|
||||||
float settlementAmount = 3;
|
float settlementAmount = 3;
|
||||||
int32 currencyType = 4;
|
int32 currencyType = 4;
|
||||||
string handlingFee = 5;
|
float handlingFee = 5;
|
||||||
float exchangeRate = 6;
|
float exchangeRate = 6;
|
||||||
string orderAddCreateAt = 7;
|
string orderAddCreateAt = 7;
|
||||||
int32 addPayStatus = 8;
|
int32 addPayStatus = 8;
|
||||||
@ -221,7 +211,6 @@ message OrderAddBundleRecordInfo{
|
|||||||
string snapshot = 10;
|
string snapshot = 10;
|
||||||
string CheckoutSessionId = 11;
|
string CheckoutSessionId = 11;
|
||||||
string CustomerID = 12;
|
string CustomerID = 12;
|
||||||
int32 videoNum = 13;
|
|
||||||
}
|
}
|
||||||
message PackagePriceAndTimeResponse{
|
message PackagePriceAndTimeResponse{
|
||||||
float price = 1 [json_name = "price"];
|
float price = 1 [json_name = "price"];
|
||||||
@ -839,38 +828,4 @@ message ConfirmWorkReq{
|
|||||||
|
|
||||||
message ConfirmWorkResp{
|
message ConfirmWorkResp{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message AutoCreateUserAndOrderRequest {
|
|
||||||
int32 num = 1; // 处理数量
|
|
||||||
}
|
|
||||||
|
|
||||||
message UnfinishedInfos {
|
|
||||||
repeated UnfinishedInfo unfinishedInfos = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message UnfinishedInfo {
|
|
||||||
uint32 ID = 1;
|
|
||||||
string userNum = 2;
|
|
||||||
string userName = 3;
|
|
||||||
string userTelArea = 4;
|
|
||||||
string userTel = 5;
|
|
||||||
string userSex = 6;
|
|
||||||
string nationality = 7;
|
|
||||||
string placeOfResidence = 8;
|
|
||||||
int32 documentType = 9;
|
|
||||||
string userIdCardFrontUrl = 10;
|
|
||||||
string userIdCardReverseUrl = 11;
|
|
||||||
string userIdCardValidity = 12;
|
|
||||||
string orderNo = 13;
|
|
||||||
string orderPayAmount = 14;
|
|
||||||
string orderSettlementAmount = 15;
|
|
||||||
string orderFeeAmount = 16;
|
|
||||||
string orderPayCurrency = 17;
|
|
||||||
string orderAccountCurrency = 18;
|
|
||||||
string payTime = 19;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SoftDeleteUnfinishedInfoRequest {
|
|
||||||
uint32 ID = 1;
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -447,22 +447,3 @@ func (this *ConfirmWorkReq) Validate() error {
|
|||||||
func (this *ConfirmWorkResp) Validate() error {
|
func (this *ConfirmWorkResp) Validate() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (this *AutoCreateUserAndOrderRequest) Validate() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (this *UnfinishedInfos) Validate() error {
|
|
||||||
for _, item := range this.UnfinishedInfos {
|
|
||||||
if item != nil {
|
|
||||||
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
||||||
return github_com_mwitkow_go_proto_validators.FieldError("UnfinishedInfos", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (this *UnfinishedInfo) Validate() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (this *SoftDeleteUnfinishedInfoRequest) Validate() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-triple v1.0.8
|
// - protoc-gen-go-triple v1.0.8
|
||||||
// - protoc v4.24.0--rc1
|
// - protoc v3.20.3
|
||||||
// source: pb/bundle.proto
|
// source: pb/bundle.proto
|
||||||
|
|
||||||
package bundle
|
package bundle
|
||||||
@ -50,11 +50,11 @@ type BundleClient interface {
|
|||||||
OrderRecordsListV2(ctx context.Context, in *OrderRecordsRequestV2, opts ...grpc_go.CallOption) (*OrderRecordsResponseV2, common.ErrorWithAttachment)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment)
|
||||||
@ -75,14 +75,11 @@ type BundleClient interface {
|
|||||||
GetVedioWorkDetail(ctx context.Context, in *GetVedioWorkDetailReq, opts ...grpc_go.CallOption) (*GetVedioeWorkDetailResp, common.ErrorWithAttachment)
|
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)
|
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)
|
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)
|
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)
|
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)
|
UpdateReconciliation(ctx context.Context, in *ReconciliationInfo, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||||||
UpdateReconciliationStatusBySerialNumber(ctx context.Context, in *UpdateStatusAndPayTimeBySerialNumber, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
UpdateReconciliationStatusBySerialNumber(ctx context.Context, in *UpdateStatusAndPayTimeBySerialNumber, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||||||
// 查出没处理的数据
|
|
||||||
ListUnfinishedInfos(ctx context.Context, in *AutoCreateUserAndOrderRequest, opts ...grpc_go.CallOption) (*UnfinishedInfos, common.ErrorWithAttachment)
|
|
||||||
SoftDeleteUnfinishedInfo(ctx context.Context, in *SoftDeleteUnfinishedInfoRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type bundleClient struct {
|
type bundleClient struct {
|
||||||
@ -137,8 +134,6 @@ type BundleClientImpl struct {
|
|||||||
CreateReconciliation func(ctx context.Context, in *ReconciliationInfo) (*CommonResponse, error)
|
CreateReconciliation func(ctx context.Context, in *ReconciliationInfo) (*CommonResponse, error)
|
||||||
UpdateReconciliation func(ctx context.Context, in *ReconciliationInfo) (*CommonResponse, error)
|
UpdateReconciliation func(ctx context.Context, in *ReconciliationInfo) (*CommonResponse, error)
|
||||||
UpdateReconciliationStatusBySerialNumber func(ctx context.Context, in *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error)
|
UpdateReconciliationStatusBySerialNumber func(ctx context.Context, in *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error)
|
||||||
ListUnfinishedInfos func(ctx context.Context, in *AutoCreateUserAndOrderRequest) (*UnfinishedInfos, error)
|
|
||||||
SoftDeleteUnfinishedInfo func(ctx context.Context, in *SoftDeleteUnfinishedInfoRequest) (*CommonResponse, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient {
|
func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient {
|
||||||
@ -435,18 +430,6 @@ func (c *bundleClient) UpdateReconciliationStatusBySerialNumber(ctx context.Cont
|
|||||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateReconciliationStatusBySerialNumber", in, out)
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateReconciliationStatusBySerialNumber", in, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *bundleClient) ListUnfinishedInfos(ctx context.Context, in *AutoCreateUserAndOrderRequest, opts ...grpc_go.CallOption) (*UnfinishedInfos, common.ErrorWithAttachment) {
|
|
||||||
out := new(UnfinishedInfos)
|
|
||||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
||||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ListUnfinishedInfos", in, out)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *bundleClient) SoftDeleteUnfinishedInfo(ctx context.Context, in *SoftDeleteUnfinishedInfoRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) {
|
|
||||||
out := new(CommonResponse)
|
|
||||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
||||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/SoftDeleteUnfinishedInfo", in, out)
|
|
||||||
}
|
|
||||||
|
|
||||||
// BundleServer is the server API for Bundle service.
|
// BundleServer is the server API for Bundle service.
|
||||||
// All implementations must embed UnimplementedBundleServer
|
// All implementations must embed UnimplementedBundleServer
|
||||||
// for forward compatibility
|
// for forward compatibility
|
||||||
@ -473,11 +456,11 @@ type BundleServer interface {
|
|||||||
OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error)
|
OrderRecordsListV2(context.Context, *OrderRecordsRequestV2) (*OrderRecordsResponseV2, error)
|
||||||
OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error)
|
OrderListByOrderNo(context.Context, *OrderInfoByOrderNoRequest) (*OrderInfoByOrderNoResp, error)
|
||||||
OnlyAddValueListByOrderNo(context.Context, *OnlyAddValueListByOrderNoRequest) (*OnlyAddValueListByOrderNoResp, error)
|
OnlyAddValueListByOrderNo(context.Context, *OnlyAddValueListByOrderNoRequest) (*OnlyAddValueListByOrderNoResp, error)
|
||||||
//增值套餐
|
// 增值套餐
|
||||||
CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error)
|
CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error)
|
||||||
ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error)
|
ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error)
|
||||||
ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error)
|
ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error)
|
||||||
//新增值服务
|
// 新增值服务
|
||||||
SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error)
|
SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error)
|
||||||
ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error)
|
ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error)
|
||||||
ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error)
|
ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error)
|
||||||
@ -498,14 +481,11 @@ type BundleServer interface {
|
|||||||
GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error)
|
GetVedioWorkDetail(context.Context, *GetVedioWorkDetailReq) (*GetVedioeWorkDetailResp, error)
|
||||||
ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error)
|
ToBeComfirmedWorks(context.Context, *ToBeComfirmedWorksReq) (*ToBeComfirmedWorksResp, error)
|
||||||
ConfirmWork(context.Context, *ConfirmWorkReq) (*ConfirmWorkResp, error)
|
ConfirmWork(context.Context, *ConfirmWorkReq) (*ConfirmWorkResp, error)
|
||||||
//对账单
|
// 对账单
|
||||||
GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error)
|
GetReconciliationList(context.Context, *GetReconciliationListReq) (*GetReconciliationListResp, error)
|
||||||
CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error)
|
CreateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error)
|
||||||
UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error)
|
UpdateReconciliation(context.Context, *ReconciliationInfo) (*CommonResponse, error)
|
||||||
UpdateReconciliationStatusBySerialNumber(context.Context, *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error)
|
UpdateReconciliationStatusBySerialNumber(context.Context, *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error)
|
||||||
// 查出没处理的数据
|
|
||||||
ListUnfinishedInfos(context.Context, *AutoCreateUserAndOrderRequest) (*UnfinishedInfos, error)
|
|
||||||
SoftDeleteUnfinishedInfo(context.Context, *SoftDeleteUnfinishedInfoRequest) (*CommonResponse, error)
|
|
||||||
mustEmbedUnimplementedBundleServer()
|
mustEmbedUnimplementedBundleServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -655,12 +635,6 @@ func (UnimplementedBundleServer) UpdateReconciliation(context.Context, *Reconcil
|
|||||||
func (UnimplementedBundleServer) UpdateReconciliationStatusBySerialNumber(context.Context, *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error) {
|
func (UnimplementedBundleServer) UpdateReconciliationStatusBySerialNumber(context.Context, *UpdateStatusAndPayTimeBySerialNumber) (*CommonResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateReconciliationStatusBySerialNumber not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateReconciliationStatusBySerialNumber not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedBundleServer) ListUnfinishedInfos(context.Context, *AutoCreateUserAndOrderRequest) (*UnfinishedInfos, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method ListUnfinishedInfos not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedBundleServer) SoftDeleteUnfinishedInfo(context.Context, *SoftDeleteUnfinishedInfoRequest) (*CommonResponse, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method SoftDeleteUnfinishedInfo not implemented")
|
|
||||||
}
|
|
||||||
func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
||||||
s.proxyImpl = impl
|
s.proxyImpl = impl
|
||||||
}
|
}
|
||||||
@ -2052,64 +2026,6 @@ func _Bundle_UpdateReconciliationStatusBySerialNumber_Handler(srv interface{}, c
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Bundle_ListUnfinishedInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(AutoCreateUserAndOrderRequest)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
|
||||||
args := []interface{}{}
|
|
||||||
args = append(args, in)
|
|
||||||
md, _ := metadata.FromIncomingContext(ctx)
|
|
||||||
invAttachment := make(map[string]interface{}, len(md))
|
|
||||||
for k, v := range md {
|
|
||||||
invAttachment[k] = v
|
|
||||||
}
|
|
||||||
invo := invocation.NewRPCInvocation("ListUnfinishedInfos", args, invAttachment)
|
|
||||||
if interceptor == nil {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
info := &grpc_go.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Bundle_SoftDeleteUnfinishedInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(SoftDeleteUnfinishedInfoRequest)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
|
||||||
args := []interface{}{}
|
|
||||||
args = append(args, in)
|
|
||||||
md, _ := metadata.FromIncomingContext(ctx)
|
|
||||||
invAttachment := make(map[string]interface{}, len(md))
|
|
||||||
for k, v := range md {
|
|
||||||
invAttachment[k] = v
|
|
||||||
}
|
|
||||||
invo := invocation.NewRPCInvocation("SoftDeleteUnfinishedInfo", args, invAttachment)
|
|
||||||
if interceptor == nil {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
info := &grpc_go.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bundle_ServiceDesc is the grpc_go.ServiceDesc for Bundle service.
|
// Bundle_ServiceDesc is the grpc_go.ServiceDesc for Bundle service.
|
||||||
// It's only intended for direct use with grpc_go.RegisterService,
|
// It's only intended for direct use with grpc_go.RegisterService,
|
||||||
// and not to be introspected or modified (even as a copy)
|
// and not to be introspected or modified (even as a copy)
|
||||||
@ -2305,14 +2221,6 @@ var Bundle_ServiceDesc = grpc_go.ServiceDesc{
|
|||||||
MethodName: "UpdateReconciliationStatusBySerialNumber",
|
MethodName: "UpdateReconciliationStatusBySerialNumber",
|
||||||
Handler: _Bundle_UpdateReconciliationStatusBySerialNumber_Handler,
|
Handler: _Bundle_UpdateReconciliationStatusBySerialNumber_Handler,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
MethodName: "ListUnfinishedInfos",
|
|
||||||
Handler: _Bundle_ListUnfinishedInfos_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "SoftDeleteUnfinishedInfo",
|
|
||||||
Handler: _Bundle_SoftDeleteUnfinishedInfo_Handler,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Streams: []grpc_go.StreamDesc{},
|
Streams: []grpc_go.StreamDesc{},
|
||||||
Metadata: "pb/bundle.proto",
|
Metadata: "pb/bundle.proto",
|
||||||
|
Loading…
Reference in New Issue
Block a user