POST api/NotificationAPI/TemplateCRUD
模版 CRUD
Request Information
URI Parameters
None.
Body Parameters
TemplateCRUDInputName | Description | Type | Additional information |
---|---|---|---|
OperType | string |
None. |
|
OperOb | string |
None. |
|
smsTemplate | SMSTemplate |
None. |
|
mailTemplate | MailTemplate |
None. |
Request Formats
application/json, text/json
Sample:
{ "OperType": "sample string 1", "OperOb": "sample string 2", "smsTemplate": { "Subject": "sample string 1", "SMSContent": "sample string 2", "Code": "sample string 3", "Tenant_GID": "cb2b1719-876d-4473-bf14-bd30c856b6e7", "SysCreateDate": "2025-05-04T15:15:28.1922185+08:00", "SysCreateUser": "00000000-0000-0000-0000-000000000000", "SysModifyDate": "2025-05-04T15:15:28.1922185+08:00", "SysModifyUser": "00000000-0000-0000-0000-000000000000", "GID": "dc7c196b-cc35-4119-97ae-b689fb3a65d9" }, "mailTemplate": { "MailSubject": "sample string 1", "MailContent": "sample string 2", "Code": "sample string 3", "Tenant_GID": "255e2fb5-c788-49dd-bce9-585e65ccecaf", "SysCreateDate": "2025-05-04T15:15:28.1922185+08:00", "SysCreateUser": "00000000-0000-0000-0000-000000000000", "SysModifyDate": "2025-05-04T15:15:28.1922185+08:00", "SysModifyUser": "00000000-0000-0000-0000-000000000000", "GID": "774a0de3-8313-482a-87e3-77b4c044aea2" } }
application/xml, text/xml
Sample:
<TemplateCRUDInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.OpenAPI.Model"> <OperOb>sample string 2</OperOb> <OperType>sample string 1</OperType> <mailTemplate xmlns:d2p1="http://schemas.datacontract.org/2004/07/JetHR.Core.Model"> <d2p1:_gid>774a0de3-8313-482a-87e3-77b4c044aea2</d2p1:_gid> <d2p1:SysModifyDate>2025-05-04T15:15:28.1922185+08:00</d2p1:SysModifyDate> <d2p1:SysModifyUser>00000000-0000-0000-0000-000000000000</d2p1:SysModifyUser> <d2p1:Code>sample string 3</d2p1:Code> <d2p1:MailContent>sample string 2</d2p1:MailContent> <d2p1:MailSubject>sample string 1</d2p1:MailSubject> <d2p1:Tenant_GID>255e2fb5-c788-49dd-bce9-585e65ccecaf</d2p1:Tenant_GID> </mailTemplate> <smsTemplate xmlns:d2p1="http://schemas.datacontract.org/2004/07/JetHR.Core.Model"> <d2p1:_gid>dc7c196b-cc35-4119-97ae-b689fb3a65d9</d2p1:_gid> <d2p1:SysModifyDate>2025-05-04T15:15:28.1922185+08:00</d2p1:SysModifyDate> <d2p1:SysModifyUser>00000000-0000-0000-0000-000000000000</d2p1:SysModifyUser> <d2p1:Code>sample string 3</d2p1:Code> <d2p1:SMSContent>sample string 2</d2p1:SMSContent> <d2p1:Subject>sample string 1</d2p1:Subject> <d2p1:Tenant_GID>cb2b1719-876d-4473-bf14-bd30c856b6e7</d2p1:Tenant_GID> </smsTemplate> </TemplateCRUDInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
模版 CRUD
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>