Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICompany ¶
type ICompany[ TIRes co_model.ICompanyRes, ] interface { // GetCompanyById 通过ID获取公司信息 GetCompanyById(ctx context.Context, req *co_company_api.GetCompanyByIdReq) (TIRes, error) // HasCompanyByName 公司名称是否存在 HasCompanyByName(ctx context.Context, req *co_company_api.HasCompanyByNameReq) (api_v1.BoolRes, error) // QueryCompanyList 查询公司列表 QueryCompanyList(ctx context.Context, req *co_company_api.QueryCompanyListReq) (*base_model.CollectRes[TIRes], error) // CreateCompany 创建公司信息 CreateCompany(ctx context.Context, req *co_company_api.CreateCompanyReq) (TIRes, error) // UpdateCompany 更新公司信息 UpdateCompany(ctx context.Context, req *co_company_api.UpdateCompanyReq) (TIRes, error) // GetCompanyDetail 获取公司详情,包含完整商务联系人电话 GetCompanyDetail(ctx context.Context, req *co_company_api.GetCompanyDetailReq) (TIRes, error) }
type IEmployee ¶
type IEmployee[TIRes co_model.IEmployeeRes] interface { // GetEmployeeById 根据id获取员工信息 GetEmployeeById(ctx context.Context, req *co_company_api.GetEmployeeByIdReq) (TIRes, error) // GetEmployeeDetailById 获取员工详情信息 GetEmployeeDetailById(ctx context.Context, req *co_company_api.GetEmployeeDetailByIdReq) (res TIRes, err error) // HasEmployeeByName 员工名称是否存在 HasEmployeeByName(ctx context.Context, req *co_company_api.HasEmployeeByNameReq) (api_v1.BoolRes, error) // HasEmployeeByNo 员工工号是否存在 HasEmployeeByNo(ctx context.Context, req *co_company_api.HasEmployeeByNoReq) (api_v1.BoolRes, error) // QueryEmployeeList 查询员工列表 QueryEmployeeList(ctx context.Context, req *co_company_api.QueryEmployeeListReq) (*base_model.CollectRes[TIRes], error) // CreateEmployee 创建员工信息 CreateEmployee(ctx context.Context, req *co_company_api.CreateEmployeeReq) (TIRes, error) // UpdateEmployee 更新员工信息 UpdateEmployee(ctx context.Context, req *co_company_api.UpdateEmployeeReq) (TIRes, error) // DeleteEmployee 删除员工信息 DeleteEmployee(ctx context.Context, req *co_company_api.DeleteEmployeeReq) (api_v1.BoolRes, error) // GetEmployeeListByRoleId 根据角色ID获取所有所属员工列表 GetEmployeeListByRoleId(ctx context.Context, req *co_company_api.GetEmployeeListByRoleIdReq) (*base_model.CollectRes[TIRes], error) // GetEmployeeListByTeamId 获取团队成员|列表 GetEmployeeListByTeamId(ctx context.Context, req *co_company_api.GetEmployeeListByTeamId) (*base_model.CollectRes[TIRes], error) }
type IFinancial ¶ added in v0.1.112
type IFinancial[ ITCompanyRes co_model.ICompanyRes, ITEmployeeRes co_model.IEmployeeRes, ITTeamRes co_model.ITeamRes, ITFdAccountRes co_model.IFdAccountRes, ITFdAccountBillRes co_model.IFdAccountBillRes, ITFdBankCardRes co_model.IFdBankCardRes, ITFdCurrencyRes co_model.IFdCurrencyRes, ITFdInvoiceRes co_model.IFdInvoiceRes, ITFdInvoiceDetailRes co_model.IFdInvoiceDetailRes, ] interface { GetAccountBalance(ctx context.Context, req *co_company_api.GetAccountBalanceReq) (api_v1.Int64Res, error) InvoiceRegister(ctx context.Context, req *co_company_api.CreateInvoiceReq) (ITFdInvoiceRes, error) QueryInvoice(ctx context.Context, req *co_company_api.QueryInvoiceReq) (*base_model.CollectRes[ITFdInvoiceRes], error) DeletesFdInvoiceById(ctx context.Context, req *co_company_api.DeleteInvoiceByIdReq) (api_v1.BoolRes, error) InvoiceDetailRegister(ctx context.Context, req *co_company_api.CreateInvoiceDetailReq) (ITFdInvoiceDetailRes, error) QueryInvoiceDetailList(ctx context.Context, req *co_company_api.QueryInvoiceDetailListReq) (*base_model.CollectRes[ITFdInvoiceDetailRes], error) MakeInvoiceDetailReq(ctx context.Context, req *co_company_api.MakeInvoiceDetailReq) (api_v1.BoolRes, error) AuditInvoiceDetail(ctx context.Context, req *co_company_api.AuditInvoiceDetailReq) (api_v1.BoolRes, error) BankCardRegister(ctx context.Context, req *co_company_api.BankCardRegisterReq) (ITFdBankCardRes, error) DeleteBankCard(ctx context.Context, req *co_company_api.DeleteBankCardReq) (api_v1.BoolRes, error) QueryBankCardList(ctx context.Context, req *co_company_api.QueryBankCardListReq) (*base_model.CollectRes[ITFdBankCardRes], error) }
type IMy ¶
type IMy interface { // GetProfile 获取当前员工及用户信息 GetProfile(ctx context.Context, _ *co_company_api.GetProfileReq) (*co_model.MyProfileRes, error) // GetCompany 获取当前公司信息 GetCompany(ctx context.Context, _ *co_company_api.GetCompanyReq) (*co_model.MyCompanyRes, error) // GetTeams 获取当前团队信息 GetTeams(ctx context.Context, _ *co_company_api.GetTeamsReq) (co_model.MyTeamListRes, error) // SetAvatar 设置头像 SetAvatar(ctx context.Context, req *co_company_api.SetAvatarReq) (api_v1.BoolRes, error) // SetMobile 设置手机号 SetMobile(ctx context.Context, req *co_company_api.SetMobileReq) (api_v1.BoolRes, error) }
type ITeam ¶
type ITeam[ITTeamRes co_model.ITeamRes] interface { // GetTeamById 根据id获取团队信息 GetTeamById(ctx context.Context, req *co_company_api.GetTeamByIdReq) (ITTeamRes, error) // HasTeamByName 判断团队名称是否存在 HasTeamByName(ctx context.Context, req *co_company_api.HasTeamByNameReq) (api_v1.BoolRes, error) // QueryTeamList 查询团队列表 QueryTeamList(ctx context.Context, req *co_company_api.QueryTeamListReq) (*base_model.CollectRes[ITTeamRes], error) // CreateTeam 创建团队 CreateTeam(ctx context.Context, req *co_company_api.CreateTeamReq) (ITTeamRes, error) // UpdateTeam 更新团队信息 UpdateTeam(ctx context.Context, req *co_company_api.UpdateTeamReq) (ITTeamRes, error) // DeleteTeam 删除团队信息 DeleteTeam(ctx context.Context, req *co_company_api.DeleteTeamReq) (api_v1.BoolRes, error) // QueryTeamListByEmployee 根据员工获取团队列表 QueryTeamListByEmployee(ctx context.Context, req *co_company_api.QueryTeamListByEmployeeReq) (*base_model.CollectRes[ITTeamRes], error) // SetTeamMember 设置团队成员 SetTeamMember(ctx context.Context, req *co_company_api.SetTeamMemberReq) (api_v1.BoolRes, error) // SetTeamOwner 设置团队负责人 SetTeamOwner(ctx context.Context, req *co_company_api.SetTeamOwnerReq) (api_v1.BoolRes, error) // SetTeamCaptain 设置团队队长或组长 SetTeamCaptain(ctx context.Context, req *co_company_api.SetTeamCaptainReq) (api_v1.BoolRes, error) }
Click to show internal directories.
Click to hide internal directories.