1
0
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:
Tony
2019-05-14 15:39:48 +08:00
committed by GitHub
parent 6487ae2fc0
commit 5b9631bb15
+2 -2
View File
@@ -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代码。
### 回源模板