Documentation ¶
Index ¶
- func MultiPartRequest(ctx context.Context, method, URL string, values map[string]Value) (body io.ReadCloser, err error)
- func Request(ctx context.Context, method, URL string, reader io.ReadCloser, ...) (body io.ReadCloser, err error)
- type Attachment
- type CommentStatus
- type CommentType
- type CreateCompany
- type Executor
- type Group
- type Issue
- type IssueCreate
- type Named
- type OKD
- func (OKD OKD) CreateCompany(ctx context.Context, CreateCompany interface{}, response interface{}) error
- func (OKD OKD) CreateEmployer(ctx context.Context, CreateEmployer interface{}, response interface{}) error
- func (OKD OKD) CreateIssue(ctx context.Context, createIssueRequest interface{}, response interface{}) error
- func (OKD OKD) CreateIssueComment(ctx context.Context, issueID, createCommentRequest, response interface{}) error
- func (OKD OKD) CreateIssueServices(ctx context.Context, issueID, createService, response interface{}) error
- func (OKD OKD) CreateIssueTimeEntry(ctx context.Context, issueID, IssueTimeEntry, response interface{}) error
- func (OKD OKD) CreateIssueWithAttach(ctx context.Context, createIssueRequest interface{}, response interface{}) error
- func (OKD OKD) CreateMaintenanceEntity(ctx context.Context, IssueTimeEntry, response interface{}) error
- func (OKD OKD) FindCompany(ctx context.Context, query map[string][]string, response interface{}) error
- func (OKD OKD) FindMaintenancesEntity(ctx context.Context, query map[string][]string, response interface{}) error
- func (OKD OKD) GetCompanyAttachment(ctx context.Context, companyID, attachmentID string, response []interface{}) error
- func (OKD OKD) GetCompanyList(ctx context.Context, Query map[string][]string, response []interface{}) error
- func (OKD OKD) GetIssue(ctx context.Context, issueID, response interface{}) error
- func (OKD OKD) GetIssueAttachment(ctx context.Context, issueID, attachmentID, response interface{}) error
- func (OKD OKD) GetIssueCheckList(ctx context.Context, issueID, response interface{}) error
- func (OKD OKD) GetIssueComments(ctx context.Context, issueID, response interface{}) error
- func (OKD OKD) GetIssueCount(ctx context.Context, response interface{}) error
- func (OKD OKD) GetIssueList(ctx context.Context, response interface{}) error
- func (OKD OKD) GetIssueParameters(ctx context.Context, response interface{}) error
- func (OKD OKD) GetIssuePriorities(ctx context.Context, response interface{}) error
- func (OKD OKD) GetIssueStatuses(ctx context.Context, response interface{}) error
- func (OKD OKD) GetIssueTimeEntries(ctx context.Context, issueID, response interface{}) error
- func (OKD OKD) GetMaintenanceEntity(ctx context.Context, MaintenanceEntityID, response interface{}) error
- func (OKD OKD) GetMaintenanceEntityList(ctx context.Context, query map[string][]string, response interface{}) error
- func (OKD OKD) IdIdReqRes(method, path string) func(ctx context.Context, ID, ID1, request, response interface{}) error
- func (OKD OKD) IdIdRes(method, path string) func(ctx context.Context, ID, ID1, response interface{}) error
- func (OKD OKD) IdReaderRes(method, path string) ...
- func (OKD OKD) IdReqRes(method, path string) func(ctx context.Context, ID, request, response interface{}) error
- func (OKD OKD) IdRes(method, path string) func(ctx context.Context, ID, response interface{}) error
- func (OKD OKD) ReaderRes(method, path string) func(ctx context.Context, Form io.Reader, response interface{}) error
- func (OKD OKD) ReqRes(method, URL string) func(ctx context.Context, request interface{}, response interface{}) error
- func (OKD OKD) Res(method, URL string) func(ctx context.Context, response interface{}) error
- func (OKD OKD) SetCompany(ctx context.Context, CompanyID string, UpdateCompany interface{}, ...) error
- func (OKD OKD) SetEmployer(ctx context.Context, EmployerID string, UpdateEmployer interface{}, ...) error
- func (OKD OKD) SetEmployerActivation(ctx context.Context, EmployerID string, UpdateActivation UpdateActivation, ...) error
- func (OKD OKD) SetEmployerGroups(ctx context.Context, response interface{}) error
- func (OKD OKD) SetEmployerList(ctx context.Context, query map[string][]string, response interface{}) error
- func (OKD OKD) SetEmployerRoles(ctx context.Context, response interface{}) error
- func (OKD OKD) SetEmployerRoutes(ctx context.Context, response interface{}) error
- func (OKD OKD) SetIssueAssignee(ctx context.Context, issueID, createIssueRequest, response interface{}) error
- func (OKD OKD) SetIssueCheckList(ctx context.Context, issueID, checkID, item, response interface{}) error
- func (OKD OKD) SetIssueDeadline(ctx context.Context, issueID, IssueDeadlineRequest, response interface{}) error
- func (OKD OKD) SetIssueStatus(ctx context.Context, issueID, IssueStatusRequest, response interface{}) error
- func (OKD OKD) SetIssueType(ctx context.Context, issueID, IssueTypeRequest, response interface{}) error
- func (OKD OKD) SetMaintenanceEntity(ctx context.Context, ...) error
- func (OKD OKD) ValRes(method, URL string) func(ctx context.Context, val map[string][]string, response interface{}) error
- type RequestIssueAssignee
- type ResponseCompany
- type ResponseCompanyAttachment
- type ResponseCreateCompany
- type ResponseEmployerList
- type ResponseError
- type ResponseFindCompany
- type ResponseUpdateCompany
- type StatusTime
- type TimeStatus
- type Type
- type UpdateActivation
- type UpdateCompany
- type User
- type Value
- type Valued
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiPartRequest ¶
Types ¶
type Attachment ¶
type CommentStatus ¶
type CommentType ¶
type CreateCompany ¶
type CreateCompany struct { Company struct { Name string `json:"name"` AdditionalName string `json:"additional_name"` Site string `json:"site"` Email string `json:"email"` Phone string `json:"phone"` Address string `json:"address"` Coordinates []float64 `json:"coordinates"` Comment string `json:"comment"` ObserverIds []int `json:"observer_ids"` DefaultAssigneeID int `json:"default_assignee_id"` CategoryCode string `json:"category_code"` Crm1CID string `json:"crm_1c_id"` CustomParameters struct { Code1 string `json:"code1"` Code2 string `json:"code2"` Code3 bool `json:"code3"` } `json:"custom_parameters"` } `json:"company"` }
type Issue ¶
type Issue struct { ID int `json:"id"` Title string `json:"title"` Description string `json:"description"` CreatedAt time.Time `json:"created_at"` CompletedAt time.Time `json:"completed_at"` DeadlineAt time.Time `json:"deadline_at"` Source string `json:"source"` SpentTimeTotal int `json:"spent_time_total"` StartExecutionUntil time.Time `json:"start_execution_until"` PlannedExecutionInHours int `json:"planned_execution_in_hours"` PlannedReactionAt time.Time `json:"planned_reaction_at"` ReactedAt time.Time `json:"reacted_at"` UpdatedAt time.Time `json:"updated_at"` DelayedTo interface{} `json:"delayed_to"` CompanyID int `json:"company_id"` GroupID int `json:"group_id"` Coexecutors []Executor `json:"coexecutors"` ServiceObjectID interface{} `json:"service_object_id"` EquipmentIds []interface{} `json:"equipment_ids"` Attachments []Attachment `json:"attachments"` StatusTimes StatusTime `json:"status_times"` Parameters []interface{} `json:"parameters"` Comments CommentStatus `json:"comments"` ParentID interface{} `json:"parent_id"` ChildIds []interface{} `json:"child_ids"` Type Type `json:"type"` Priority Named `json:"priority"` Status Named `json:"status"` OldStatus Named `json:"old_status"` Rate Valued `json:"rate"` Observers []Named `json:"observers"` ObserverGroups []Named `json:"observer_groups"` Contact Named `json:"contact"` Agreement interface{} `json:"agreement"` Assignee Named `json:"assignee"` Author Named `json:"author"` }
type IssueCreate ¶
type IssueCreate struct { Title string `json:"title"` Description string `json:"description"` CompanyID string `json:"company_id"` ContactID string `json:"contact_id"` AgreementID string `json:"agreement_id"` Type string `json:"type"` Priority string `json:"priority"` MaintenanceEntityID string `json:"maintenance_entity_id"` EquipmentIds []string `json:"equipment_ids"` DeadlineAt string `json:"deadline_at"` CustomParameters struct { Address string `json:"address"` Checked bool `json:"checked"` } `json:"custom_parameters"` ParentID string `json:"parent_id"` Author struct { ID string `json:"id"` Type string `json:"type"` } `json:"author"` ObserverIds []int `json:"observer_ids"` ObserverGroupIds []int `json:"observer_group_ids"` ContactObserverIds []int `json:"contact_observer_ids"` }
type OKD ¶
type OKD struct {
// contains filtered or unexported fields
}
func (OKD) CreateCompany ¶
func (OKD) CreateEmployer ¶
func (OKD) CreateIssue ¶
func (OKD) CreateIssueComment ¶
func (OKD) CreateIssueServices ¶
func (OKD) CreateIssueTimeEntry ¶
func (OKD) CreateIssueWithAttach ¶
func (OKD) CreateMaintenanceEntity ¶
func (OKD) FindCompany ¶
func (OKD) FindMaintenancesEntity ¶
func (OKD) GetCompanyAttachment ¶
func (OKD) GetCompanyList ¶
func (OKD) GetIssueAttachment ¶
func (OKD) GetIssueCheckList ¶
func (OKD) GetIssueComments ¶
func (OKD) GetIssueCount ¶
func (OKD) GetIssueList ¶
func (OKD) GetIssueParameters ¶
func (OKD) GetIssuePriorities ¶
func (OKD) GetIssueStatuses ¶
func (OKD) GetIssueTimeEntries ¶
func (OKD) GetMaintenanceEntity ¶
func (OKD) GetMaintenanceEntityList ¶
func (OKD) IdIdReqRes ¶
func (OKD) IdReaderRes ¶
func (OKD) SetCompany ¶
func (OKD) SetEmployer ¶
func (OKD) SetEmployerActivation ¶
func (OKD) SetEmployerGroups ¶
func (OKD) SetEmployerList ¶
func (OKD) SetEmployerRoles ¶
func (OKD) SetEmployerRoutes ¶
func (OKD) SetIssueAssignee ¶
func (OKD) SetIssueCheckList ¶
func (OKD) SetIssueDeadline ¶
func (OKD) SetIssueStatus ¶
func (OKD) SetIssueType ¶
func (OKD) SetMaintenanceEntity ¶
type RequestIssueAssignee ¶
type ResponseCompany ¶
type ResponseCompanyAttachment ¶
type ResponseCompanyAttachment struct { ID int `json:"id"` AttachmentFileName string `json:"attachment_file_name"` Description string `json:"description"` AttachmentFileSize int `json:"attachment_file_size"` IsPublic bool `json:"is_public"` CreatedAt time.Time `json:"created_at"` AttachmentURL string `json:"attachment_url"` }
type ResponseCreateCompany ¶
type ResponseCreateCompany struct { ID int `json:"id"` Name string `json:"name"` AdditionalName string `json:"additional_name"` Site string `json:"site"` Email string `json:"email"` Phone string `json:"phone"` Address string `json:"address"` Comment string `json:"comment"` Crm1CID string `json:"crm_1c_id"` Coordinates []float64 `json:"coordinates"` Observers []struct { ID int `json:"id"` Name string `json:"name"` } `json:"observers"` Contacts []interface{} `json:"contacts"` DefaultAssignee struct { ID int `json:"id"` Name string `json:"name"` } `json:"default_assignee"` Category struct { ID int `json:"id"` Code string `json:"code"` Name string `json:"name"` Color string `json:"color"` } `json:"category"` Attachments []interface{} `json:"attachments"` Parameters []struct { Code string `json:"code"` Name string `json:"name"` FieldType string `json:"field_type"` Value string `json:"value"` } `json:"parameters"` }
type ResponseEmployerList ¶
type ResponseEmployerList []struct { ID int `json:"id"` LastName string `json:"last_name"` FirstName string `json:"first_name"` Patronymic string `json:"patronymic"` Position string `json:"position"` Active bool `json:"active"` Email string `json:"email"` Login string `json:"login"` Phone string `json:"phone"` TelephonyNumber string `json:"telephony_number"` Comment string `json:"comment"` Groups []struct { ID int `json:"id"` Name string `json:"name"` } `json:"groups"` Roles []struct { ID int `json:"id"` Name string `json:"name"` } `json:"roles"` }
type ResponseError ¶
type ResponseFindCompany ¶
type ResponseFindCompany struct { ID int `json:"id"` Name string `json:"name"` AdditionalName string `json:"additional_name"` Site string `json:"site"` Email string `json:"email"` Phone string `json:"phone"` Crm1CID string `json:"crm_1c_id"` Address string `json:"address"` Comment string `json:"comment"` Coordinates []float64 `json:"coordinates"` Observers []struct { ID int `json:"id"` Name string `json:"name"` } `json:"observers"` Contacts []interface{} `json:"contacts"` DefaultAssignee struct { ID int `json:"id"` Name string `json:"name"` } `json:"default_assignee"` Category struct { ID int `json:"id"` Code string `json:"code"` Name string `json:"name"` Color string `json:"color"` } `json:"category"` Attachments []struct { ID int `json:"id"` AttachmentFileName string `json:"attachment_file_name"` Description string `json:"description"` AttachmentFileSize int `json:"attachment_file_size"` IsPublic bool `json:"is_public"` CreatedAt time.Time `json:"created_at"` } `json:"attachments"` Parameters []struct { Code string `json:"code"` Name string `json:"name"` FieldType string `json:"field_type"` Value string `json:"value"` } `json:"parameters"` }
type ResponseUpdateCompany ¶
type ResponseUpdateCompany struct { ID int `json:"id"` Name string `json:"name"` AdditionalName string `json:"additional_name"` Site string `json:"site"` Email string `json:"email"` Phone string `json:"phone"` Address string `json:"address"` Comment string `json:"comment"` Crm1CID string `json:"crm_1c_id"` Coordinates []float64 `json:"coordinates"` Observers []struct { ID int `json:"id"` Name string `json:"name"` } `json:"observers"` Contacts []interface{} `json:"contacts"` DefaultAssignee struct { ID int `json:"id"` Name string `json:"name"` } `json:"default_assignee"` Category struct { ID int `json:"id"` Code string `json:"code"` Name string `json:"name"` Color string `json:"color"` } `json:"category"` Attachments []struct { ID int `json:"id"` AttachmentFileName string `json:"attachment_file_name"` Description string `json:"description"` AttachmentFileSize int `json:"attachment_file_size"` IsPublic bool `json:"is_public"` CreatedAt time.Time `json:"created_at"` } `json:"attachments"` Parameters []struct { Code string `json:"code"` Name string `json:"name"` FieldType string `json:"field_type"` Value string `json:"value"` } `json:"parameters"` }
type StatusTime ¶
type StatusTime struct { Opened TimeStatus `json:"opened"` Completed TimeStatus `json:"completed"` }
type TimeStatus ¶
type UpdateActivation ¶
type UpdateActivation struct {
Active bool `json:"active"`
}
type UpdateCompany ¶
type UpdateCompany struct { Company struct { Name string `json:"name"` AdditionalName string `json:"additional_name"` Site string `json:"site"` Email string `json:"email"` Phone string `json:"phone"` Address string `json:"address"` Coordinates []float64 `json:"coordinates"` Comment string `json:"comment"` ObserverIds []int `json:"observer_ids"` DefaultAssigneeID int `json:"default_assignee_id"` CategoryCode string `json:"category_code"` Crm1CID string `json:"crm_1c_id"` CustomParameters struct { Code2 string `json:"code2"` } `json:"custom_parameters"` } `json:"company"` }
type Value ¶
type Value struct { Name string Body io.ReadCloser }
Click to show internal directories.
Click to hide internal directories.