Documentation ¶
Index ¶
- Variables
- type Company
- type CompanyPagination
- type CreateCompanyInput
- type CreateDepartmentInput
- type CreateEmployeeInput
- type Department
- type DepartmentPagination
- type Employee
- type EmployeePagination
- type Gender
- type Node
- type Pagination
- type PaginationInfo
- type UpdateCompanyInput
- type UpdateDepartmentInput
- type UpdateEmployeeInput
Constants ¶
This section is empty.
Variables ¶
View Source
var AllGender = []Gender{ GenderMale, GenderFemale, }
Functions ¶
This section is empty.
Types ¶
type Company ¶
type CompanyPagination ¶
type CompanyPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Nodes []*Company `json:"nodes"` }
func (CompanyPagination) IsPagination ¶
func (CompanyPagination) IsPagination()
type CreateCompanyInput ¶
type CreateDepartmentInput ¶
type CreateEmployeeInput ¶
type Department ¶
type Department struct { ID string `json:"id"` DepartmentName string `json:"departmentName"` Email string `json:"email"` CompanyID string `json:"company"` }
func (Department) IsNode ¶
func (Department) IsNode()
type DepartmentPagination ¶
type DepartmentPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Nodes []*Department `json:"nodes"` }
func (DepartmentPagination) IsPagination ¶
func (DepartmentPagination) IsPagination()
type Employee ¶
type Employee struct { ID string `json:"id"` Name string `json:"name"` Gender Gender `json:"gender"` Email string `json:"email"` LatestLoginAt string `json:"latestLoginAt"` // 扶養家族の人数 DependentsNum int `json:"dependentsNum"` // 管理職かどうか IsManager bool `json:"isManager"` DepartmentID string `json:"department"` CompanyID string `json:"company"` }
type EmployeePagination ¶
type EmployeePagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Nodes []*Employee `json:"nodes"` }
func (EmployeePagination) IsPagination ¶
func (EmployeePagination) IsPagination()
type Pagination ¶
type Pagination interface {
IsPagination()
}
type PaginationInfo ¶
type UpdateCompanyInput ¶
type UpdateDepartmentInput ¶
Click to show internal directories.
Click to hide internal directories.