Documentation ¶
Index ¶
- Variables
- type CompanyController
- func (c *CompanyController) CreateCompany(ctx context.Context, req *co_company_api.CreateCompanyReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetCompanyById(ctx context.Context, req *co_company_api.GetCompanyByIdReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetCompanyDetail(ctx context.Context, req *co_company_api.GetCompanyDetailReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetModules() co_interface.IModules
- func (c *CompanyController) HasCompanyByName(ctx context.Context, req *co_company_api.HasCompanyByNameReq) (api_v1.BoolRes, error)
- func (c *CompanyController) QueryCompanyList(ctx context.Context, req *co_company_api.QueryCompanyListReq) (*co_model.CompanyListRes, error)
- func (c *CompanyController) 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) CreateTeam(ctx context.Context, req *co_company_api.CreateTeamReq) (*co_model.TeamRes, error)
- func (c *TeamController) DeleteTeam(ctx context.Context, req *co_company_api.DeleteTeamReq) (api_v1.BoolRes, error)
- func (c *TeamController) GetModules() co_interface.IModules
- func (c *TeamController) GetTeamById(ctx context.Context, req *co_company_api.GetTeamByIdReq) (*co_model.TeamRes, error)
- func (c *TeamController) GetTeamMemberList(ctx context.Context, req *co_company_api.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
- func (c *TeamController) HasTeamByName(ctx context.Context, req *co_company_api.HasTeamByNameReq) (api_v1.BoolRes, error)
- func (c *TeamController) QueryTeamList(ctx context.Context, req *co_company_api.QueryTeamListReq) (*co_model.TeamListRes, error)
- func (c *TeamController) QueryTeamListByEmployee(ctx context.Context, req *co_company_api.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
- func (c *TeamController) SetTeamCaptain(ctx context.Context, req *co_company_api.SetTeamCaptainReq) (api_v1.BoolRes, error)
- func (c *TeamController) SetTeamMember(ctx context.Context, req *co_company_api.SetTeamMemberReq) (api_v1.BoolRes, error)
- func (c *TeamController) SetTeamOwner(ctx context.Context, req *co_company_api.SetTeamOwnerReq) (api_v1.BoolRes, error)
- func (c *TeamController) 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{ 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 ¶
func (c *CompanyController) CreateCompany(ctx context.Context, req *co_company_api.CreateCompanyReq) (*co_model.CompanyRes, error)
CreateCompany 创建公司信息
func (*CompanyController) GetCompanyById ¶
func (c *CompanyController) GetCompanyById(ctx context.Context, req *co_company_api.GetCompanyByIdReq) (*co_model.CompanyRes, error)
GetCompanyById 通过ID获取公司信息
func (*CompanyController) GetCompanyDetail ¶
func (c *CompanyController) GetCompanyDetail(ctx context.Context, req *co_company_api.GetCompanyDetailReq) (*co_model.CompanyRes, error)
GetCompanyDetail 获取公司详情,包含完整商务联系人电话
func (*CompanyController) GetModules ¶
func (c *CompanyController) GetModules() co_interface.IModules
func (*CompanyController) HasCompanyByName ¶
func (c *CompanyController) HasCompanyByName(ctx context.Context, req *co_company_api.HasCompanyByNameReq) (api_v1.BoolRes, error)
HasCompanyByName 公司名称是否存在
func (*CompanyController) QueryCompanyList ¶
func (c *CompanyController) QueryCompanyList(ctx context.Context, req *co_company_api.QueryCompanyListReq) (*co_model.CompanyListRes, error)
QueryCompanyList 查询公司列表
func (*CompanyController) UpdateCompany ¶
func (c *CompanyController) 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 struct { i_controller.ITeam // contains filtered or unexported fields }
func (*TeamController) CreateTeam ¶
func (c *TeamController) CreateTeam(ctx context.Context, req *co_company_api.CreateTeamReq) (*co_model.TeamRes, error)
func (*TeamController) DeleteTeam ¶
func (c *TeamController) DeleteTeam(ctx context.Context, req *co_company_api.DeleteTeamReq) (api_v1.BoolRes, error)
func (*TeamController) GetModules ¶
func (c *TeamController) GetModules() co_interface.IModules
func (*TeamController) GetTeamById ¶
func (c *TeamController) GetTeamById(ctx context.Context, req *co_company_api.GetTeamByIdReq) (*co_model.TeamRes, error)
func (*TeamController) GetTeamMemberList ¶
func (c *TeamController) GetTeamMemberList(ctx context.Context, req *co_company_api.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
func (*TeamController) HasTeamByName ¶
func (c *TeamController) HasTeamByName(ctx context.Context, req *co_company_api.HasTeamByNameReq) (api_v1.BoolRes, error)
func (*TeamController) QueryTeamList ¶
func (c *TeamController) QueryTeamList(ctx context.Context, req *co_company_api.QueryTeamListReq) (*co_model.TeamListRes, error)
func (*TeamController) QueryTeamListByEmployee ¶
func (c *TeamController) QueryTeamListByEmployee(ctx context.Context, req *co_company_api.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
func (*TeamController) SetTeamCaptain ¶
func (c *TeamController) SetTeamCaptain(ctx context.Context, req *co_company_api.SetTeamCaptainReq) (api_v1.BoolRes, error)
func (*TeamController) SetTeamMember ¶
func (c *TeamController) SetTeamMember(ctx context.Context, req *co_company_api.SetTeamMemberReq) (api_v1.BoolRes, error)
func (*TeamController) SetTeamOwner ¶
func (c *TeamController) SetTeamOwner(ctx context.Context, req *co_company_api.SetTeamOwnerReq) (api_v1.BoolRes, error)
func (*TeamController) UpdateTeam ¶
func (c *TeamController) UpdateTeam(ctx context.Context, req *co_company_api.UpdateTeamReq) (*co_model.TeamRes, error)
Click to show internal directories.
Click to hide internal directories.