refactor: reorganize modules and add Linux build tooling
This commit is contained in:
17
module/base/feedback/test/add.http
Normal file
17
module/base/feedback/test/add.http
Normal file
@@ -0,0 +1,17 @@
|
||||
POST http://127.0.0.1:12210/feedback.Method/Add
|
||||
Content-Type: application/json
|
||||
Authorization: {{BSM_TOKEN}}
|
||||
|
||||
{
|
||||
"user_name": "张三" ,
|
||||
"title": "测试" ,
|
||||
"content": "测试内容" ,
|
||||
"type": "1" ,
|
||||
"images": [] ,
|
||||
"accessories": [
|
||||
{
|
||||
"title": "附件1",
|
||||
"file_path": "http://127.0.0.1:22210/file/download/1"
|
||||
}
|
||||
],
|
||||
}
|
||||
23
module/base/feedback/test/rpc/rpc.go
Normal file
23
module/base/feedback/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.NewMethodClient(conn)
|
||||
r, err := c.List()(ctx, &pb.Crc{
|
||||
Code: "david",
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("返回的消息: %s", r.Message)
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user