mirror of https://github.com/vernonkeenan/lib
feat: Replace AccountID with CompanyID in GetIndustryCompaniesParams and update related Swagger definitions
parent
6f44181e08
commit
7b878f86d5
|
@ -72,11 +72,11 @@ type GetIndustryCompaniesParams struct {
|
||||||
*/
|
*/
|
||||||
Active *bool
|
Active *bool
|
||||||
|
|
||||||
/* Email.
|
/* CompanyID.
|
||||||
|
|
||||||
Email address used for identity lookup
|
Company record ID
|
||||||
*/
|
*/
|
||||||
Email *string
|
CompanyID *string
|
||||||
|
|
||||||
/* IndustryCompanyID.
|
/* IndustryCompanyID.
|
||||||
|
|
||||||
|
@ -170,15 +170,15 @@ func (o *GetIndustryCompaniesParams) SetActive(active *bool) {
|
||||||
o.Active = active
|
o.Active = active
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithEmail adds the email to the get industry companies params
|
// WithCompanyID adds the companyID to the get industry companies params
|
||||||
func (o *GetIndustryCompaniesParams) WithEmail(email *string) *GetIndustryCompaniesParams {
|
func (o *GetIndustryCompaniesParams) WithCompanyID(companyID *string) *GetIndustryCompaniesParams {
|
||||||
o.SetEmail(email)
|
o.SetCompanyID(companyID)
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetEmail adds the email to the get industry companies params
|
// SetCompanyID adds the companyId to the get industry companies params
|
||||||
func (o *GetIndustryCompaniesParams) SetEmail(email *string) {
|
func (o *GetIndustryCompaniesParams) SetCompanyID(companyID *string) {
|
||||||
o.Email = email
|
o.CompanyID = companyID
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithIndustryCompanyID adds the industryCompanyID to the get industry companies params
|
// WithIndustryCompanyID adds the industryCompanyID to the get industry companies params
|
||||||
|
@ -250,18 +250,18 @@ func (o *GetIndustryCompaniesParams) WriteToRequest(r runtime.ClientRequest, reg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.Email != nil {
|
if o.CompanyID != nil {
|
||||||
|
|
||||||
// query param email
|
// query param companyId
|
||||||
var qrEmail string
|
var qrCompanyID string
|
||||||
|
|
||||||
if o.Email != nil {
|
if o.CompanyID != nil {
|
||||||
qrEmail = *o.Email
|
qrCompanyID = *o.CompanyID
|
||||||
}
|
}
|
||||||
qEmail := qrEmail
|
qCompanyID := qrCompanyID
|
||||||
if qEmail != "" {
|
if qCompanyID != "" {
|
||||||
|
|
||||||
if err := r.SetQueryParam("email", qEmail); err != nil {
|
if err := r.SetQueryParam("companyId", qCompanyID); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
// swagger:model IndustryCompany
|
// swagger:model IndustryCompany
|
||||||
type IndustryCompany struct {
|
type IndustryCompany struct {
|
||||||
|
|
||||||
// account ID
|
// company ID
|
||||||
AccountID *string `json:"AccountID,omitempty"`
|
CompanyID *string `json:"CompanyID,omitempty"`
|
||||||
|
|
||||||
// Created By User ID
|
// Created By User ID
|
||||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||||
|
|
|
@ -104,6 +104,12 @@ parameters:
|
||||||
name: industryCompanyId
|
name: industryCompanyId
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
companyIdQuery:
|
||||||
|
description: Company record ID
|
||||||
|
in: query
|
||||||
|
name: companyId
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
industryCompanyRequest:
|
industryCompanyRequest:
|
||||||
description: An array of new IndustryCompany records
|
description: An array of new IndustryCompany records
|
||||||
in: body
|
in: body
|
||||||
|
@ -803,7 +809,7 @@ paths:
|
||||||
- $ref: "#/parameters/offsetQuery"
|
- $ref: "#/parameters/offsetQuery"
|
||||||
- $ref: "#/parameters/activeQuery"
|
- $ref: "#/parameters/activeQuery"
|
||||||
- $ref: "#/parameters/industryCompanyIdQuery"
|
- $ref: "#/parameters/industryCompanyIdQuery"
|
||||||
- $ref: "#/parameters/emailQuery"
|
- $ref: "#/parameters/companyIdQuery"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
$ref: "#/responses/IndustryCompanyResponse"
|
$ref: "#/responses/IndustryCompanyResponse"
|
||||||
|
@ -1728,7 +1734,7 @@ definitions:
|
||||||
IndustryCompany:
|
IndustryCompany:
|
||||||
description: Junction object between Industry and Company
|
description: Junction object between Industry and Company
|
||||||
properties:
|
properties:
|
||||||
AccountID:
|
CompanyID:
|
||||||
type: string
|
type: string
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
CreatedByID:
|
CreatedByID:
|
||||||
|
|
|
@ -104,6 +104,12 @@ parameters:
|
||||||
name: industryCompanyId
|
name: industryCompanyId
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
companyIdQuery:
|
||||||
|
description: Company record ID
|
||||||
|
in: query
|
||||||
|
name: companyId
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
industryCompanyRequest:
|
industryCompanyRequest:
|
||||||
description: An array of new IndustryCompany records
|
description: An array of new IndustryCompany records
|
||||||
in: body
|
in: body
|
||||||
|
@ -803,7 +809,7 @@ paths:
|
||||||
- $ref: "#/parameters/offsetQuery"
|
- $ref: "#/parameters/offsetQuery"
|
||||||
- $ref: "#/parameters/activeQuery"
|
- $ref: "#/parameters/activeQuery"
|
||||||
- $ref: "#/parameters/industryCompanyIdQuery"
|
- $ref: "#/parameters/industryCompanyIdQuery"
|
||||||
- $ref: "#/parameters/emailQuery"
|
- $ref: "#/parameters/companyIdQuery"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
$ref: "#/responses/IndustryCompanyResponse"
|
$ref: "#/responses/IndustryCompanyResponse"
|
||||||
|
@ -1728,7 +1734,7 @@ definitions:
|
||||||
IndustryCompany:
|
IndustryCompany:
|
||||||
description: Junction object between Industry and Company
|
description: Junction object between Industry and Company
|
||||||
properties:
|
properties:
|
||||||
AccountID:
|
CompanyID:
|
||||||
type: string
|
type: string
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
CreatedByID:
|
CreatedByID:
|
||||||
|
|
Loading…
Reference in New Issue