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) // SetEmployeeRoles 设置员工角色 SetEmployeeRoles(ctx context.Context, req *co_company_api.SetEmployeeRolesReq) (api_v1.BoolRes, error) // SetEmployeeState 设置员工状态 SetEmployeeState(ctx context.Context, req *co_company_api.SetEmployeeStateReq) (api_v1.BoolRes, 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 查看账户余额 GetAccountBalance(ctx context.Context, req *co_company_api.GetAccountBalanceReq) (api_v1.Int64Res, error) // InvoiceRegister 添加发票抬头 InvoiceRegister(ctx context.Context, req *co_company_api.CreateInvoiceReq) (ITFdInvoiceRes, error) // QueryInvoice 获取我的发票抬头列表 QueryInvoice(ctx context.Context, req *co_company_api.QueryInvoiceReq) (*base_model.CollectRes[ITFdInvoiceRes], error) // DeletesFdInvoiceById 删除发票抬头 DeletesFdInvoiceById(ctx context.Context, req *co_company_api.DeleteInvoiceByIdReq) (api_v1.BoolRes, error) // InvoiceDetailRegister 申请开发票 InvoiceDetailRegister(ctx context.Context, req *co_company_api.CreateInvoiceDetailReq) (ITFdInvoiceDetailRes, error) // QueryInvoiceDetailList 获取发票详情列表 QueryInvoiceDetailList(ctx context.Context, req *co_company_api.QueryInvoiceDetailListReq) (*base_model.CollectRes[ITFdInvoiceDetailRes], error) // MakeInvoiceDetailReq 开发票 MakeInvoiceDetailReq(ctx context.Context, req *co_company_api.MakeInvoiceDetailReq) (api_v1.BoolRes, error) // AuditInvoiceDetail 审核发票 AuditInvoiceDetail(ctx context.Context, req *co_company_api.AuditInvoiceDetailReq) (api_v1.BoolRes, error) // BankCardRegister 申请提现账号 BankCardRegister(ctx context.Context, req *co_company_api.BankCardRegisterReq) (ITFdBankCardRes, error) // DeleteBankCard 删除提现账号 DeleteBankCard(ctx context.Context, req *co_company_api.DeleteBankCardReq) (api_v1.BoolRes, error) // QueryBankCardList 获取用户的银行卡列表 QueryBankCardList(ctx context.Context, req *co_company_api.QueryBankCardListReq) (*base_model.CollectRes[ITFdBankCardRes], error) // GetAccountDetail 查看财务账号明细 GetAccountDetail(ctx context.Context, req *co_company_api.GetAccountDetailReq) (ITFdAccountRes, error) // UpdateAccountIsEnabled 修改财务账号启用状态 UpdateAccountIsEnabled(ctx context.Context, req *co_company_api.UpdateAccountIsEnabledReq) (api_v1.BoolRes, error) // UpdateAccountLimitState 修改财务账号限制状态 UpdateAccountLimitState(ctx context.Context, req *co_company_api.UpdateAccountLimitStateReq) (api_v1.BoolRes, error) // GetAccountDetailById 根据财务账号id查询账单金额明细统计记录 GetAccountDetailById(ctx context.Context, req *co_company_api.GetAccountDetailByAccountIdReq) (*co_model.FdAccountDetailRes, error) // Increment 收入 Increment(ctx context.Context, req *co_company_api.IncrementReq) (api_v1.BoolRes, error) // Decrement 支出 Decrement(ctx context.Context, req *co_company_api.DecrementReq) (api_v1.BoolRes, 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) // GetAccountBills 我的账单 GetAccountBills(ctx context.Context, req *co_company_api.GetAccountBillsReq) (*co_model.MyAccountBillRes, error) // GetAccounts 获取我的财务账号 GetAccounts(ctx context.Context, req *co_company_api.GetAccountsReq) (*co_model.FdAccountListRes, error) // GetBankCards 获取我的银行卡列表 GetBankCards(ctx context.Context, req *co_company_api.GetBankCardsReq) (*co_model.FdBankCardListRes, error) // GetInvoices 获取我的发票抬头列表 GetInvoices(ctx context.Context, req *co_company_api.GetInvoicesReq) (*co_model.FdInvoiceListRes, error) // UpdateAccount 修改我的财务账号 UpdateAccount(ctx context.Context, req *co_company_api.UpdateAccountReq) (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.