POST {version}/User/DeletMyCourses

删除多个课程

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

CourseDto
NameDescriptionTypeAdditional information
CourseIds

Collection of integer

None.

CourseID

课程编码

integer

None.

CourseName

课程名称

string

None.

PacketName

课程包名称

string

None.

Notice

课程公布

string

None.

BuyNum

购买数量

integer

None.

OnlyNum

仅剩数量

integer

None.

IsShowOnly

是否显示仅剩数量

integer

None.

PurchaseNum

限购人数

integer

None.

Money

现价

decimal number

None.

FixedPrice

固定原价

decimal number

None.

OriginalMoney

原价

decimal number

None.

MoneyStr

课程包价格范围

string

None.

Content

课程简介

string

None.

Publish

课程公布

string

None.

IsHot

是否热门

boolean

None.

IsCoursePacket

是否为课程包

boolean

None.

IsGroup

是否拼团: 是:true,否:false

boolean

None.

IsBuy

是否购买: 是:true,否:false

boolean

None.

CourseType

课程类型

integer

None.

CourseTypeText

课程类型文本

string

None.

TeacherName

授课老师k

string

None.

jburl

string

None.

pcjburl

string

None.

IsApplePay

是否苹果内购

integer

None.

IsSecondKill

是否秒杀 0否 1是

integer

None.

IsGood

是否需要发货: 0-不需要 1-需要 【字段 tinyint(1)】

boolean

None.

PurchaseStartTime

开售时间

string

None.

Avatar

头像

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CourseIds": [
    1,
    2
  ],
  "CourseID": 1,
  "CourseName": "sample string 2",
  "PacketName": "sample string 3",
  "Notice": "sample string 4",
  "BuyNum": 1,
  "OnlyNum": 5,
  "IsShowOnly": 6,
  "PurchaseNum": 7,
  "Money": 1.0,
  "FixedPrice": 1.0,
  "OriginalMoney": 1.0,
  "MoneyStr": "sample string 8",
  "Content": "sample string 9",
  "Publish": "sample string 10",
  "IsHot": true,
  "IsCoursePacket": true,
  "IsGroup": true,
  "IsBuy": true,
  "CourseType": 15,
  "CourseTypeText": "sample string 16",
  "TeacherName": "sample string 17",
  "jburl": "sample string 18",
  "pcjburl": "sample string 19",
  "IsApplePay": 20,
  "IsSecondKill": 21,
  "IsGood": true,
  "PurchaseStartTime": "sample string 23",
  "Avatar": "sample string 24"
}

application/xml, text/xml

Sample:
<CourseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eshikao.Models.Course">
  <Avatar>sample string 24</Avatar>
  <BuyNum>1</BuyNum>
  <Content>sample string 9</Content>
  <CourseID>1</CourseID>
  <CourseIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CourseIds>
  <CourseName>sample string 2</CourseName>
  <CourseType>15</CourseType>
  <CourseTypeText>sample string 16</CourseTypeText>
  <FixedPrice>1</FixedPrice>
  <IsApplePay>20</IsApplePay>
  <IsBuy>true</IsBuy>
  <IsCoursePacket>true</IsCoursePacket>
  <IsGood>true</IsGood>
  <IsGroup>true</IsGroup>
  <IsHot>true</IsHot>
  <IsSecondKill>21</IsSecondKill>
  <IsShowOnly>6</IsShowOnly>
  <Money>1</Money>
  <MoneyStr>sample string 8</MoneyStr>
  <Notice>sample string 4</Notice>
  <OnlyNum>5</OnlyNum>
  <OriginalMoney>1</OriginalMoney>
  <PacketName>sample string 3</PacketName>
  <Publish>sample string 10</Publish>
  <PurchaseNum>7</PurchaseNum>
  <PurchaseStartTime>sample string 23</PurchaseStartTime>
  <TeacherName>sample string 17</TeacherName>
  <jburl>sample string 18</jburl>
  <pcjburl>sample string 19</pcjburl>
</CourseDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CourseDto'.

Response Information

Resource Description

ApiResultOfInt32
NameDescriptionTypeAdditional information
Code

string

None.

Message

string

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Message": "sample string 2",
  "Data": 3
}

application/xml, text/xml

Sample:
<ApiResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TinyFx.Web.Results">
  <Code>sample string 1</Code>
  <Data>3</Data>
  <Message>sample string 2</Message>
</ApiResultOfint>