Documentation
¶
Index ¶
- Variables
- type CompanyController
- func (c *CompanyController[T]) CreateCompany(ctx context.Context, req *co_company_api.CreateCompanyReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[T]) GetCompanyById(ctx context.Context, req *co_company_api.GetCompanyByIdReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[T]) GetCompanyDetail(ctx context.Context, req *co_company_api.GetCompanyDetailReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[T]) GetModules() co_interface.IModules
- func (c *CompanyController[T]) HasCompanyByName(ctx context.Context, req *co_company_api.HasCompanyByNameReq) (api_v1.BoolRes, error)
- func (c *CompanyController[T]) QueryCompanyList(ctx context.Context, req *co_company_api.QueryCompanyListReq) (*co_model.CompanyListRes, error)
- func (c *CompanyController[T]) UpdateCompany(ctx context.Context, req *co_company_api.UpdateCompanyReq) (*co_model.CompanyRes, error)
- type EmployeeController
- func (c *EmployeeController) CreateEmployee(ctx context.Context, req *co_company_api.CreateEmployeeReq) (*co_model.EmployeeRes, error)
- func (c *EmployeeController) DeleteEmployee(ctx context.Context, req *co_company_api.DeleteEmployeeReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) GetEmployeeById(ctx context.Context, req *co_company_api.GetEmployeeByIdReq) (*co_model.EmployeeRes, error)
- func (c *EmployeeController) GetEmployeeDetailById(ctx context.Context, req *co_company_api.GetEmployeeDetailByIdReq) (res *co_model.EmployeeRes, err error)
- func (c *EmployeeController) GetEmployeeListByRoleId(ctx context.Context, req *co_company_api.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController) GetModules() co_interface.IModules
- func (c *EmployeeController) HasEmployeeByName(ctx context.Context, req *co_company_api.HasEmployeeByNameReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) HasEmployeeByNo(ctx context.Context, req *co_company_api.HasEmployeeByNoReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) QueryEmployeeList(ctx context.Context, req *co_company_api.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController) UpdateEmployee(ctx context.Context, req *co_company_api.UpdateEmployeeReq) (*co_model.EmployeeRes, error)
- type MyController
- func (c *MyController) GetCompany(ctx context.Context, _ *co_company_api.GetCompanyReq) (*co_model.MyCompanyRes, error)
- func (c *MyController) GetModules() co_interface.IModules
- func (c *MyController) GetProfile(ctx context.Context, _ *co_company_api.GetProfileReq) (*co_model.MyProfileRes, error)
- func (c *MyController) GetTeams(ctx context.Context, _ *co_company_api.GetTeamsReq) (co_model.MyTeamListRes, error)
- func (c *MyController) SetAvatar(ctx context.Context, req *co_company_api.SetAvatarReq) (api_v1.BoolRes, error)
- func (c *MyController) SetMobile(ctx context.Context, req *co_company_api.SetMobileReq) (api_v1.BoolRes, error)
- type TeamController
- func (c *TeamController[T]) CreateTeam(ctx context.Context, req *co_company_api.CreateTeamReq) (*co_model.TeamRes, error)
- func (c *TeamController[T]) DeleteTeam(ctx context.Context, req *co_company_api.DeleteTeamReq) (api_v1.BoolRes, error)
- func (c *TeamController[T]) GetModules() co_interface.IModules
- func (c *TeamController[T]) GetTeamById(ctx context.Context, req *co_company_api.GetTeamByIdReq) (*co_model.TeamRes, error)
- func (c *TeamController[T]) GetTeamMemberList(ctx context.Context, req *co_company_api.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
- func (c *TeamController[T]) HasTeamByName(ctx context.Context, req *co_company_api.HasTeamByNameReq) (api_v1.BoolRes, error)
- func (c *TeamController[T]) QueryTeamList(ctx context.Context, req *co_company_api.QueryTeamListReq) (*co_model.TeamListRes, error)
- func (c *TeamController[T]) QueryTeamListByEmployee(ctx context.Context, req *co_company_api.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
- func (c *TeamController[T]) SetTeamCaptain(ctx context.Context, req *co_company_api.SetTeamCaptainReq) (api_v1.BoolRes, error)
- func (c *TeamController[T]) SetTeamMember(ctx context.Context, req *co_company_api.SetTeamMemberReq) (api_v1.BoolRes, error)
- func (c *TeamController[T]) SetTeamOwner(ctx context.Context, req *co_company_api.SetTeamOwnerReq) (api_v1.BoolRes, error)
- func (c *TeamController[T]) UpdateTeam(ctx context.Context, req *co_company_api.UpdateTeamReq) (*co_model.TeamRes, error)
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 ¶
func (c *CompanyController[T]) CreateCompany(ctx context.Context, req *co_company_api.CreateCompanyReq) (*co_model.CompanyRes, error)
CreateCompany 创建公司信息
func (*CompanyController[T]) GetCompanyById ¶
func (c *CompanyController[T]) GetCompanyById(ctx context.Context, req *co_company_api.GetCompanyByIdReq) (*co_model.CompanyRes, error)
GetCompanyById 通过ID获取公司信息
func (*CompanyController[T]) GetCompanyDetail ¶
func (c *CompanyController[T]) GetCompanyDetail(ctx context.Context, req *co_company_api.GetCompanyDetailReq) (*co_model.CompanyRes, error)
GetCompanyDetail 获取公司详情,包含完整商务联系人电话
func (*CompanyController[T]) GetModules ¶
func (c *CompanyController[T]) GetModules() co_interface.IModules
func (*CompanyController[T]) HasCompanyByName ¶
func (c *CompanyController[T]) HasCompanyByName(ctx context.Context, req *co_company_api.HasCompanyByNameReq) (api_v1.BoolRes, error)
HasCompanyByName 公司名称是否存在
func (*CompanyController[T]) QueryCompanyList ¶
func (c *CompanyController[T]) QueryCompanyList(ctx context.Context, req *co_company_api.QueryCompanyListReq) (*co_model.CompanyListRes, error)
QueryCompanyList 查询公司列表
func (*CompanyController[T]) UpdateCompany ¶
func (c *CompanyController[T]) UpdateCompany(ctx context.Context, req *co_company_api.UpdateCompanyReq) (*co_model.CompanyRes, error)
UpdateCompany 更新公司信息
type EmployeeController ¶
type EmployeeController struct {
// contains filtered or unexported fields
}
func (*EmployeeController) CreateEmployee ¶
func (c *EmployeeController) CreateEmployee(ctx context.Context, req *co_company_api.CreateEmployeeReq) (*co_model.EmployeeRes, error)
CreateEmployee 创建员工信息
func (*EmployeeController) DeleteEmployee ¶
func (c *EmployeeController) DeleteEmployee(ctx context.Context, req *co_company_api.DeleteEmployeeReq) (api_v1.BoolRes, error)
DeleteEmployee 删除员工信息
func (*EmployeeController) GetEmployeeById ¶
func (c *EmployeeController) GetEmployeeById(ctx context.Context, req *co_company_api.GetEmployeeByIdReq) (*co_model.EmployeeRes, error)
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 ¶
func (c *EmployeeController) GetEmployeeListByRoleId(ctx context.Context, req *co_company_api.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
GetEmployeeListByRoleId 根据角色ID获取所有所属员工
func (*EmployeeController) GetModules ¶
func (c *EmployeeController) GetModules() co_interface.IModules
func (*EmployeeController) HasEmployeeByName ¶
func (c *EmployeeController) HasEmployeeByName(ctx context.Context, req *co_company_api.HasEmployeeByNameReq) (api_v1.BoolRes, error)
HasEmployeeByName 员工名称是否存在
func (*EmployeeController) HasEmployeeByNo ¶
func (c *EmployeeController) HasEmployeeByNo(ctx context.Context, req *co_company_api.HasEmployeeByNoReq) (api_v1.BoolRes, error)
HasEmployeeByNo 员工工号是否存在
func (*EmployeeController) QueryEmployeeList ¶
func (c *EmployeeController) QueryEmployeeList(ctx context.Context, req *co_company_api.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
QueryEmployeeList 查询员工列表
func (*EmployeeController) UpdateEmployee ¶
func (c *EmployeeController) UpdateEmployee(ctx context.Context, req *co_company_api.UpdateEmployeeReq) (*co_model.EmployeeRes, error)
UpdateEmployee 更新员工信息
type MyController ¶
type MyController struct { i_controller.IMy // contains filtered or unexported fields }
func (*MyController) GetCompany ¶
func (c *MyController) GetCompany(ctx context.Context, _ *co_company_api.GetCompanyReq) (*co_model.MyCompanyRes, error)
GetCompany 获取当前公司信息
func (*MyController) GetModules ¶
func (c *MyController) GetModules() co_interface.IModules
func (*MyController) GetProfile ¶
func (c *MyController) GetProfile(ctx context.Context, _ *co_company_api.GetProfileReq) (*co_model.MyProfileRes, error)
GetProfile 获取当前员工及用户信息
func (*MyController) GetTeams ¶
func (c *MyController) GetTeams(ctx context.Context, _ *co_company_api.GetTeamsReq) (co_model.MyTeamListRes, error)
GetTeams 获取当前团队信息
func (*MyController) SetAvatar ¶
func (c *MyController) SetAvatar(ctx context.Context, req *co_company_api.SetAvatarReq) (api_v1.BoolRes, error)
SetAvatar 设置员工头像
func (*MyController) SetMobile ¶
func (c *MyController) SetMobile(ctx context.Context, req *co_company_api.SetMobileReq) (api_v1.BoolRes, error)
SetMobile 设置手机号
type TeamController ¶
type TeamController[T co_interface.IModules] struct { i_controller.ITeam // contains filtered or unexported fields }
func (*TeamController[T]) CreateTeam ¶
func (c *TeamController[T]) CreateTeam(ctx context.Context, req *co_company_api.CreateTeamReq) (*co_model.TeamRes, error)
func (*TeamController[T]) DeleteTeam ¶
func (c *TeamController[T]) DeleteTeam(ctx context.Context, req *co_company_api.DeleteTeamReq) (api_v1.BoolRes, error)
func (*TeamController[T]) GetModules ¶
func (c *TeamController[T]) GetModules() co_interface.IModules
func (*TeamController[T]) GetTeamById ¶
func (c *TeamController[T]) GetTeamById(ctx context.Context, req *co_company_api.GetTeamByIdReq) (*co_model.TeamRes, error)
func (*TeamController[T]) GetTeamMemberList ¶
func (c *TeamController[T]) GetTeamMemberList(ctx context.Context, req *co_company_api.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
func (*TeamController[T]) HasTeamByName ¶
func (c *TeamController[T]) HasTeamByName(ctx context.Context, req *co_company_api.HasTeamByNameReq) (api_v1.BoolRes, error)
func (*TeamController[T]) QueryTeamList ¶
func (c *TeamController[T]) QueryTeamList(ctx context.Context, req *co_company_api.QueryTeamListReq) (*co_model.TeamListRes, error)
func (*TeamController[T]) QueryTeamListByEmployee ¶
func (c *TeamController[T]) QueryTeamListByEmployee(ctx context.Context, req *co_company_api.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
func (*TeamController[T]) SetTeamCaptain ¶
func (c *TeamController[T]) SetTeamCaptain(ctx context.Context, req *co_company_api.SetTeamCaptainReq) (api_v1.BoolRes, error)
func (*TeamController[T]) SetTeamMember ¶
func (c *TeamController[T]) SetTeamMember(ctx context.Context, req *co_company_api.SetTeamMemberReq) (api_v1.BoolRes, error)
func (*TeamController[T]) SetTeamOwner ¶
func (c *TeamController[T]) SetTeamOwner(ctx context.Context, req *co_company_api.SetTeamOwnerReq) (api_v1.BoolRes, error)
func (*TeamController[T]) UpdateTeam ¶
func (c *TeamController[T]) UpdateTeam(ctx context.Context, req *co_company_api.UpdateTeamReq) (*co_model.TeamRes, error)
Click to show internal directories.
Click to hide internal directories.