POST Api/A/YS/MNewsAdd?MemberID={MemberID}
动态基本操作 添加会员动态
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
MemberID |
会员编号 |
globally unique identifier |
Required |
Body Parameters
会员动态实体
MNewsModelName | Description | Type | Additional information |
---|---|---|---|
ID |
编号 |
globally unique identifier |
None. |
MemberID |
会员编号 |
globally unique identifier |
None. |
CName |
标题名称 |
string |
None. |
NAuthor |
作者 |
string |
None. |
Source |
来源 |
string |
None. |
ReadCount |
阅读数量 |
integer |
None. |
Info |
简介 |
string |
None. |
Image |
大图 |
string |
None. |
Thumbnail |
缩略图 |
string |
None. |
State |
状态 |
boolean |
None. |
StateName |
状态名称 |
string |
None. |
Content |
内容 |
string |
None. |
CreateTime |
创建时间 |
date |
None. |
Imags |
图片列表 |
Collection of MNewsImagModel |
None. |
Groups |
分组列表 |
Collection of ContactsGroupInfoModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "9980013c-a478-4267-b835-7f1cf40ec868", "MemberID": "0dc79705-871c-4da3-a117-cd4808b29fc5", "CName": "sample string 3", "NAuthor": "sample string 4", "Source": "sample string 5", "ReadCount": 6, "Info": "sample string 7", "Image": "sample string 8", "Thumbnail": "sample string 9", "State": true, "StateName": "sample string 11", "Content": "sample string 12", "CreateTime": "2025-07-07T14:39:22.310835+08:00", "Imags": [ { "ID": "4f9c5612-9ab7-4a91-bc1c-58a53f8c1c85", "NewsID": "b0e84873-c204-4b7f-b016-711e1d41fb2f", "Image": "sample string 3", "Thumbnail": "sample string 4", "Content": "sample string 5", "CreateTime": "2025-07-07T14:39:22.310835+08:00" }, { "ID": "4f9c5612-9ab7-4a91-bc1c-58a53f8c1c85", "NewsID": "b0e84873-c204-4b7f-b016-711e1d41fb2f", "Image": "sample string 3", "Thumbnail": "sample string 4", "Content": "sample string 5", "CreateTime": "2025-07-07T14:39:22.310835+08:00" } ], "Groups": [ { "ID": "2d8fceae-f93c-45e3-bd2a-990da1df151f", "GroupID": "f764b411-1b31-409f-8c2b-164329d7a838", "MemberID": "f9bef9b8-796f-4ddb-af4c-9445db2aa276", "Name": "sample string 4" }, { "ID": "2d8fceae-f93c-45e3-bd2a-990da1df151f", "GroupID": "f764b411-1b31-409f-8c2b-164329d7a838", "MemberID": "f9bef9b8-796f-4ddb-af4c-9445db2aa276", "Name": "sample string 4" } ] }
application/xml, text/xml
Sample:
<MNewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.A.YS"> <CName>sample string 3</CName> <Content>sample string 12</Content> <CreateTime>2025-07-07T14:39:22.310835+08:00</CreateTime> <Groups> <ContactsGroupInfoModel> <GroupID>f764b411-1b31-409f-8c2b-164329d7a838</GroupID> <ID>2d8fceae-f93c-45e3-bd2a-990da1df151f</ID> <MemberID>f9bef9b8-796f-4ddb-af4c-9445db2aa276</MemberID> <Name>sample string 4</Name> </ContactsGroupInfoModel> <ContactsGroupInfoModel> <GroupID>f764b411-1b31-409f-8c2b-164329d7a838</GroupID> <ID>2d8fceae-f93c-45e3-bd2a-990da1df151f</ID> <MemberID>f9bef9b8-796f-4ddb-af4c-9445db2aa276</MemberID> <Name>sample string 4</Name> </ContactsGroupInfoModel> </Groups> <ID>9980013c-a478-4267-b835-7f1cf40ec868</ID> <Image>sample string 8</Image> <Imags> <MNewsImagModel> <Content>sample string 5</Content> <CreateTime>2025-07-07T14:39:22.310835+08:00</CreateTime> <ID>4f9c5612-9ab7-4a91-bc1c-58a53f8c1c85</ID> <Image>sample string 3</Image> <NewsID>b0e84873-c204-4b7f-b016-711e1d41fb2f</NewsID> <Thumbnail>sample string 4</Thumbnail> </MNewsImagModel> <MNewsImagModel> <Content>sample string 5</Content> <CreateTime>2025-07-07T14:39:22.310835+08:00</CreateTime> <ID>4f9c5612-9ab7-4a91-bc1c-58a53f8c1c85</ID> <Image>sample string 3</Image> <NewsID>b0e84873-c204-4b7f-b016-711e1d41fb2f</NewsID> <Thumbnail>sample string 4</Thumbnail> </MNewsImagModel> </Imags> <Info>sample string 7</Info> <MemberID>0dc79705-871c-4da3-a117-cd4808b29fc5</MemberID> <NAuthor>sample string 4</NAuthor> <ReadCount>6</ReadCount> <Source>sample string 5</Source> <State>true</State> <StateName>sample string 11</StateName> <Thumbnail>sample string 9</Thumbnail> </MNewsModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.