Skip to content
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
wants to merge 69 commits into
base: main
Choose a base branch
from
Open

ABYSMILER #32

wants to merge 69 commits into from

Conversation

Abysmiler
Copy link

完成了评论接口的基本功能,发表删除评论等

yunyin and others added 30 commits August 12, 2023 11:42
添加赞和喜欢列表的流程图
小小重构了一下项目,添加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
MorkCarpenter and others added 30 commits August 25, 2023 18:29
* 完善点赞/喜欢列表接口的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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants