Skip to content

Commit 18e3aa8

Browse files
committed
update docs
1 parent d5534b8 commit 18e3aa8

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

1_web-gin-CRUD/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
Enter the Sponge UI interface, click on the left menu bar 【SQL】→【Create web project】, fill in some parameters to generate the complete project code for the web service.
1313

14+
![web-http](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_web-http.png)
15+
1416
The web service code is mainly composed of commonly used libraries such as [gin](https://github.com/gin-gonic/gin), [gorm](https://github.com/go-gorm/gorm), [go-redis](https://github.com/go-redis/redis), and also includes swagger documentation, test code, common service governance function code, build deployment scripts, etc.
1517

16-
![web-http](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_web-http.png)
1718

1819
Switch to the web directory and run the command:
1920

2_micro-grpc-CRUD/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
Enter the Sponge UI interface, click on the left menu bar 【SQL】→【Create microservice project】, fill in some parameters to generate a complete microservice project code.
1313

14-
The microservice code is mainly composed of commonly used libraries such as [grpc](https://github.com/grpc/grpc-go), [gorm](https://github.com/go-gorm/gorm), [go-redis](https://github.com/go-redis/redis), and also includes grpc client CRUD test code, common service governance function code, build deployment scripts, etc.
15-
1614
![micro-rpc](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_micro-rpc.png)
1715

16+
The microservice code is mainly composed of commonly used libraries such as [grpc](https://github.com/grpc/grpc-go), [gorm](https://github.com/go-gorm/gorm), [go-redis](https://github.com/go-redis/redis), and also includes grpc client CRUD test code, common service governance function code, build deployment scripts, etc.
17+
1818
Switch to the user directory and run the command:
1919

2020
```bash

3_web-gin-protobuf/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Prepare a proto file before creating a web service. The proto file must contain
99

1010
Enter the UI interface of sponge, click 【Protobuf】→【Create Web Project】in the left menu bar, and fill in some parameters to generate the web service project code.
1111

12-
The web framework uses [gin](https://github.com/gin-gonic/gin). It also includes swagger documents, common service governance function codes, and build and deployment scripts. You can choose which database to use.
13-
1412
![web-http-pb](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_web-http-pb.png)
1513

14+
The web framework uses [gin](https://github.com/gin-gonic/gin). It also includes swagger documents, common service governance function codes, and build and deployment scripts. You can choose which database to use.
15+
1616
Change to the web directory and execute the command:
1717

1818
```bash

4_micro-grpc-protobuf/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
Prepare a proto file before creating a microservice, Enter the sponge UI interface, click on 【Protobuf】→ 【create microservice project】in the left menu bar, fill in some parameters to generate common microservice project code.
99

10-
The microservice framework uses [grpc](https://github.com/grpc/grpc-go), and also includes commonly used service governance function code, build deployment scripts, etc. The database used is chosen by yourself.
11-
1210
![micro-rpc-pb](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_micro-rpc-pb.png)
1311

12+
The microservice framework uses [grpc](https://github.com/grpc/grpc-go), and also includes commonly used service governance function code, build deployment scripts, etc. The database used is chosen by yourself.
13+
1414
Switch to the user directory and run the command:
1515

1616
```bash

5_micro-gin-rpc-gateway/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Before creating a grpc gateway project, prepare a proto file that it must contai
99

1010
Enter the Sponge UI interface, click the left menu bar 【Protobuf】 → 【create grpc gateway project】, fill in some parameters to generate the grpc gateway project code.
1111

12-
The web framework uses [gin](https://github.com/gin-gonic/gin), which also includes Swagger documentation, common service governance code, build deployment scripts, etc.
13-
1412
![micro-rpc-gw-pb](https://raw.githubusercontent.com/zhufuyi/sponge_examples/main/assets/en_micro-rpc-gw-pb.png)
1513

14+
The web framework uses [gin](https://github.com/gin-gonic/gin), which also includes Swagger documentation, common service governance code, build deployment scripts, etc.
15+
1616
<br>
1717

1818
### Calling Other Microservice API Interfaces

6_micro-cluster/shop_gw/internal/rpcclient/comment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewCommentRPCConn() {
121121
cliOptions = append(cliOptions, grpccli.WithEnableMetrics())
122122
}
123123

124-
msg := "dialing rpc server"
124+
msg := "dialing grpc server"
125125
if isUseDiscover {
126126
msg += " with discovery from " + grpcClientCfg.RegistryDiscoveryType
127127
}

6_micro-cluster/shop_gw/internal/rpcclient/inventory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewInventoryRPCConn() {
121121
cliOptions = append(cliOptions, grpccli.WithEnableMetrics())
122122
}
123123

124-
msg := "dialing rpc server"
124+
msg := "dialing grpc server"
125125
if isUseDiscover {
126126
msg += " with discovery from " + grpcClientCfg.RegistryDiscoveryType
127127
}

6_micro-cluster/shop_gw/internal/rpcclient/product.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewProductRPCConn() {
121121
cliOptions = append(cliOptions, grpccli.WithEnableMetrics())
122122
}
123123

124-
msg := "dialing rpc server"
124+
msg := "dialing grpc server"
125125
if isUseDiscover {
126126
msg += " with discovery from " + grpcClientCfg.RegistryDiscoveryType
127127
}

0 commit comments

Comments
 (0)