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