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

POST请求怎么添加body参数,求回 啊,不然项目怎么用,demo全是GET请求 #44

Open
yzf570363518 opened this issue Nov 10, 2020 · 2 comments

Comments

@yzf570363518
Copy link

No description provided.

@rexydimen
Copy link

image

@rexydimen
Copy link

@headers(DOMAIN_NAME_HEADER + Domain.Camp.HEADER)
@FormUrlEncoded
@post(ServiceRoute.Program.PLAYINFO_REPORT)
fun postPlayInfo(
@field("program_id") program_id: Long = 0L,
@field("chapter_id") chapter_id: Long = 0L,
@field("live_id") live_id: Long = 0L,
@field("resource_id") resource_id: Long = 0L,
@field("play_time") play_time: Int = 0
): Observable<CommonDataModel>

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

No branches or pull requests

2 participants