POST company/add_agreement

保存合同

Request Information

URI Parameters

None.

Body Parameters

AddAgreementViewModel
NameDescriptionTypeAdditional information
target_agreement_id

integer

None.

company_id

integer

None.

apply_id

integer

None.

job_id

integer

None.

name

string

None.

relation_id

integer

None.

category_id

integer

None.

note

string

None.

need_back

boolean

None.

title

string

None.

agreement_part_list

Collection of AddAgreementPartViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "target_agreement_id": 1,
  "company_id": 2,
  "apply_id": 3,
  "job_id": 4,
  "name": "sample string 5",
  "relation_id": 6,
  "category_id": 7,
  "note": "sample string 8",
  "need_back": true,
  "title": "sample string 10",
  "agreement_part_list": [
    {
      "agreement_part_type_id": 1,
      "title": "sample string 2",
      "agreement_part_field_type_id": 1,
      "description": "sample string 3",
      "reserved_text": "sample string 4",
      "date_from": "2024-11-25T14:41:44.5782482+08:00",
      "date_to": "2024-11-25T14:41:44.5782482+08:00",
      "is_agreement_date": true
    },
    {
      "agreement_part_type_id": 1,
      "title": "sample string 2",
      "agreement_part_field_type_id": 1,
      "description": "sample string 3",
      "reserved_text": "sample string 4",
      "date_from": "2024-11-25T14:41:44.5782482+08:00",
      "date_to": "2024-11-25T14:41:44.5782482+08:00",
      "is_agreement_date": true
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存合同

BaseResponse
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "success": true
}