POST api/retestrepository/setteachervisible
设置老师可见状态
Request Information
URI Parameters
None.
Body Parameters
TeacherVisibleInputName | Description | Type | Additional information |
---|---|---|---|
ReTestRepositoryId |
题库编号 |
integer |
None. |
UserId |
共享人编号 |
integer |
None. |
IsVisible |
是否可见 (False 取消共享) |
boolean |
None. |
Teachers |
教师 (共享到指定教师或者取消共享到指定教师)不传值时共享到该课程下所用教师或取消全部共享 |
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ReTestRepositoryId": 1, "UserId": 2, "IsVisible": true, "Teachers": [ 1, 2 ] }
text/html
Sample:
{"ReTestRepositoryId":1,"UserId":2,"IsVisible":true,"Teachers":[1,2]}
application/xml, text/xml
Sample:
<TeacherVisibleInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <IsVisible>true</IsVisible> <ReTestRepositoryId>1</ReTestRepositoryId> <Teachers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </Teachers> <UserId>2</UserId> </TeacherVisibleInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
设置老师可见状态
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});