Przeglądaj źródła

docs: update README with correct code block languages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
BaiLuoYan 1 tydzień temu
rodzic
commit
69a45c4475
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -61,7 +61,7 @@ engine.RegisterFieldPerms(perms.FieldPerms)
 
 在 `@doc` 中通过 `perm` 字段声明接口权限 code:
 
-```
+```text
 @doc (
     summary: "创建用户"
     perm:    "api:user:create"
@@ -77,7 +77,7 @@ post /user/create (CreateUserReq) returns (CreateUserResp)
 
 在请求/响应结构体的字段上通过 `perm` tag 声明字段级权限:
 
-```
+```text
 type CreateUserReq {
     Username string `json:"username"`
     Email    string `json:"email" perm:"data:user:email:write"`