POST v1/syslog/create

新增

Request Information

URI Parameters

None.

Body Parameters

SysLogModel
NameDescriptionTypeAdditional information
LogType

日志分类

string

None.

Content

日志具体详细内容

string

None.

Level

日志级别

SysLogLevel

None.

LevelDisplay

状态显示文本

string

None.

Id

主键Id

integer

None.

CreatedTime

创建时间

date

None.

CreatedBy

创建人

string

None.

UpdatedTime

更新时间

date

None.

UpdatedBy

更新人

string

None.

IsDeleted

是否删除(软删除)

boolean

None.

DeletedTime

删除时间

date

None.

DeletedBy

删除用户

string

None.

Request Formats

application/json, text/json

Sample:
{
  "logType": "sample string 1",
  "content": "sample string 2",
  "level": 0,
  "levelDisplay": "错误",
  "id": 3,
  "createdTime": "2026-07-28 16:49:42",
  "createdBy": "sample string 5",
  "updatedTime": "2026-07-28 16:49:42",
  "updatedBy": "sample string 6",
  "isDeleted": true,
  "deletedTime": "2026-07-28 16:49:42",
  "deletedBy": "sample string 8"
}

application/xml, text/xml

Sample:
<SysLogModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BgOA.Models.ViewModels">
  <CreatedBy>sample string 5</CreatedBy>
  <CreatedTime>2026-07-28T16:49:42.055788+08:00</CreatedTime>
  <DeletedBy>sample string 8</DeletedBy>
  <DeletedTime>2026-07-28T16:49:42.055788+08:00</DeletedTime>
  <Id>3</Id>
  <IsDeleted>true</IsDeleted>
  <UpdatedBy>sample string 6</UpdatedBy>
  <UpdatedTime>2026-07-28T16:49:42.055788+08:00</UpdatedTime>
  <Content>sample string 2</Content>
  <Level>Error</Level>
  <LogType>sample string 1</LogType>
</SysLogModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultOfSysLogModel
NameDescriptionTypeAdditional information
Result

SysLogModel

None.

ResultCode

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "result": {
    "logType": "sample string 1",
    "content": "sample string 2",
    "level": 0,
    "levelDisplay": "错误",
    "id": 3,
    "createdTime": "2026-07-28 16:49:42",
    "createdBy": "sample string 5",
    "updatedTime": "2026-07-28 16:49:42",
    "updatedBy": "sample string 6",
    "isDeleted": true,
    "deletedTime": "2026-07-28 16:49:42",
    "deletedBy": "sample string 8"
  },
  "resultCode": "sample string 1",
  "errorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiResultOfSysLogModelINxgc_P41 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BgOA.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <ResultCode>sample string 1</ResultCode>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/BgOA.Models.ViewModels">
    <d2p1:CreatedBy>sample string 5</d2p1:CreatedBy>
    <d2p1:CreatedTime>2026-07-28T16:49:42.055788+08:00</d2p1:CreatedTime>
    <d2p1:DeletedBy>sample string 8</d2p1:DeletedBy>
    <d2p1:DeletedTime>2026-07-28T16:49:42.055788+08:00</d2p1:DeletedTime>
    <d2p1:Id>3</d2p1:Id>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:UpdatedBy>sample string 6</d2p1:UpdatedBy>
    <d2p1:UpdatedTime>2026-07-28T16:49:42.055788+08:00</d2p1:UpdatedTime>
    <d2p1:Content>sample string 2</d2p1:Content>
    <d2p1:Level>Error</d2p1:Level>
    <d2p1:LogType>sample string 1</d2p1:LogType>
  </Result>
</ApiResultOfSysLogModelINxgc_P41>