Open
Conversation
添加赞和喜欢列表的流程图
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将更容易被发现
* doc:提交测试用例 残缺的测试用例,压力测试结果奇奇怪怪。大概率是因为我学艺不精 * ? * fix Favorite接口修复 修复bug:1.接收到参数但是判断为未接收到参数2.重复为同一个视频生成like(现在同一个视频只会出现一个like) 3.查询喜欢列表不返回用户信息和视频信息 小封 morkdream@163.com
* 改进comment使其能通过测试 * 修改后测试评论接口 --------- Co-authored-by: Yunyin <99079078+life-studied@users.noreply.github.com>
This file contains hidden or 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
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.
完成了评论接口的基本功能,发表删除评论等