POST api/OperationLog/WriteOperationLog

Request Information

URI Parameters

None.

Body Parameters

OperationLogDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserName

string

None.

UserId

integer

None.

OperationModule

OperationModule

None.

OperationType

OperationType

None.

OperationTime

date

None.

OperationContent

string

None.

ClientIp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserName": "sample string 1",
  "UserId": 1,
  "OperationModule": "系统",
  "OperationType": "登录",
  "OperationTime": "2026-09-02 19:21:28",
  "OperationContent": "sample string 2",
  "ClientIp": "sample string 3"
}

application/xml, text/xml

Sample:
<OperationLogDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MS.Log.Dto">
  <ClientIp>sample string 3</ClientIp>
  <Id>1</Id>
  <OperationContent>sample string 2</OperationContent>
  <OperationModule>System</OperationModule>
  <OperationTime>2026-09-02T19:21:28.5849489+08:00</OperationTime>
  <OperationType>System_Login</OperationType>
  <UserId>1</UserId>
  <UserName>sample string 1</UserName>
</OperationLogDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseResultOfBoolean
NameDescriptionTypeAdditional information
Status

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "Data": true
}

application/xml, text/xml

Sample:
<ResponseResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Willv.Common">
  <Data>true</Data>
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Status>true</Status>
</ResponseResultOfboolean>