feat: import services and standardize Go 1.26.5
This commit is contained in:
5
apps/ec/order/test/cart/cart_create.http
Normal file
5
apps/ec/order/test/cart/cart_create.http
Normal file
@@ -0,0 +1,5 @@
|
||||
POST http://127.0.0.1:12441/order.Cart/Create
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{"product_identity":"0197077c-7d8b-74d9-b4a4-e824974b93d8","number":1}
|
||||
7
apps/ec/order/test/cart/cart_del.http
Normal file
7
apps/ec/order/test/cart/cart_del.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Cart/Delete
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id": ["3"]
|
||||
}
|
||||
8
apps/ec/order/test/cart/cart_fetch.http
Normal file
8
apps/ec/order/test/cart/cart_fetch.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://127.0.0.1:12441/order.Cart/Fetch
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"passport":"1",
|
||||
"passport_identity":"0197e8dc-8711-75f5-851f-0dcd63f81d5c"
|
||||
}
|
||||
5
apps/ec/order/test/cart/cart_modify.http
Normal file
5
apps/ec/order/test/cart/cart_modify.http
Normal file
@@ -0,0 +1,5 @@
|
||||
POST http://127.0.0.1:12441/order.Cart/Modify
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{"updates":[{"id":5,"number":1},{"id":6,"number":1},{"id":7,"number":1},{"id":8,"number":4},{"id":9,"number":4}]}
|
||||
7
apps/ec/order/test/coupon/coupon_by_status.http
Normal file
7
apps/ec/order/test/coupon/coupon_by_status.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Coupon/ByStatus
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"status": 1
|
||||
}
|
||||
11
apps/ec/order/test/lint/gosec
Normal file
11
apps/ec/order/test/lint/gosec
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"Golang errors": {},
|
||||
"Issues": [],
|
||||
"Stats": {
|
||||
"files": 24,
|
||||
"lines": 2377,
|
||||
"nosec": 0,
|
||||
"found": 0
|
||||
},
|
||||
"GosecVersion": "dev"
|
||||
}
|
||||
7
apps/ec/order/test/mgt/order_cancel.http
Normal file
7
apps/ec/order/test/mgt/order_cancel.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Mgt/OrderCancel
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"01966c58-dde6-73e6-8232-df8356fe89d7"
|
||||
}
|
||||
16
apps/ec/order/test/mgt/order_create.http
Normal file
16
apps/ec/order/test/mgt/order_create.http
Normal file
@@ -0,0 +1,16 @@
|
||||
POST http://127.0.0.1:12441/order.Mgt/OrderCreate
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
|
||||
|
||||
"address_identity":"01966c38-7d46-726d-815a-b81baa08e0a6",
|
||||
"spec":[
|
||||
{
|
||||
"product_identity":"01967b97-a41e-757f-ad53-9d87803cdaf2",
|
||||
"number":10
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
7
apps/ec/order/test/mgt/order_get.http
Normal file
7
apps/ec/order/test/mgt/order_get.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Mgt/OrderGet
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"019685f8-94cb-7bc2-afd4-4a72473299ce"
|
||||
}
|
||||
8
apps/ec/order/test/mgt/order_list_by_store.http
Normal file
8
apps/ec/order/test/mgt/order_list_by_store.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://127.0.0.1:12441/order.Mgt/OrderListByStore
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"agency":"1",
|
||||
"store_identity":"01965b51-5344-7218-a9b9-bc71031f6f10"
|
||||
}
|
||||
8
apps/ec/order/test/mgt/order_returnable.http
Normal file
8
apps/ec/order/test/mgt/order_returnable.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://127.0.0.1:12441/order.Mgt/OrderReturnable
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"0196a98c-59cb-7a84-8fe0-8d9cc9ee1f83",
|
||||
"approve":1
|
||||
}
|
||||
28
apps/ec/order/test/rpc/bisic_test.go
Normal file
28
apps/ec/order/test/rpc/bisic_test.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/utils"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
"google.golang.org/grpc/metadata"
|
||||
)
|
||||
|
||||
var url = "127.0.0.1:12442"
|
||||
|
||||
var token = os.Getenv("BSM_ORDER_TOKEN")
|
||||
|
||||
func GetCoon() (*grpc.ClientConn, context.Context) {
|
||||
md := metadata.New(map[string]string{"request_id": utils.UUID(), "workspace": "scf"})
|
||||
md.Append("authorization", token)
|
||||
|
||||
ctx := metadata.NewOutgoingContext(context.Background(), md)
|
||||
// 建立GRPC连接
|
||||
conn, err := grpc.NewClient(url, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return conn, ctx
|
||||
}
|
||||
87
apps/ec/order/test/rpc/cart_test.go
Normal file
87
apps/ec/order/test/rpc/cart_test.go
Normal file
@@ -0,0 +1,87 @@
|
||||
//go:build integration
|
||||
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
pb "git.apinb.com/bsm-ec/order/pb"
|
||||
)
|
||||
|
||||
func TestAdd(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewCartClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.Create(ctx, &pb.CartAddRequest{
|
||||
CartIdentity: "10b8b3a0-9679-17d0-bb86-0ef402f390d6",
|
||||
PassportIdentity: "cwG76v3OIadIvTqTmAM49",
|
||||
ProductId: 3,
|
||||
ProductArgs: "",
|
||||
Number: 2,
|
||||
ProductIdentity: "5ad0134f-691b-46c6-9b6f-d067607f769d",
|
||||
SpecId: 12,
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
|
||||
func TestSet(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
clent := pb.NewCartClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.CartSetRequest{
|
||||
Identity: "dc4983f1-f44f-4727-acda-874365ac186a",
|
||||
Number: 12,
|
||||
// UnitPrice: 1,
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := clent.Modify(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
clent := pb.NewCartClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.CartGetRequest{
|
||||
//CartIdentity: "10b8b3a0-9679-17d0-bb86-0ef402f390d6",
|
||||
PassportIdentity: "cwG76v3OIadIvTqTmAM49",
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := clent.Fetch(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
func TestDel(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewCartClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.Delete(ctx, &pb.CartDelRequest{
|
||||
Id: []int64{1},
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
23
apps/ec/order/test/rpc/coupon_test.go
Normal file
23
apps/ec/order/test/rpc/coupon_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//go:build integration
|
||||
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
pb "git.apinb.com/bsm-ec/order/pb"
|
||||
)
|
||||
|
||||
func TestByStatus(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewCouponClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.ByStatus(ctx, &pb.Status{
|
||||
Status: 1,
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
30
apps/ec/order/test/rpc/mgt_test.go
Normal file
30
apps/ec/order/test/rpc/mgt_test.go
Normal file
@@ -0,0 +1,30 @@
|
||||
//go:build integration
|
||||
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
pb "git.apinb.com/bsm-ec/order/pb"
|
||||
)
|
||||
|
||||
func TestOrderListByStore(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
client := pb.NewMgtClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.OrderListByStoreRequest{
|
||||
PageNo: 1,
|
||||
PageSize: 5,
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.OrderListByStore(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, _ := json.Marshal(res)
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
23
apps/ec/order/test/rpc/rpc.go
Normal file
23
apps/ec/order/test/rpc/rpc.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package rpc
|
||||
|
||||
/*
|
||||
func main() {
|
||||
md := metadata.New(map[string]string{"request_id": utils.UUID(), "workspace": "scf"})
|
||||
ctx := metadata.NewOutgoingContext(context.Background(), md)
|
||||
|
||||
// 建立GRPC连接
|
||||
conn, err := grpc.Dial("127.0.0.1:12201", grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer conn.Close()
|
||||
c := pb.NewCheckClient(conn)
|
||||
r, err := c.Hello(ctx, &pb.Crc{
|
||||
Code: "david",
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的消息: %s", r.Message)
|
||||
}
|
||||
*/
|
||||
189
apps/ec/order/test/rpc/summary_test.go
Normal file
189
apps/ec/order/test/rpc/summary_test.go
Normal file
@@ -0,0 +1,189 @@
|
||||
//go:build integration
|
||||
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
pb "git.apinb.com/bsm-ec/order/pb"
|
||||
)
|
||||
|
||||
func TestQuickCreateByToken(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
|
||||
data := pb.QuickCreateByProductRequest{
|
||||
PartnerId: 5,
|
||||
ProductIdentity: "a34d83f3-f09c-42e8-8c2c-85d5eba363c3",
|
||||
Number: 10,
|
||||
SpecIdentity: "ca0a6439-7e8f-4203-8e13-b29529222b1b",
|
||||
StoreIdentity: "B9355263-4983-5BAA-631A-046B453480C8",
|
||||
AddressIdentity: "c01a1c75-5b5b-460f-9335-858029e9617f",
|
||||
DeliveryTime: "2024-06-27 00:00:00",
|
||||
MemberIdentity: "1e280531-8ffd-4cf8-b445-f37ce1807685",
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := clent.QuickCreateByProduct(ctx, &data)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
|
||||
func TestSubmit(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
client := pb.NewSummaryClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.SubmitRequest{
|
||||
Id: []string{"68ed35da-2ed8-458b-8669-07ade375e8cf"},
|
||||
PartnerId: 5,
|
||||
StoreIdentity: "B9355263-4983-5BAA-631A-046B453480C8",
|
||||
AddressIdentity: "b5d9173d-847d-417d-946e-750db94ca3b6",
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.Submit(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
func TestCheck(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.Check(ctx, &pb.Empty{})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
func TestGetDetail(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
client := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
data := pb.IdentRequest{
|
||||
Identity: "78d9d2e9-8c63-4ff4-a6ee-4b2234944fcb",
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.Get(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
|
||||
func TestSummaryList(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
client := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
// Unpaid:未付款
|
||||
// Paid:已付款
|
||||
// NotDelivered:未发货
|
||||
// Delivered:已发货
|
||||
// NotComment:待评论
|
||||
data := pb.SummaryListRequest{
|
||||
// Type: "Paid",
|
||||
OrderStatus: 2,
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.List(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
func TestConfirm(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.Confirm(ctx, &pb.ConfirmRequest{
|
||||
OrderNo: "2437105418797837",
|
||||
AddressIdentity: "10",
|
||||
CouponIdentity: "c3d9af1d-d26d-c313-a5df-091ad8d2acf8",
|
||||
Remark: "测试信息",
|
||||
LogisticsFee: 4,
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
func TestCancel(t *testing.T) {
|
||||
coon, ctx := GetCoon()
|
||||
clent := pb.NewSummaryClient(coon)
|
||||
defer coon.Close()
|
||||
res, err := clent.Cancel(ctx, &pb.CancelRequest{
|
||||
OrderNo: "2437105418797837",
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", res)
|
||||
}
|
||||
func TestQuickCreateByProduct(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
client := pb.NewSummaryClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.QuickCreateByProductRequest{
|
||||
PartnerId: 5,
|
||||
StoreIdentity: "B9355263-4983-5BAA-631A-046B453480C8",
|
||||
ProductIdentity: "a34d83f3-f09c-42e8-8c2c-85d5eba363c3",
|
||||
Number: 2,
|
||||
Args: "{\"id\":\"11\",\"identity\":\"bd6b0d21-97d9-4b48-80d1-df28d02b444c\",\"product_id\":\"a8ec80f3-7934-4558-912e-31b4bda9428d\",\"title\":\"瓶数02\",\"stock_type\":2,\"stock\":\"0\",\"price\":\"11300\",\"direct_sales\":\"0\",\"tp_type\":0,\"ds_tp_type\":0,\"img\":\"\",\"spec_no\":\"918946794533509425\"}",
|
||||
AddressIdentity: "c01a1c75-5b5b-460f-9335-858029e9617f",
|
||||
DeliveryTime: "",
|
||||
SpecIdentity: "ca0a6439-7e8f-4203-8e13-b29529222b1b",
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.QuickCreateByProduct(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
func TestSimulatePay(t *testing.T) {
|
||||
conn, ctx := GetCoon()
|
||||
client := pb.NewSummaryClient(conn)
|
||||
|
||||
defer conn.Close()
|
||||
data := pb.SimulatePayRequest{
|
||||
Identity: []string{"d78e4521-1610-494c-a12e-20211301fa31"},
|
||||
}
|
||||
re, _ := json.Marshal(&data)
|
||||
fmt.Printf("发送的测试消息: %s\n", re)
|
||||
res, err := client.SimulatePay(ctx, &data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s, err := json.Marshal(res)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的测试消息: %s", s)
|
||||
}
|
||||
7
apps/ec/order/test/summary/cancel.http
Normal file
7
apps/ec/order/test/summary/cancel.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/Cancel
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"order_no":"2542614613018743"
|
||||
}
|
||||
7
apps/ec/order/test/summary/check.http
Normal file
7
apps/ec/order/test/summary/check.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/Check
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
7
apps/ec/order/test/summary/confirm.http
Normal file
7
apps/ec/order/test/summary/confirm.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/Confirm
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"order_no":"2542615350574277"
|
||||
}
|
||||
7
apps/ec/order/test/summary/get.http
Normal file
7
apps/ec/order/test/summary/get.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/Get
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"019670e8-d958-7f17-8463-4fa37e9728eb"
|
||||
}
|
||||
7
apps/ec/order/test/summary/list.http
Normal file
7
apps/ec/order/test/summary/list.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/List
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
10
apps/ec/order/test/summary/quick_create_by_product.http
Normal file
10
apps/ec/order/test/summary/quick_create_by_product.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/QuickCreateByProduct
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"product_identity":"01965b81-9869-766d-ba8a-01af33d135bc",
|
||||
"store_identity":"01965b51-5344-7218-a9b9-bc71031f6f10",
|
||||
"address_identity":"01966c38-7d46-726d-815a-b81baa08e0a6",
|
||||
"number":5
|
||||
}
|
||||
7
apps/ec/order/test/summary/simulate_pay.http
Normal file
7
apps/ec/order/test/summary/simulate_pay.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/SimulatePay
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":["019670bf-4917-75ef-99b9-8a290cb36c6e"]
|
||||
}
|
||||
8
apps/ec/order/test/summary/simulate_receiving.http
Normal file
8
apps/ec/order/test/summary/simulate_receiving.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/SimulateReceiving
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"019670bf-4917-75ef-99b9-8a290cb36c6e"
|
||||
|
||||
}
|
||||
8
apps/ec/order/test/summary/simulate_shipments.http
Normal file
8
apps/ec/order/test/summary/simulate_shipments.http
Normal file
@@ -0,0 +1,8 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/SimulateShipments
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"identity":"019670bf-4917-75ef-99b9-8a290cb36c6e",
|
||||
"member_identity":"d20dacde35d5410786cfe9b6b48e478a"
|
||||
}
|
||||
17
apps/ec/order/test/summary/submit.http
Normal file
17
apps/ec/order/test/summary/submit.http
Normal file
@@ -0,0 +1,17 @@
|
||||
POST http://127.0.0.1:12441/order.Summary/Submit
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"address": {
|
||||
"country": "Canada",
|
||||
"province": "British Columbia",
|
||||
"city": "Vancouver",
|
||||
"area": "Downtown",
|
||||
"detail": "777 Dunsmuir Street, 17th Floor",
|
||||
"contact": "John Doe",
|
||||
"phone": " +1 (555) 123-4567",
|
||||
"email": "john.doe@example.com",
|
||||
"zip_code": " V7Y 1K4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user