refactor: reorganize modules and add Linux build tooling
This commit is contained in:
16
module/ec/address/test/library/create.http
Normal file
16
module/ec/address/test/library/create.http
Normal file
@@ -0,0 +1,16 @@
|
||||
POST http://127.0.0.1:12459/address.Library/Create
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"phone": "789012345513",
|
||||
"country": "中国",
|
||||
"province": "山东",
|
||||
"city": "青岛",
|
||||
"area": "崂山区",
|
||||
"detail": "崂山风景区入口处",
|
||||
"contact": "陈九",
|
||||
"name": "崂山脚下",
|
||||
"pics": "https://example.com/images/cccc.jpg",
|
||||
"status": 1
|
||||
}
|
||||
7
module/ec/address/test/library/get.http
Normal file
7
module/ec/address/test/library/get.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12459/address.Library/Get
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"id":1
|
||||
}
|
||||
7
module/ec/address/test/library/modify.http
Normal file
7
module/ec/address/test/library/modify.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://127.0.0.1:12459/address.Library/Modify
|
||||
content-type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
23
module/ec/address/test/rpc/rpc.go
Normal file
23
module/ec/address/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)
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user