Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkHistory ¶
type WorkHistory interface { Fetch(id string) (*WorkHistoryType, error) FetchByUserID(userID string) ([]*WorkHistoryType, error) FetchAll() ([]*WorkHistoryType, error) Insert(wt *WorkHistoryType) error Update(wt *WorkHistoryType) error Delete(id string) error }
WorkHistory for fetching data interface - implementation is in repository
type WorkHistoryFieldResolver ¶
type WorkHistoryFieldResolver interface { GetByID(p graphql.ResolveParams) (interface{}, error) GetByUserID(p graphql.ResolveParams) (interface{}, error) List(p graphql.ResolveParams) (interface{}, error) Create(p graphql.ResolveParams) (interface{}, error) Update(p graphql.ResolveParams) (interface{}, error) Delete(p graphql.ResolveParams) (interface{}, error) }
WorkHistoryFieldResolver for resolver of schema interface
func NewWorkHistoryFieldResolve ¶
func NewWorkHistoryFieldResolve( logger *zap.Logger, workHistoryRepo WorkHistory, ) WorkHistoryFieldResolver
NewWorkHistoryFieldResolve returns WorkHistoryFieldResolver interface
type WorkHistoryType ¶
type WorkHistoryType struct { ID int `json:"id" boil:"id"` UserID int `json:"user_id" boil:"user_id"` Company string `json:"company" boil:"company"` Title string `json:"title" boil:"title"` Description string `json:"description" boil:"description"` TechIDs []int `json:"tech_ids" boil:"tech_ids"` StartedAt *time.Time `json:"started_at" boil:"started_at"` EndedAt *time.Time `json:"ended_at" boil:"ended_at"` }
WorkHistoryType is type of work history
Click to show internal directories.
Click to hide internal directories.