You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB
TOML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

[service]
name = "WProjectUser"
desc = "项目用户"
[[method]]
name = "Point"
desc = "积分"
[method.req]
field = [
"int64 project_id //项目ID",
"string user_id //第三方用户ID",
"int32 point_source //积分来源(0-应用内部,1-系统自带)",
"int64 url_id //请求地址id",
"string lang_mark //语言标识",
]
[method.res]
field = [
"int64 id //项目用户ID",
"int64 coin_num //积分数量",
]
[[method]]
name = "EarnCoin"
desc = "获取积分"
[method.req]
field = [
"int64 project_id //项目ID",
"string user_id //第三方用户ID",
"string lang_mark //语言标识",
"repeated Earn earns //获得的积分",
]
[[method.req.message]]
name = "Earn"
field = [
"int32 coin_num //积分数量",
"int64 expired_at //期时间",
"int32 is_expired //是否过期(0-否,1-是)",
"string source //来源(center-任务中心,campaign-活动)",
"int64 source_id //来源ID",
"map<string, string> source_data //来源数据",
"string operate //操作",
]
[method.res]
field = [
"int64 id //记录ID",
]