Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICompany ¶
type ICompany interface { GetCompanyById(ctx context.Context, id int64) (*co_model.CompanyRes, error) GetCompanyByName(ctx context.Context, name string) (*co_model.CompanyRes, error) HasCompanyByName(ctx context.Context, name string, excludeIds ...int64) bool QueryCompanyList(ctx context.Context, filter *sys_model.SearchParams) (*co_model.CompanyListRes, error) CreateCompany(ctx context.Context, info *co_model.Company) (*co_model.CompanyRes, error) UpdateCompany(ctx context.Context, info *co_model.Company) (*co_model.CompanyRes, error) GetCompanyDetail(ctx context.Context, id int64) (*co_model.CompanyRes, error) }
type IEmployee ¶
type IEmployee interface { GetEmployeeById(ctx context.Context, id int64) (*co_model.EmployeeRes, error) GetEmployeeByName(ctx context.Context, name string) (*co_model.EmployeeRes, error) HasEmployeeByName(ctx context.Context, name string, unionMainId int64, excludeIds ...int64) bool HasEmployeeByNo(ctx context.Context, no string, unionMainId int64, excludeIds ...int64) bool GetEmployeeBySession(ctx context.Context) (*co_model.EmployeeRes, error) QueryEmployeeList(ctx context.Context, search *sys_model.SearchParams) (*co_model.EmployeeListRes, error) CreateEmployee(ctx context.Context, info *co_model.Employee) (*co_model.EmployeeRes, error) UpdateEmployee(ctx context.Context, info *co_model.Employee) (*co_model.EmployeeRes, error) DeleteEmployee(ctx context.Context, id int64) (bool, error) SetEmployeeMobile(ctx context.Context, newMobile int64, captcha string, password string) (bool, error) SetEmployeeAvatar(ctx context.Context, imageId int64) (bool, error) GetEmployeeDetailById(ctx context.Context, id int64) (*co_model.EmployeeRes, error) GetEmployeeListByRoleId(ctx context.Context, roleId int64) (*co_model.EmployeeListRes, error) }
type IMy ¶
type IMy interface { GetProfile(ctx context.Context) (*co_model.MyProfileRes, error) GetCompany(ctx context.Context) (*co_model.MyCompanyRes, error) GetTeams(ctx context.Context) (res co_model.MyTeamListRes, err error) }
type ITeam ¶
type ITeam interface { GetTeamById(ctx context.Context, id int64) (*co_model.TeamRes, error) GetTeamByName(ctx context.Context, name string) (*co_model.TeamRes, error) HasTeamByName(ctx context.Context, name string, unionMainId int64, excludeIds ...int64) bool QueryTeamList(ctx context.Context, search *sys_model.SearchParams) (*co_model.TeamListRes, error) QueryTeamMemberList(ctx context.Context, search *sys_model.SearchParams) (*co_model.TeamMemberListRes, error) CreateTeam(ctx context.Context, info *co_model.Team) (*co_model.TeamRes, error) UpdateTeam(ctx context.Context, id int64, name string, remark string) (*co_model.TeamRes, error) GetTeamMemberList(ctx context.Context, id int64) (*co_model.EmployeeListRes, error) QueryTeamListByEmployee(ctx context.Context, employeeId int64, unionMainId int64) (*co_model.TeamListRes, error) SetTeamMember(ctx context.Context, teamId int64, employeeIds []int64) (api_v1.BoolRes, error) SetTeamOwner(ctx context.Context, teamId int64, employeeId int64) (api_v1.BoolRes, error) SetTeamCaptain(ctx context.Context, teamId int64, employeeId int64) (api_v1.BoolRes, error) DeleteTeam(ctx context.Context, teamId int64) (api_v1.BoolRes, error) DeleteTeamMemberByEmployee(ctx context.Context, employeeId int64) (bool, error) }
Click to show internal directories.
Click to hide internal directories.