POST api/QRCode/Create

后台--创建关注二维码

Request Information

URI Parameters

None.

Body Parameters

mh163k_QRCode
NameDescriptionTypeAdditional information
Id

主键

integer

None.

CategoryName

分类名称

string

None.

ImageUrl

图片地址

string

None.

Title

标题

string

None.

Summary

摘要

string

None.

Link

链接

string

None.

IsForever

是否永久二维码

boolean

None.

ValidDays

如果为临时二维码,有效期天数

integer

None.

CreateTime

创建时间

date

None.

StartTime

二维码开始生效时间(计算有效时需要拿这个字段而不是CreateTime)

date

None.

Ticket

用于向微信服务器交换二维码图片的凭据

string

None.

IsDeleted

是否删除

boolean

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:
<mh163k_QRCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.QRCode.Service.Model">
  <CategoryName>sample string 2</CategoryName>
  <CreateTime>2024-05-09T20:11:07.7571134+08:00</CreateTime>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <IsDeleted>true</IsDeleted>
  <IsForever>true</IsForever>
  <Link>sample string 6</Link>
  <StartTime>2024-05-09T20:11:07.7571134+08:00</StartTime>
  <Summary>sample string 5</Summary>
  <Ticket>sample string 9</Ticket>
  <Title>sample string 4</Title>
  <ValidDays>8</ValidDays>
</mh163k_QRCode>

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

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/" />