POST api/JobPost/AddNewPartTimeJob

后台 - 添加新的兼职职位

Request Information

URI Parameters

None.

Body Parameters

新职位信息

ParttimeJobAddDto
NameDescriptionTypeAdditional information
ParttimeTypeId

兼职分类标识

integer

None.

SettleType

结算类型

PartTimeSettleType

None.

Salary

工资

decimal number

None.

SalaryUnit

工资周期单位

PeriodUnitType

None.

HasExpired

是否过期

boolean

None.

ExpiredTime

过期时间

date

None.

JobTitle

职位标题

string

None.

CompanyName

用人单位名称 将使用登录用户验证其真实性

string

None.

JobDescription

职位描述

string

None.

Welfares

福利标识集合

Collection of integer

None.

IsCustomerAddress

是否默认地址 默认false 表示默认地址,从公司取

boolean

None.

CustomerAddress

自定义地址

string

None.

CustomerAddressX

自定义地址X坐标

decimal number

None.

CustomerAddressY

自定义地址Y坐标

decimal number

None.

CustomerAddressRegionId

自定义地址区域id

integer

None.

CustomerAddressSectionId

自定义地址地段id

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<ParttimeJobAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin">
  <CompanyName xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">sample string 6</CompanyName>
  <CustomerAddress xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">sample string 9</CustomerAddress>
  <CustomerAddressRegionId xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">12</CustomerAddressRegionId>
  <CustomerAddressSectionId xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">13</CustomerAddressSectionId>
  <CustomerAddressX xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">10.1</CustomerAddressX>
  <CustomerAddressY xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">11.1</CustomerAddressY>
  <IsCustomerAddress xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">true</IsCustomerAddress>
  <JobDescription xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">sample string 7</JobDescription>
  <JobTitle xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">sample string 5</JobTitle>
  <Welfares xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Mh.Job.Service.Dto.Job.Admin.Base">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Welfares>
  <ExpiredTime>2024-04-30T01:51:32.0666331+08:00</ExpiredTime>
  <HasExpired>true</HasExpired>
  <ParttimeTypeId>1</ParttimeTypeId>
  <Salary>2.1</Salary>
  <SalaryUnit>Day</SalaryUnit>
  <SettleType>Daily</SettleType>
</ParttimeJobAddDto>

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 'ParttimeJobAddDto'.

Response Information

Resource Description

后台 - 添加新的兼职职位

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />