-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABYSMILER #32
Open
Abysmiler
wants to merge
69
commits into
RaymondCode:main
Choose a base branch
from
life-studied:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
ABYSMILER #32
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
添加赞和喜欢列表的流程图
Add files via upload
小小重构了一下项目,添加global(全局变量组),initialize,config包以及config.yaml来连接数据库,viper包在go1.17下好像没法导包,我测试把go.mod改成go 1.16或者1.20就行了
测试viper管理配置以及gorm连接MySQL
* CommentList查询的controller层和service,dao层雏形的编写 为了方便返回值,在三个层的下面设立了model包来存储结构体,并且修改了响应值的结构体类型方便返回,如有需要协调的我重新修改。 * 测试一下用viper配置config文件来操作数据访问层 * 增强了点耦合性,把service层的方法调用也改成了实例调用的形式,防止和其他人出现不一样的误差 其他方面就是把不必要的属性增加了“-”符号,这些属性在json返回时不会被一并提交上去 * Update config.go * 修改router,删掉sum
* 完善点赞/喜欢列表接口的controller层 * revert:暂时完善dao层 本次回滚至8.24日提交[暂时完善dao层],回滚原因:合并了有误代码导致无法编译 这是一次硬提交,合并该提交将导致大量需要解决的冲突 * fix:修复http返回值永远为200的问题 当调用favorite接口时,将会根据代码执行情况返回不同的http返回值。并且修改了打印报错的方式,使favrite接口打印的错误均为红底白字 该提交后,favorite接口的bug将更容易被发现
Co-authored-by: Yunyin <[email protected]>
* doc:提交测试用例 残缺的测试用例,压力测试结果奇奇怪怪。大概率是因为我学艺不精 * ? * fix Favorite接口修复 修复bug:1.接收到参数但是判断为未接收到参数2.重复为同一个视频生成like(现在同一个视频只会出现一个like) 3.查询喜欢列表不返回用户信息和视频信息 小封 [email protected]
* 改进comment使其能通过测试 * 修改后测试评论接口 --------- Co-authored-by: Yunyin <[email protected]>
* Add files via upload * Delete 用户信息接口(自测).md * Add files via upload * Update user.go --------- Co-authored-by: Yunyin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
完成了评论接口的基本功能,发表删除评论等