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": "f83626c9-cfc1-43f3-be33-622991f809fc", "MemberID": "eb97b429-13a7-4536-ae2e-e2076a394385", "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-04-18T17:19:02.1663275+08:00", "Imags": [ { "ID": "73fb94ed-80cb-4609-b393-2f238c344351", "NewsID": "d772fc66-719d-46dd-b8e4-ed143b3af843", "Image": "sample string 3", "Thumbnail": "sample string 4", "Content": "sample string 5", "CreateTime": "2025-04-18T17:19:02.1663275+08:00" }, { "ID": "73fb94ed-80cb-4609-b393-2f238c344351", "NewsID": "d772fc66-719d-46dd-b8e4-ed143b3af843", "Image": "sample string 3", "Thumbnail": "sample string 4", "Content": "sample string 5", "CreateTime": "2025-04-18T17:19:02.1663275+08:00" } ], "Groups": [ { "ID": "6dc8926d-6c35-49d7-84d8-53d0fdde0897", "GroupID": "7f6e2bb3-ce35-4c48-8a52-a21066987d34", "MemberID": "867031b1-2de4-4601-83e3-987fda6c95e4", "Name": "sample string 4" }, { "ID": "6dc8926d-6c35-49d7-84d8-53d0fdde0897", "GroupID": "7f6e2bb3-ce35-4c48-8a52-a21066987d34", "MemberID": "867031b1-2de4-4601-83e3-987fda6c95e4", "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-04-18T17:19:02.1663275+08:00</CreateTime> <Groups> <ContactsGroupInfoModel> <GroupID>7f6e2bb3-ce35-4c48-8a52-a21066987d34</GroupID> <ID>6dc8926d-6c35-49d7-84d8-53d0fdde0897</ID> <MemberID>867031b1-2de4-4601-83e3-987fda6c95e4</MemberID> <Name>sample string 4</Name> </ContactsGroupInfoModel> <ContactsGroupInfoModel> <GroupID>7f6e2bb3-ce35-4c48-8a52-a21066987d34</GroupID> <ID>6dc8926d-6c35-49d7-84d8-53d0fdde0897</ID> <MemberID>867031b1-2de4-4601-83e3-987fda6c95e4</MemberID> <Name>sample string 4</Name> </ContactsGroupInfoModel> </Groups> <ID>f83626c9-cfc1-43f3-be33-622991f809fc</ID> <Image>sample string 8</Image> <Imags> <MNewsImagModel> <Content>sample string 5</Content> <CreateTime>2025-04-18T17:19:02.1663275+08:00</CreateTime> <ID>73fb94ed-80cb-4609-b393-2f238c344351</ID> <Image>sample string 3</Image> <NewsID>d772fc66-719d-46dd-b8e4-ed143b3af843</NewsID> <Thumbnail>sample string 4</Thumbnail> </MNewsImagModel> <MNewsImagModel> <Content>sample string 5</Content> <CreateTime>2025-04-18T17:19:02.1663275+08:00</CreateTime> <ID>73fb94ed-80cb-4609-b393-2f238c344351</ID> <Image>sample string 3</Image> <NewsID>d772fc66-719d-46dd-b8e4-ed143b3af843</NewsID> <Thumbnail>sample string 4</Thumbnail> </MNewsImagModel> </Imags> <Info>sample string 7</Info> <MemberID>eb97b429-13a7-4536-ae2e-e2076a394385</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.