This commit is contained in:
蒋海成 2025-03-12 15:54:22 +08:00
parent 09565266ca
commit b537eb70a1
2 changed files with 24 additions and 18 deletions

View File

@ -72,15 +72,17 @@ func BundleList(req *bundle.BundleListRequest) (res *bundle.BundleListResponse,
for _, bundleProfile := range bundles { for _, bundleProfile := range bundles {
res.Bundles = append(res.Bundles, &bundle.BundleProfile{ res.Bundles = append(res.Bundles, &bundle.BundleProfile{
Uuid: bundleProfile.UUID, Uuid: bundleProfile.UUID,
Name: bundleProfile.Name, Name: bundleProfile.Name,
Price: bundleProfile.Price, Price: bundleProfile.Price,
PriceType: bundleProfile.PriceType, PriceType: bundleProfile.PriceType,
Contract: bundleProfile.Contract, Contract: bundleProfile.Contract,
Content: bundleProfile.Content, Content: bundleProfile.Content,
Language: bundleProfile.Language, Language: bundleProfile.Language,
CreatedAt: bundleProfile.CreatedAt.String(), CreatedAt: bundleProfile.CreatedAt.String(),
UpdatedAt: bundleProfile.UpdatedAt.String(), UpdatedAt: bundleProfile.UpdatedAt.String(),
CompanySign: bundleProfile.CompanySign,
ContractDuration: int64(bundleProfile.ContractDuration),
}) })
} }
@ -108,15 +110,17 @@ func BundleDetail(uuid string) (res *bundle.BundleProfile, err error) {
//_ = copier.CopyWithOption(&res, bundle, copier.Option{DeepCopy: true}) //_ = copier.CopyWithOption(&res, bundle, copier.Option{DeepCopy: true})
res = &bundle.BundleProfile{ res = &bundle.BundleProfile{
Uuid: bundleProfile.UUID, Uuid: bundleProfile.UUID,
Name: bundleProfile.Name, Name: bundleProfile.Name,
Price: bundleProfile.Price, Price: bundleProfile.Price,
PriceType: bundleProfile.PriceType, PriceType: bundleProfile.PriceType,
Contract: bundleProfile.Contract, Contract: bundleProfile.Contract,
Content: bundleProfile.Content, Content: bundleProfile.Content,
Language: bundleProfile.Language, Language: bundleProfile.Language,
CreatedAt: bundleProfile.CreatedAt.String(), CreatedAt: bundleProfile.CreatedAt.String(),
UpdatedAt: bundleProfile.UpdatedAt.String(), UpdatedAt: bundleProfile.UpdatedAt.String(),
CompanySign: bundleProfile.CompanySign,
ContractDuration: int64(bundleProfile.ContractDuration),
} }
return return
} }

View File

@ -131,6 +131,7 @@ func OrderRecordsList(req *bundle.OrderRecordsRequest) (res *bundle.OrderRecords
CheckoutSessionId: record.CheckoutSessionId, CheckoutSessionId: record.CheckoutSessionId,
CheckoutSessionUrl: record.CheckoutSessionUrl, CheckoutSessionUrl: record.CheckoutSessionUrl,
Status: record.Status, Status: record.Status,
ContractNo: record.ContractNo,
}) })
} }
@ -185,6 +186,7 @@ func OrderRecordDetail(req *bundle.OrderRecordsDetailRequest) (res *bundle.Order
CheckoutSessionId: orderRecord.CheckoutSessionId, CheckoutSessionId: orderRecord.CheckoutSessionId,
CheckoutSessionUrl: orderRecord.CheckoutSessionUrl, CheckoutSessionUrl: orderRecord.CheckoutSessionUrl,
Status: orderRecord.Status, Status: orderRecord.Status,
ContractNo: orderRecord.ContractNo,
} }
return return
} }