Contact Management
This page is auto-generated from cmd/web/routes.go.
Endpoint List
| Method | Path | Handler | Request |
|---|---|---|---|
| Post | /api/modules/create-calender | handlers.Repo.CreateCalender | CalenderRequest.CalenderEventCreateRequest |
| Post | /api/modules/create-calender-member | handlers.Repo.CreateCalenderMember | CalenderRequest.CalenderMemberCreateRequest |
| Post | /api/modules/create-contact | handlers.Repo.CreateContact | ContactRequest.ContactCreateRequest |
| Post | /api/modules/create-contact-category | handlers.Repo.CreateContactCategory | ContactRequest.ContactCategoryCreateRequest |
| Post | /api/modules/delete-calender | handlers.Repo.DeleteCalender | requests.DeleteRequest |
| Post | /api/modules/delete-contact | handlers.Repo.DeleteContact | ContactRequest.ContactDeleteRequest |
| Post | /api/modules/delete-contact-category | handlers.Repo.DeleteContactCategory | ContactRequest.ContactCategoryDeleteRequest |
| Post | /api/modules/list-calender | handlers.Repo.ListCalender | requests.ListRequest |
| Post | /api/modules/list-contact | handlers.Repo.ListContact | requests.ListRequest |
| Post | /api/modules/list-contact-category | handlers.Repo.ListContactCategory | requests.ListRequest |
| Post | /api/modules/meeting-list | handlers.Repo.ListCalenderInvited | - |
| Post | /api/modules/read-calender | handlers.Repo.ReadCalender | requests.ReadRequest |
| Post | /api/modules/read-contact | handlers.Repo.ReadContact | requests.ReadRequest |
| Post | /api/modules/read-contact-category | handlers.Repo.ReadContactType | requests.ReadRequest |
| Post | /api/modules/report-contact | handlers.Repo.ReportContact | - |
| Post | /api/modules/update-calender | handlers.Repo.UpdateCalender | CalenderRequest.CalendarEventUpdateRequest |
| Post | /api/modules/update-calender-status | handlers.Repo.UpdateCalenderStatus | CalenderRequest.CalendarStatusUpdateRequest |
| Post | /api/modules/update-calender-vehicle | handlers.Repo.UpdateVehicletoCalender | CalenderRequest.CalendarSetVehicleRequest |
| Post | /api/modules/update-contact | handlers.Repo.UpdateContact | ContactRequest.ContactUpdateRequest |
| Post | /api/modules/update-contact-category | handlers.Repo.UpdateContactCategory | ContactRequest.ContactCategoryUpdateRequest |
| Post | /api/modules/update-date-calender | handlers.Repo.UpdateDateCalender | CalenderRequest.CalendarDateEventUpdateRequest |
Request Example: CalenderRequest.CalenderEventCreateRequest
{
"name": "string",
"description": "string",
"customer_id": 0,
"started_at": 0,
"finished_at": 0,
"invited_email": [
"string"
],
"is_all_day": true,
"is_added_meeting": true,
"meet_platform_id": 0,
"meet_location": "string",
"is_public": true,
"is_need_vehicle": true,
"master_id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
name | string | no |
description | string | no |
customer_id | int64 | no |
started_at | int64 | no |
finished_at | int64 | no |
invited_email | *[]string | no |
is_all_day | bool | no |
is_added_meeting | bool | no |
meet_platform_id | int64 | no |
meet_location | string | no |
is_public | bool | no |
is_need_vehicle | bool | no |
master_id | int64 | no |
Request Example: CalenderRequest.CalenderMemberCreateRequest
{
"uuid": "string",
"name": "string",
"surname": "string",
"mobile_phone_country": "string",
"mobile_phone_area": "string",
"mobile_phone": "string",
"identification_number": "string",
"birthday": "string",
"birthday_string": "string",
"consent_given_check": 0,
"consent_text": "string",
"consent_ip_address": "string",
"job_id": 0,
"note": "string",
"referance_code": "string"
}Fields:
| Field | Type | Required |
|---|---|---|
uuid | string | no |
name | string | no |
surname | string | no |
mobile_phone_country | string | no |
mobile_phone_area | string | no |
mobile_phone | string | no |
identification_number | string | no |
birthday | string | no |
birthday_string | string | no |
consent_given_check | int | no |
consent_text | string | no |
consent_ip_address | string | no |
job_id | int64 | no |
note | string | no |
referance_code | string | no |
Request Example: ContactRequest.ContactCreateRequest
{
"customer_id": 0,
"contact_type": [
0
],
"company_name": "string",
"name": "string",
"surname": "string",
"country_id": 0,
"province_id": 0,
"district_id": 0,
"email": "string",
"phone_country": "string",
"phone_area": "string",
"phone": "string",
"address": "string",
"post_code": "string",
"contact_title": "string",
"identification_number": "string",
"birthday_date": 0,
"birthday_year": "string"
}Fields:
| Field | Type | Required |
|---|---|---|
customer_id | int64 | no |
contact_type | *[]int | yes |
company_name | string | no |
name | string | yes |
surname | string | yes |
country_id | int | no |
province_id | int | no |
district_id | int | no |
email | string | no |
phone_country | string | no |
phone_area | string | no |
phone | string | no |
address | string | no |
post_code | string | no |
contact_title | string | no |
identification_number | string | no |
birthday_date | int64 | no |
birthday_year | string | no |
Request Example: ContactRequest.ContactCategoryCreateRequest
{
"translation": {}
}Fields:
| Field | Type | Required |
|---|---|---|
translation | []Translation | no |
Request Example: requests.DeleteRequest
{
"id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int | yes |
Request Example: ContactRequest.ContactDeleteRequest
{
"id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int | yes |
Request Example: ContactRequest.ContactCategoryDeleteRequest
{
"id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int | no |
Request Example: requests.ListRequest
{
"per_page": 0,
"page": 0,
"sort_column": "string",
"sort_order": "string"
}Fields:
| Field | Type | Required |
|---|---|---|
per_page | int | yes |
page | int | yes |
sort_column | string | no |
sort_order | string | no |
Request Example: requests.ReadRequest
{
"id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int | yes |
Request Example: CalenderRequest.CalendarEventUpdateRequest
{
"id": 0,
"name": "string",
"description": "string",
"customer_id": 0,
"started_at": 0,
"finished_at": 0,
"invited_email": [
"string"
],
"is_all_day": true,
"is_added_meeting": true,
"meet_platform_id": 0,
"meet_location": "string",
"is_public": true,
"is_need_vehicle": true
}Fields:
| Field | Type | Required |
|---|---|---|
id | int64 | no |
name | string | no |
description | string | no |
customer_id | int64 | no |
started_at | int64 | no |
finished_at | int64 | no |
invited_email | *[]string | no |
is_all_day | bool | no |
is_added_meeting | bool | no |
meet_platform_id | int64 | no |
meet_location | string | no |
is_public | bool | no |
is_need_vehicle | bool | no |
Request Example: CalenderRequest.CalendarStatusUpdateRequest
{
"id": 0,
"status_id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int64 | no |
status_id | int | no |
Request Example: CalenderRequest.CalendarSetVehicleRequest
{
"ids": [
0
],
"vehicle": "string",
"note": "string",
"vehicle_status_id": 0,
"vehicle_planned_date_at": 0,
"vehicle_start_location": {},
"vehicle_target_location": {}
}Fields:
| Field | Type | Required |
|---|---|---|
ids | []int64 | yes |
vehicle | string | yes |
note | string | no |
vehicle_status_id | int | no |
vehicle_planned_date_at | int64 | no |
vehicle_start_location | StartLocation | no |
vehicle_target_location | TargetLocation | no |
Request Example: ContactRequest.ContactUpdateRequest
{
"id": 0,
"customer_id": 0,
"contact_type": {},
"company_name": "string",
"name": "string",
"surname": "string",
"country_id": 0,
"province_id": 0,
"district_id": 0,
"email": "string",
"phone_country": "string",
"phone_area": "string",
"phone": "string",
"address": "string",
"post_code": "string",
"contact_title": "string",
"contact_type_id": 0,
"identification_number": "string",
"birthday_date": 0,
"birthday_year": "string"
}Fields:
| Field | Type | Required |
|---|---|---|
id | int64 | yes |
customer_id | int64 | no |
contact_type | []*int | yes |
company_name | string | no |
name | string | yes |
surname | string | yes |
country_id | int | no |
province_id | int | no |
district_id | int | no |
email | *string | no |
phone_country | string | no |
phone_area | string | no |
phone | *string | no |
address | string | no |
post_code | string | no |
contact_title | string | no |
contact_type_id | int | no |
identification_number | string | no |
birthday_date | int64 | no |
birthday_year | string | no |
Request Example: ContactRequest.ContactCategoryUpdateRequest
{
"id": 0,
"translation": {},
"is_active": true
}Fields:
| Field | Type | Required |
|---|---|---|
id | int64 | yes |
translation | []UpdateTranslation | no |
is_active | bool | no |
Request Example: CalenderRequest.CalendarDateEventUpdateRequest
{
"id": 0,
"started_at": 0,
"finished_at": 0
}Fields:
| Field | Type | Required |
|---|---|---|
id | int64 | no |
started_at | int64 | no |
finished_at | int64 | no |
Response Examples
Create:
{
"status": "succeeded",
"message": "record created successfully",
"id": 1
}Delete:
{
"status": "succeeded",
"message": "deleted successfully"
}List:
{
"status": "succeeded",
"data": [ ],
"totalPage": 1,
"currentPage": 1,
"perPage": 10
}Read:
{
"status": "succeeded",
"data": { }
}Update:
{
"status": "succeeded",
"message": "updated successfully"
}Error (example):
{
"status": "invalid_request",
"message": "validation failed",
"errors": [ ]
}Last updated on