mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
Update kratos-genbts.md
This commit is contained in:
parent
6487ae2fc0
commit
5b9631bb15
@ -2,8 +2,8 @@
|
||||
|
||||
> 缓存回源代码生成
|
||||
|
||||
在internal/dao/dao.go中添加mc缓存interface定义,可以指定对应的[注解参数](../tool/kratos-gen-mc/README.md);
|
||||
并且在接口前面添加`go:generate kratos tool genmc`;
|
||||
在internal/dao/dao.go中添加mc缓存interface定义,可以指定对应的[注解参数](../../tool/kratos-gen-mc/README.md);
|
||||
并且在接口前面添加`go:generate kratos tool genbts`;
|
||||
然后在当前目录执行`go generate`,可以看到自动生成的dao.bts.go代码。
|
||||
|
||||
### 回源模板
|
||||
|
Loading…
x
Reference in New Issue
Block a user