internal

package
v0.1.103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Company = func(modules co_interface.IModules) i_controller.ICompany {
	return &CompanyController[co_interface.IModules]{
		modules: modules,
	}
}
View Source
var Employee = func(modules co_interface.IModules) i_controller.IEmployee {
	return &EmployeeController{
		modules: modules,
	}
}
View Source
var My = func(modules co_interface.IModules) i_controller.IMy {
	return &MyController{
		modules: modules,
	}
}
View Source
var Team = func(modules co_interface.IModules) i_controller.ITeam {
	return &TeamController[co_interface.IModules]{
		modules: modules,
	}
}

Functions

This section is empty.

Types

type CompanyController

type CompanyController[T co_interface.IModules] struct {
	i_controller.ICompany
	// contains filtered or unexported fields
}

func (*CompanyController[T]) CreateCompany

CreateCompany 创建公司信息

func (*CompanyController[T]) GetCompanyById

GetCompanyById 通过ID获取公司信息

func (*CompanyController[T]) GetCompanyDetail

GetCompanyDetail 获取公司详情,包含完整商务联系人电话

func (*CompanyController[T]) GetModules

func (c *CompanyController[T]) GetModules() co_interface.IModules

func (*CompanyController[T]) HasCompanyByName

HasCompanyByName 公司名称是否存在

func (*CompanyController[T]) QueryCompanyList

QueryCompanyList 查询公司列表

func (*CompanyController[T]) UpdateCompany

UpdateCompany 更新公司信息

type EmployeeController

type EmployeeController struct {
	// contains filtered or unexported fields
}

func (*EmployeeController) CreateEmployee

CreateEmployee 创建员工信息

func (*EmployeeController) DeleteEmployee

DeleteEmployee 删除员工信息

func (*EmployeeController) GetEmployeeById

func (*EmployeeController) GetEmployeeDetailById

func (c *EmployeeController) GetEmployeeDetailById(ctx context.Context, req *co_company_api.GetEmployeeDetailByIdReq) (res *co_model.EmployeeRes, err error)

GetEmployeeDetailById 获取员工详情信息

func (*EmployeeController) GetEmployeeListByRoleId

GetEmployeeListByRoleId 根据角色ID获取所有所属员工

func (*EmployeeController) GetModules

func (c *EmployeeController) GetModules() co_interface.IModules

func (*EmployeeController) HasEmployeeByName

HasEmployeeByName 员工名称是否存在

func (*EmployeeController) HasEmployeeByNo

HasEmployeeByNo 员工工号是否存在

func (*EmployeeController) QueryEmployeeList

QueryEmployeeList 查询员工列表

func (*EmployeeController) UpdateEmployee

UpdateEmployee 更新员工信息

type MyController

type MyController struct {
	i_controller.IMy
	// contains filtered or unexported fields
}

func (*MyController) GetCompany

GetCompany 获取当前公司信息

func (*MyController) GetModules

func (c *MyController) GetModules() co_interface.IModules

func (*MyController) GetProfile

GetProfile 获取当前员工及用户信息

func (*MyController) GetTeams

GetTeams 获取当前团队信息

func (*MyController) SetAvatar

SetAvatar 设置员工头像

func (*MyController) SetMobile

SetMobile 设置手机号

type TeamController

type TeamController[T co_interface.IModules] struct {
	i_controller.ITeam
	// contains filtered or unexported fields
}

func (*TeamController[T]) CreateTeam

func (*TeamController[T]) DeleteTeam

func (*TeamController[T]) GetModules

func (c *TeamController[T]) GetModules() co_interface.IModules

func (*TeamController[T]) GetTeamById

func (*TeamController[T]) GetTeamMemberList

func (*TeamController[T]) HasTeamByName

func (*TeamController[T]) QueryTeamList

func (*TeamController[T]) QueryTeamListByEmployee

func (*TeamController[T]) SetTeamCaptain

func (*TeamController[T]) SetTeamMember

func (*TeamController[T]) SetTeamOwner

func (*TeamController[T]) UpdateTeam

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL