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": "ab2981a3-f598-457a-8809-2e1890133f75", "SysCreateDate": "2025-06-21T01:51:48.4068648+08:00", "SysCreateUser": "00000000-0000-0000-0000-000000000000", "SysModifyDate": "2025-06-21T01:51:48.4068648+08:00", "SysModifyUser": "00000000-0000-0000-0000-000000000000", "GID": "925248b6-d21e-4227-b6ff-c24396fab220" }, "mailTemplate": { "MailSubject": "sample string 1", "MailContent": "sample string 2", "Code": "sample string 3", "Tenant_GID": "0e3f4c75-ddc4-4ccc-bb17-335f69814327", "SysCreateDate": "2025-06-21T01:51:48.4068648+08:00", "SysCreateUser": "00000000-0000-0000-0000-000000000000", "SysModifyDate": "2025-06-21T01:51:48.4068648+08:00", "SysModifyUser": "00000000-0000-0000-0000-000000000000", "GID": "fdec3014-7729-4661-85b6-0ccc7686c22c" } }
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>fdec3014-7729-4661-85b6-0ccc7686c22c</d2p1:_gid> <d2p1:SysModifyDate>2025-06-21T01:51:48.4068648+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>0e3f4c75-ddc4-4ccc-bb17-335f69814327</d2p1:Tenant_GID> </mailTemplate> <smsTemplate xmlns:d2p1="http://schemas.datacontract.org/2004/07/JetHR.Core.Model"> <d2p1:_gid>925248b6-d21e-4227-b6ff-c24396fab220</d2p1:_gid> <d2p1:SysModifyDate>2025-06-21T01:51:48.4068648+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>ab2981a3-f598-457a-8809-2e1890133f75</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>