Skip to content

Commit

Permalink
制作库线上库分离
Browse files Browse the repository at this point in the history
  • Loading branch information
flycash committed Feb 15, 2024
1 parent 53896b1 commit 0994e63
Show file tree
Hide file tree
Showing 17 changed files with 1,007 additions and 79 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
- 在初始阶段,摒弃定义一些没有多个实现的接口,确保研发效率。在需要的时候,再引入接口;
- 受制于 wire 的功能有限,所以一些和 ioc 有关的代码,奇丑无比

## 一点点设计原则
- 药医不死病,佛渡有缘人
- 不需要考虑攻击者的用户体验

## 缓存的 key 设计
基本上遵循了:`webook:$module:xxxxxxx` 的形式。即第一段是 webook,代表本体;第二段是 webook 内部的 module,代表模块。后面的就是 key,可以进一步细分。
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/lithammer/shortuuid/v4 v4.0.0
github.com/redis/go-redis/v9 v9.4.0
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.5.0
gorm.io/gorm v1.25.1
)

Expand Down Expand Up @@ -111,7 +112,6 @@ require (
golang.org/x/arch v0.7.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
Expand Down
3 changes: 1 addition & 2 deletions internal/question/internal/domain/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ type Answer struct {
}

type AnswerElement struct {
Id int64

Id int64
Content string
// 关键字,辅助记忆,提取重点
Keywords string
Expand Down
Loading

0 comments on commit 0994e63

Please sign in to comment.