GET api/notice/search?courseid={courseid}&region={region}&pageSize={pageSize}&pageIndex={pageIndex}&key={key}&sort={sort}

加载一页公告信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
courseid

课程编号

globally unique identifier

Required

region

区域编号 1.讨论区公告 2.普通公告区公告

integer

Default value is 2

pageSize

integer

Default value is 10

pageIndex

integer

Default value is 1

key

string

Default value is

sort

boolean

Default value is True

Body Parameters

None.

Response Information

Resource Description

加载一页公告信息

JsonRtnDtoOfPageResultOfNotice
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

PageResultOfNotice

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Value": [
      {
        "PubId": "0b91b821-b18e-4d86-ab66-3d59bf86b658",
        "Title": "sample string 2",
        "Content": "sample string 3",
        "State": 1,
        "Region": 4,
        "Id": "f82d255d-2801-45dd-ae48-518248662c4b",
        "CreatedTime": "2024-09-25T00:09:13.5634759+08:00",
        "IsDeleted": true,
        "LastUpdatedTime": "2024-09-25T00:09:13.5634759+08:00"
      },
      {
        "PubId": "0b91b821-b18e-4d86-ab66-3d59bf86b658",
        "Title": "sample string 2",
        "Content": "sample string 3",
        "State": 1,
        "Region": 4,
        "Id": "f82d255d-2801-45dd-ae48-518248662c4b",
        "CreatedTime": "2024-09-25T00:09:13.5634759+08:00",
        "IsDeleted": true,
        "LastUpdatedTime": "2024-09-25T00:09:13.5634759+08:00"
      }
    ],
    "PageIndex": 1,
    "PageSize": 2,
    "total": 3,
    "TotalPages": 4,
    "HasPreviousPage": false,
    "HasNextPage": true
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Value":[{"PubId":"0b91b821-b18e-4d86-ab66-3d59bf86b658","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"f82d255d-2801-45dd-ae48-518248662c4b","CreatedTime":"2024-09-25T00:09:13.5634759+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:09:13.5634759+08:00"},{"PubId":"0b91b821-b18e-4d86-ab66-3d59bf86b658","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"f82d255d-2801-45dd-ae48-518248662c4b","CreatedTime":"2024-09-25T00:09:13.5634759+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:09:13.5634759+08:00"}],"PageIndex":1,"PageSize":2,"total":3,"TotalPages":4,"HasPreviousPage":false,"HasNextPage":true}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfPageResultOfNoticemEDjlcEGS_STz13wm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Infrastructure">
    <d2p1:PageIndex>1</d2p1:PageIndex>
    <d2p1:PageSize>2</d2p1:PageSize>
    <d2p1:TotalPages>4</d2p1:TotalPages>
    <d2p1:total>3</d2p1:total>
    <d2p1:Value xmlns:d3p1="http://schemas.datacontract.org/2004/07/BJ.Data">
      <d3p1:Notice>
        <d3p1:CreatedTime>2024-09-25T00:09:13.5634759+08:00</d3p1:CreatedTime>
        <d3p1:Id>f82d255d-2801-45dd-ae48-518248662c4b</d3p1:Id>
        <d3p1:IsDeleted>true</d3p1:IsDeleted>
        <d3p1:LastUpdatedTime>2024-09-25T00:09:13.5634759+08:00</d3p1:LastUpdatedTime>
        <d3p1:Content>sample string 3</d3p1:Content>
        <d3p1:PubId>0b91b821-b18e-4d86-ab66-3d59bf86b658</d3p1:PubId>
        <d3p1:Region>4</d3p1:Region>
        <d3p1:State>草稿</d3p1:State>
        <d3p1:Title>sample string 2</d3p1:Title>
      </d3p1:Notice>
      <d3p1:Notice>
        <d3p1:CreatedTime>2024-09-25T00:09:13.5634759+08:00</d3p1:CreatedTime>
        <d3p1:Id>f82d255d-2801-45dd-ae48-518248662c4b</d3p1:Id>
        <d3p1:IsDeleted>true</d3p1:IsDeleted>
        <d3p1:LastUpdatedTime>2024-09-25T00:09:13.5634759+08:00</d3p1:LastUpdatedTime>
        <d3p1:Content>sample string 3</d3p1:Content>
        <d3p1:PubId>0b91b821-b18e-4d86-ab66-3d59bf86b658</d3p1:PubId>
        <d3p1:Region>4</d3p1:Region>
        <d3p1:State>草稿</d3p1:State>
        <d3p1:Title>sample string 2</d3p1:Title>
      </d3p1:Notice>
    </d2p1:Value>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfPageResultOfNoticemEDjlcEGS_STz13wm>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Value":[{"PubId":"0b91b821-b18e-4d86-ab66-3d59bf86b658","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"f82d255d-2801-45dd-ae48-518248662c4b","CreatedTime":"2024-09-25T00:09:13.5634759+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:09:13.5634759+08:00"},{"PubId":"0b91b821-b18e-4d86-ab66-3d59bf86b658","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"f82d255d-2801-45dd-ae48-518248662c4b","CreatedTime":"2024-09-25T00:09:13.5634759+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:09:13.5634759+08:00"}],"PageIndex":1,"PageSize":2,"total":3,"TotalPages":4,"HasPreviousPage":false,"HasNextPage":true}});