-
Notifications
You must be signed in to change notification settings - Fork 63
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
一个请求的response就是一个自定义类型的array应该如何设置 #71
Comments
/**
in contract/response/mini.js 我希望能做到的是 getDailyTestResponse:{ type: 'array', itemType: 'test' }, |
如果response直接是一个字符串 @response 应该怎么设置? |
你好,你这个解决了吗?还是换了别的插件 |
同遇到了这个问题,API response一个Array,发现好像没办法定义出来 |
你好,这个问题解决了么? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个api的response就是一个array,
在model中有
// 测试题
test: {
id: { type: 'integer', description: '测试题id' },
dailyReadTitle: { type: 'string', description: '测试题所在今日阅读的标题' },
planId: { type: 'integer', description: '测试题所在计划的id' },
topicId: { type: 'integer', description: '测试题所在话题的id' },
questionCode: { type: 'string', description: '测试题选项标志符' },
status: { type: 'integer', description: '测试题状态,0未答,1已答' },
questions: {
type: 'array',
itemType: 'option',
description: '测试题的问题选项',
},
},
这个请求的response是 test的array 应该如何设置 @response和 contract
The text was updated successfully, but these errors were encountered: