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

award model & controller #6

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

award model & controller #6

wants to merge 26 commits into from

Conversation

luojiyin1987
Copy link

@luojiyin1987 luojiyin1987 commented Aug 13, 2024

PR-6 PR-6 PR-6 Powered by Pull Request Badge

@luojiyin1987
Copy link
Author

luojiyin1987 commented Aug 13, 2024

@TechQuery 是声明一个类还是一个接口?

@TechQuery
Copy link
Member

@TechQuery 是声明一个类还是一个接口?

必然是一个类啊,要不怎么用装饰器?

@luojiyin1987 luojiyin1987 changed the title Migration and implementation interfaces award model & controller Aug 14, 2024
@luojiyin1987
Copy link
Author

https://hackathon-api.kaiyuanshe.cn/swagger/index.html
如何实现 创建保存一个 award ? 对应接口 /v2/hackathon/{hackathonName}/award
如何验证身份? 解构获取请求的参数? @TechQuery

@TechQuery TechQuery force-pushed the master branch 3 times, most recently from 0ff03ae to c5c2ef4 Compare August 15, 2024 23:03
@luojiyin1987
Copy link
Author

@TechQuery 麻烦看一下代码。 好没底气,确认是否可以正常运行。

@TechQuery
Copy link
Member

@TechQuery 麻烦看一下代码。 好没底气,确认是否可以正常运行。

那就本地运行一下看看啊

@luojiyin1987
Copy link
Author

@TechQuery 麻烦看一下代码。 好没底气,确认是否可以正常运行。

那就本地运行一下看看啊
这是服务端, 我怎么验证? 用swagger 验证?

@TechQuery
Copy link
Member

这是服务端, 我怎么验证? 用swagger 验证?

要么像我写单元测试一样 #18,用可编程的 HTTP 客户端调接口,要么就用 Swagger 或者 PostMan 这些图形客户端。

后端接口写好了给前端,前端也得这么验证。但如果你只交给前端验证,那就成了 FDBD(前端驱动后端开发),是找骂。

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.

2 participants