Skip to content

Commit

Permalink
feat: 天添加版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
kuangshp committed Mar 13, 2024
1 parent b9752fe commit 822e73b
Show file tree
Hide file tree
Showing 12 changed files with 476 additions and 39 deletions.
10 changes: 10 additions & 0 deletions api/account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type IAccount interface {
UpdateStatusByIdApi(ctx *gin.Context) // 根据id修改状态
GetAccountByIdApi(ctx *gin.Context) //根据id查询数据
GetAccountPageApi(ctx *gin.Context) // 分页获取数据
GetTestApi(ctx *gin.Context) //测试
}

type Account struct{}
Expand Down Expand Up @@ -342,6 +343,15 @@ func (a Account) GetAccountPageApi(ctx *gin.Context) {
})
return
}

func (a Account) GetTestApi(ctx *gin.Context) {
//test1Entity, _ := dao.Test1Entity.WithContext(ctx).First()
dao.Test1Entity.WithContext(ctx).Where(dao.Test1Entity.ID.Eq(1)).Updates(&model.Test1Entity{
Username: "你好",
})
utils.Success(ctx, "成功")
return
}
func NewAccount() IAccount {
return Account{}
}
4 changes: 0 additions & 4 deletions dao/account.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion dao/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 822e73b

Please sign in to comment.