[service] name = "WLibrary" desc = "素材库服务" [[method]] name = "QaGroup" desc = "题库列表" [method.req] field = [ "string project_hash_id //项目hash_id", "int32 page //当前页", "int32 per_page //每页条数", "string title //标题", ] [method.res] field = [ "repeated One list //列表数据", "int64 total //列表总数" ] [[method.res.message]] name = "One" field = [ "int64 id //题库ID", "string hash_id //题库对外id", "string title //标题", "int64 created_at //创建时间", "int64 qa_count //问题数量", ] [[method]] name = "StoreQaGroup" desc = "创建题库" [method.req] field = [ "string project_hash_id //项目hash_id", "string title //标题", ] [method.res] [[method]] name = "UpdateQaGroup" desc = "更新题库" [method.req] field = [ "string project_hash_id //项目hash_id", "string hash_id //题库对外id", "string title //标题", ] [method.res] [[method]] name = "DestroyQaGroup" desc = "删除题库" [method.req] field = [ "string project_hash_id //项目hash_id", "string hash_id //题库对外id", ] [method.res] [[method]] name = "QaList" desc = "问题列表" [method.req] field = [ "string group_hash_id //题库对外id", "int32 page //当前页", "int32 per_page //每页条数", "string title //题目", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", ] [method.res] field = [ "repeated One list //列表数据", "int64 total //列表总数" ] [[method.res.message]] name = "One" field = [ "int64 id //问题ID", "string hash_id //问题对外id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", "string title //题目", "string cover_url //封面图", "string link_url //附件地址", "string explain_text //答案解析", "string explain_img //答案解析图", "repeated Option options //选项", "int64 created_at //创建时间", "string answer_mark //答案类型(image_text-图文,text-文本)", ] [[method.res.message]] name = "Option" field = [ "int64 id //选项id", "string title //答案内容", "string img_url //答案图片", "int32 is_right //是否正确答案(1-是,0-否)", ] [[method]] name = "StoreQa" desc = "问题列表" [method.req] field = [ "string group_hash_id //题库对外id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", "string title //题目", "string cover_url //封面图", "string link_url //附件地址", "string explain_text //答案解析", "string explain_img //答案解析图", "repeated Option options //选项", "string answer_mark //答案类型(image_text-图文,text-文本)", ] [[method.req.message]] name = "Option" field = [ "string title //答案内容", "string img_url //答案图片", "int32 is_right //是否正确答案(1-是,0-否)", ] [method.res] [[method]] name = "UpdateQa" desc = "问题列表" [method.req] field = [ "string hash_id //问题对外id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", "string title //题目", "string cover_url //封面图", "string link_url //附件地址", "string explain_text //答案解析", "string explain_img //答案解析图", "repeated Option options //选项", "string answer_mark //答案类型(image_text-图文,text-文本)", ] [[method.req.message]] name = "Option" field = [ "int64 id //选项id", "string title //答案内容", "string img_url //答案图片", "int32 is_right //是否正确答案(1-是,0-否)", ] [method.res] [[method]] name = "DestroyQa" desc = "问题列表" [method.req] field = [ "string hash_id //问题对外id", ] [method.res] [[method]] name = "QaGroupSelect" desc = "题库选项" [method.req] field = [ "string project_hash_id //项目hash_id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", ] [method.res] field = [ "repeated One list //列表数据", ] [[method.res.message]] name = "One" field = [ "int64 id //题库ID", "string hash_id //题库对外id", "string title //标题", "int64 qa_num //题目数量", ] [[method]] name = "QaRand" desc = "随机问题" [method.req] field = [ "int64 campaign_id //活动id", "string group_hash_id //题库对外id", "string lang_mark //用户语言", "int64 user_id //获得取题库的用户id", ] [method.res] field = [ "repeated One list //列表数据", ] [[method.res.message]] name = "One" field = [ "int64 id //问题ID", "string hash_id //问题对外id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", "string title //题目", "string cover_url //封面图", "string link_url //附件地址", "string explain_text //答案解析", "string explain_img //答案解析图", "repeated Option options //选项", "int64 created_at //创建时间", "string answer_mark //答案类型(image_text-图文,text-文本)", ] [[method.res.message]] name = "Option" field = [ "int64 id //选项id", "string title //答案内容", "string img_url //答案图片", "int32 is_right //是否正确答案(1-是,0-否)", ] [[method]] name = "QaShow" desc = "问题详情" [method.req] field = [ "string hash_id //题目对外id", ] [method.res] field = [ "int64 id //问题ID", "string hash_id //问题对外id", "string mark //问题类型(image_text-图文,video-视频,audio-音频)", "string title //题目", "string cover_url //封面图", "string link_url //附件地址", "string explain_text //答案解析", "string explain_img //答案解析图", "repeated Option options //选项", "int64 created_at //创建时间", "string answer_mark //答案类型(image_text-图文,text-文本)", ] [[method.res.message]] name = "Option" field = [ "int64 id //选项id", "string title //答案内容", "string img_url //答案图片", "int32 is_right //是否正确答案(1-是,0-否)", ]