internal

package
v0.1.106 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 10 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{
		modules: modules,
		dao:     modules.Dao(),
	}
}
View Source
var Employee = func(modules co_interface.IModules) i_controller.IEmployee {
	return &EmployeeController{
		modules: modules,
		dao:     modules.Dao(),
	}
}
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{
		modules: modules,
		dao:     modules.Dao(),
	}
}

Functions

This section is empty.

Types

type CompanyController

type CompanyController struct {
	i_controller.ICompany
	// contains filtered or unexported fields
}

func (*CompanyController) CreateCompany

CreateCompany 创建公司信息

func (*CompanyController) GetCompanyById

GetCompanyById 通过ID获取公司信息

func (*CompanyController) GetCompanyDetail

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

func (*CompanyController) GetModules

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

func (*CompanyController) HasCompanyByName

HasCompanyByName 公司名称是否存在

func (*CompanyController) QueryCompanyList

QueryCompanyList 查询公司列表

func (*CompanyController) 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 struct {
	i_controller.ITeam
	// contains filtered or unexported fields
}

func (*TeamController) CreateTeam

func (*TeamController) DeleteTeam

func (*TeamController) GetModules

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

func (*TeamController) GetTeamById

func (*TeamController) GetTeamMemberList

func (*TeamController) HasTeamByName

func (*TeamController) QueryTeamList

func (*TeamController) QueryTeamListByEmployee

func (*TeamController) SetTeamCaptain

func (*TeamController) SetTeamMember

func (*TeamController) SetTeamOwner

func (*TeamController) UpdateTeam

Jump to

Keyboard shortcuts

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