Skip to content

Commit

Permalink
course updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Dec 17, 2024
1 parent fd75421 commit ef8d53a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $ cd app/word
### 建立数据表
`word`数据库下,执行`SQL`语句,建立保存用户数据的表:
```sql
CREATE TABLE words (
CREATE TABLE `words` (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
uid INT UNSIGNED NOT NULL,
word VARCHAR ( 255 ) NOT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ cd app/user
### 建立数据表
`user`数据库下,执行`SQL`语句,建立保存用户数据的表:
```sql
CREATE TABLE users (
CREATE TABLE `users` (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
password CHAR(32) NOT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: "介绍了用户服务中的 Protocol Buffers 协议文件定义,
创建一个名为`account`的目录,管理用户账号相关业务。

*app/user/manifest/protobuf/account/v1/account.proto*
```proto
```go
syntax = "proto3";

package account.v1;
Expand Down Expand Up @@ -61,7 +61,7 @@ message UserRegisterRes {
照葫芦画瓢,我们继续定义用户登录和查询接口。最后的文件内容如下:

*app/user/manifest/protobuf/account/v1/account.proto*
```proto
```go
syntax = "proto3";

package account.v1;
Expand Down

0 comments on commit ef8d53a

Please sign in to comment.