Documentation ¶
Index ¶
- type CompanyController
- func (c *CompanyController[TIRes]) CreateCompany(ctx context.Context, req *co_v1.CreateCompanyReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[TIRes]) GetCompanyById(ctx context.Context, req *co_v1.GetCompanyByIdReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[TIRes]) GetCompanyDetail(ctx context.Context, req *co_v1.GetCompanyDetailReq) (*co_model.CompanyRes, error)
- func (c *CompanyController[TIRes]) HasCompanyByName(ctx context.Context, req *co_v1.HasCompanyByNameReq) (api_v1.BoolRes, error)
- func (c *CompanyController[TIRes]) QueryCompanyList(ctx context.Context, req *co_v1.QueryCompanyListReq) (*co_model.CompanyListRes, error)
- func (c *CompanyController[TIRes]) SetCompanyState(ctx context.Context, req *co_v1.SetCompanyStateReq) (api_v1.BoolRes, error)
- func (c *CompanyController[TIRes]) UpdateCompany(ctx context.Context, req *co_v1.UpdateCompanyReq) (*co_model.CompanyRes, error)
- type EmployeeController
- func (c *EmployeeController[TIRes]) CreateEmployee(ctx context.Context, req *co_v1.CreateEmployeeReq) (TIRes, error)
- func (c *EmployeeController[TIRes]) DeleteEmployee(ctx context.Context, req *co_v1.DeleteEmployeeReq) (api_v1.BoolRes, error)
- func (c *EmployeeController[TIRes]) GetEmployeeById(ctx context.Context, req *co_v1.GetEmployeeByIdReq) (TIRes, error)
- func (c *EmployeeController[TIRes]) GetEmployeeDetailById(ctx context.Context, req *co_v1.GetEmployeeDetailByIdReq) (TIRes, error)
- func (c *EmployeeController[TIRes]) GetEmployeeListByRoleId(ctx context.Context, req *co_v1.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController[TIRes]) HasEmployeeByName(ctx context.Context, req *co_v1.HasEmployeeByNameReq) (api_v1.BoolRes, error)
- func (c *EmployeeController[TIRes]) HasEmployeeByNo(ctx context.Context, req *co_v1.HasEmployeeByNoReq) (api_v1.BoolRes, error)
- func (c *EmployeeController[TIRes]) QueryEmployeeList(ctx context.Context, req *co_v1.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController[TIRes]) SetEmployeeRoles(ctx context.Context, req *co_v1.SetEmployeeRolesReq) (api_v1.BoolRes, error)
- func (c *EmployeeController[TIRes]) SetEmployeeState(ctx context.Context, req *co_v1.SetEmployeeStateReq) (api_v1.BoolRes, error)
- func (c *EmployeeController[TIRes]) UpdateEmployee(ctx context.Context, req *co_v1.UpdateEmployeeReq) (TIRes, error)
- type FinancialController
- func (c ...) AuditInvoiceDetail(ctx context.Context, req *co_v1.AuditInvoiceDetailReq) (api_v1.BoolRes, error)
- func (c ...) BankCardRegister(ctx context.Context, req *co_v1.BankCardRegisterReq) (*co_model.FdBankCardRes, error)
- func (c ...) DeleteBankCard(ctx context.Context, req *co_v1.DeleteBankCardReq) (api_v1.BoolRes, error)
- func (c ...) DeletesFdInvoiceById(ctx context.Context, req *co_v1.DeleteInvoiceByIdReq) (api_v1.BoolRes, error)
- func (c ...) GetAccountBalance(ctx context.Context, req *co_v1.GetAccountBalanceReq) (api_v1.Int64Res, error)
- func (c ...) GetAccountDetail(ctx context.Context, req *co_v1.GetAccountDetailReq) (ITFdAccountRes, error)
- func (c ...) GetAccountDetailById(ctx context.Context, req *co_v1.GetAccountDetailByAccountIdReq) (*co_model.FdAccountDetailRes, error)
- func (c ...) InvoiceDetailRegister(ctx context.Context, req *co_v1.CreateInvoiceDetailReq) (*co_model.FdInvoiceDetailRes, error)
- func (c ...) InvoiceRegister(ctx context.Context, req *co_v1.CreateInvoiceReq) (*co_model.FdInvoiceRes, error)
- func (c ...) MakeInvoiceDetailReq(ctx context.Context, req *co_v1.MakeInvoiceDetailReq) (api_v1.BoolRes, error)
- func (c ...) QueryBankCardList(ctx context.Context, req *co_v1.QueryBankCardListReq) (*co_model.FdBankCardListRes, error)
- func (c ...) QueryInvoice(ctx context.Context, req *co_v1.QueryInvoiceReq) (*co_model.FdInvoiceListRes, error)
- func (c ...) QueryInvoiceDetailList(ctx context.Context, req *co_v1.QueryInvoiceDetailListReq) (*co_model.FdInvoiceDetailListRes, error)
- func (c ...) SetAccountAllowExceed(ctx context.Context, req *co_v1.SetAccountAllowExceedReq) (api_v1.BoolRes, error)
- func (c ...) UpdateAccountIsEnabled(ctx context.Context, req *co_v1.UpdateAccountIsEnabledReq) (api_v1.BoolRes, error)
- func (c ...) UpdateAccountLimitState(ctx context.Context, req *co_v1.UpdateAccountLimitStateReq) (api_v1.BoolRes, error)
- type ModuleController
- type MyController
- func (c *MyController) GetAccountBills(ctx context.Context, req *co_v1.GetAccountBillsReq) (*co_model.MyAccountBillRes, error)
- func (c *MyController) GetAccounts(ctx context.Context, req *co_v1.GetAccountsReq) (*co_model.FdAccountListRes, error)
- func (c *MyController) GetBankCards(ctx context.Context, req *co_v1.GetBankCardsReq) (*co_model.FdBankCardListRes, error)
- func (c *MyController) GetCompany(ctx context.Context, req *co_v1.GetCompanyReq) (*co_model.MyCompanyRes, error)
- func (c *MyController) GetInvoices(ctx context.Context, req *co_v1.GetInvoicesReq) (*co_model.FdInvoiceListRes, error)
- func (c *MyController) GetProfile(ctx context.Context, req *co_v1.GetProfileReq) (*co_model.MyProfileRes, error)
- func (c *MyController) GetTeams(ctx context.Context, req *co_v1.GetTeamsReq) (co_model.MyTeamListRes, error)
- func (c *MyController) SetAvatar(ctx context.Context, req *co_v1.SetAvatarReq) (api_v1.BoolRes, error)
- func (c *MyController) SetMobile(ctx context.Context, req *co_v1.SetMobileReq) (api_v1.BoolRes, error)
- func (c *MyController) UpdateAccount(ctx context.Context, req *co_v1.UpdateAccountReq) (api_v1.BoolRes, error)
- type TeamController
- func (c *TeamController[ITTeamRes]) CreateTeam(ctx context.Context, req *co_v1.CreateTeamReq) (ITTeamRes, error)
- func (c *TeamController[ITTeamRes]) DeleteTeam(ctx context.Context, req *co_v1.DeleteTeamReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) GetEmployeeListByTeamId(ctx context.Context, req *co_v1.GetEmployeeListByTeamIdReq) (*api_v1.MapRes, error)
- func (c *TeamController[ITTeamRes]) GetTeamById(ctx context.Context, req *co_v1.GetTeamByIdReq) (ITTeamRes, error)
- func (c *TeamController[ITTeamRes]) GetTeamInviteCode(ctx context.Context, req *co_v1.GetTeamInviteCodeReq) (*co_model.TeamInviteCodeRes, error)
- func (c *TeamController[ITTeamRes]) HasTeamByName(ctx context.Context, req *co_v1.HasTeamByNameReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) JoinTeamByInviteCode(ctx context.Context, req *co_v1.JoinTeamByInviteCodeReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) QueryTeamList(ctx context.Context, req *co_v1.QueryTeamListReq) (*api_v1.MapRes, error)
- func (c *TeamController[ITTeamRes]) QueryTeamListByEmployee(ctx context.Context, req *co_v1.QueryTeamListByEmployeeReq) (*api_v1.MapRes, error)
- func (c *TeamController[ITTeamRes]) RemoveTeamMember(ctx context.Context, req *co_v1.RemoveTeamMemberReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) SetTeamCaptain(ctx context.Context, req *co_v1.SetTeamCaptainReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) SetTeamMember(ctx context.Context, req *co_v1.SetTeamMemberReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) SetTeamOwner(ctx context.Context, req *co_v1.SetTeamOwnerReq) (api_v1.BoolRes, error)
- func (c *TeamController[ITTeamRes]) UpdateTeam(ctx context.Context, req *co_v1.UpdateTeamReq) (ITTeamRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyController ¶
type CompanyController[TIRes co_model.ICompanyRes] struct { i_controller.ICompany[TIRes] }
func Company ¶
func Company[ TIRes 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, ](modules co_interface.IModules[ TIRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) *CompanyController[TIRes]
func (*CompanyController[TIRes]) CreateCompany ¶
func (c *CompanyController[TIRes]) CreateCompany(ctx context.Context, req *co_v1.CreateCompanyReq) (*co_model.CompanyRes, error)
CreateCompany 创建公司信息
func (*CompanyController[TIRes]) GetCompanyById ¶
func (c *CompanyController[TIRes]) GetCompanyById(ctx context.Context, req *co_v1.GetCompanyByIdReq) (*co_model.CompanyRes, error)
GetCompanyById 通过ID获取公司信息
func (*CompanyController[TIRes]) GetCompanyDetail ¶
func (c *CompanyController[TIRes]) GetCompanyDetail(ctx context.Context, req *co_v1.GetCompanyDetailReq) (*co_model.CompanyRes, error)
GetCompanyDetail 查看更多信息含完整手机号
func (*CompanyController[TIRes]) HasCompanyByName ¶
func (c *CompanyController[TIRes]) HasCompanyByName(ctx context.Context, req *co_v1.HasCompanyByNameReq) (api_v1.BoolRes, error)
HasCompanyByName 公司名称是否存在
func (*CompanyController[TIRes]) QueryCompanyList ¶
func (c *CompanyController[TIRes]) QueryCompanyList(ctx context.Context, req *co_v1.QueryCompanyListReq) (*co_model.CompanyListRes, error)
QueryCompanyList 查询公司列表
func (*CompanyController[TIRes]) SetCompanyState ¶ added in v0.5.21
func (c *CompanyController[TIRes]) SetCompanyState(ctx context.Context, req *co_v1.SetCompanyStateReq) (api_v1.BoolRes, error)
SetCompanyState 设置公司状态
func (*CompanyController[TIRes]) UpdateCompany ¶
func (c *CompanyController[TIRes]) UpdateCompany(ctx context.Context, req *co_v1.UpdateCompanyReq) (*co_model.CompanyRes, error)
UpdateCompany 更新公司信息
type EmployeeController ¶
type EmployeeController[TIRes co_model.IEmployeeRes] struct { i_controller.IEmployee[TIRes] }
func Employee ¶
func Employee[ ITCompanyRes co_model.ICompanyRes, TIRes 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, ](modules co_interface.IModules[ ITCompanyRes, TIRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) *EmployeeController[TIRes]
func (*EmployeeController[TIRes]) CreateEmployee ¶
func (c *EmployeeController[TIRes]) CreateEmployee(ctx context.Context, req *co_v1.CreateEmployeeReq) (TIRes, error)
CreateEmployee 创建员工信息
func (*EmployeeController[TIRes]) DeleteEmployee ¶
func (c *EmployeeController[TIRes]) DeleteEmployee(ctx context.Context, req *co_v1.DeleteEmployeeReq) (api_v1.BoolRes, error)
DeleteEmployee 删除员工信息
func (*EmployeeController[TIRes]) GetEmployeeById ¶
func (c *EmployeeController[TIRes]) GetEmployeeById(ctx context.Context, req *co_v1.GetEmployeeByIdReq) (TIRes, error)
func (*EmployeeController[TIRes]) GetEmployeeDetailById ¶
func (c *EmployeeController[TIRes]) GetEmployeeDetailById(ctx context.Context, req *co_v1.GetEmployeeDetailByIdReq) (TIRes, error)
GetEmployeeDetailById 获取员工详情信息
func (*EmployeeController[TIRes]) GetEmployeeListByRoleId ¶
func (c *EmployeeController[TIRes]) GetEmployeeListByRoleId(ctx context.Context, req *co_v1.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
func (*EmployeeController[TIRes]) HasEmployeeByName ¶
func (c *EmployeeController[TIRes]) HasEmployeeByName(ctx context.Context, req *co_v1.HasEmployeeByNameReq) (api_v1.BoolRes, error)
HasEmployeeByName 员工名称是否存在
func (*EmployeeController[TIRes]) HasEmployeeByNo ¶
func (c *EmployeeController[TIRes]) HasEmployeeByNo(ctx context.Context, req *co_v1.HasEmployeeByNoReq) (api_v1.BoolRes, error)
HasEmployeeByNo 员工工号是否存在
func (*EmployeeController[TIRes]) QueryEmployeeList ¶
func (c *EmployeeController[TIRes]) QueryEmployeeList(ctx context.Context, req *co_v1.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
QueryEmployeeList 查询员工列表
func (*EmployeeController[TIRes]) SetEmployeeRoles ¶ added in v0.4.3
func (c *EmployeeController[TIRes]) SetEmployeeRoles(ctx context.Context, req *co_v1.SetEmployeeRolesReq) (api_v1.BoolRes, error)
SetEmployeeRoles 设置员工角色
func (*EmployeeController[TIRes]) SetEmployeeState ¶ added in v0.4.3
func (c *EmployeeController[TIRes]) SetEmployeeState(ctx context.Context, req *co_v1.SetEmployeeStateReq) (api_v1.BoolRes, error)
SetEmployeeState 设置员工状态
func (*EmployeeController[TIRes]) UpdateEmployee ¶
func (c *EmployeeController[TIRes]) UpdateEmployee(ctx context.Context, req *co_v1.UpdateEmployeeReq) (TIRes, error)
UpdateEmployee 更新员工信息
type FinancialController ¶ added in v0.1.112
type FinancialController[ 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, ] struct { i_controller.IFinancial[ ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ] }
func Financial ¶ added in v0.1.112
func Financial[ 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, ](modules co_interface.IModules[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) AuditInvoiceDetail ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) AuditInvoiceDetail(ctx context.Context, req *co_v1.AuditInvoiceDetailReq) (api_v1.BoolRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) BankCardRegister ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) BankCardRegister(ctx context.Context, req *co_v1.BankCardRegisterReq) (*co_model.FdBankCardRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) DeleteBankCard ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) DeleteBankCard(ctx context.Context, req *co_v1.DeleteBankCardReq) (api_v1.BoolRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) DeletesFdInvoiceById ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) DeletesFdInvoiceById(ctx context.Context, req *co_v1.DeleteInvoiceByIdReq) (api_v1.BoolRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) GetAccountBalance ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) GetAccountBalance(ctx context.Context, req *co_v1.GetAccountBalanceReq) (api_v1.Int64Res, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) GetAccountDetail ¶ added in v0.3.12
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) GetAccountDetail(ctx context.Context, req *co_v1.GetAccountDetailReq) (ITFdAccountRes, error)
GetAccountDetail 查看财务账号明细
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) GetAccountDetailById ¶ added in v0.3.12
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) GetAccountDetailById(ctx context.Context, req *co_v1.GetAccountDetailByAccountIdReq) (*co_model.FdAccountDetailRes, error)
GetAccountDetailById 根据财务账号id查询账单金额明细统计记录
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) InvoiceDetailRegister ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) InvoiceDetailRegister(ctx context.Context, req *co_v1.CreateInvoiceDetailReq) (*co_model.FdInvoiceDetailRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) InvoiceRegister ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) InvoiceRegister(ctx context.Context, req *co_v1.CreateInvoiceReq) (*co_model.FdInvoiceRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) MakeInvoiceDetailReq ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) MakeInvoiceDetailReq(ctx context.Context, req *co_v1.MakeInvoiceDetailReq) (api_v1.BoolRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) QueryBankCardList ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) QueryBankCardList(ctx context.Context, req *co_v1.QueryBankCardListReq) (*co_model.FdBankCardListRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) QueryInvoice ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) QueryInvoice(ctx context.Context, req *co_v1.QueryInvoiceReq) (*co_model.FdInvoiceListRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) QueryInvoiceDetailList ¶ added in v0.1.112
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) QueryInvoiceDetailList(ctx context.Context, req *co_v1.QueryInvoiceDetailListReq) (*co_model.FdInvoiceDetailListRes, error)
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) SetAccountAllowExceed ¶ added in v0.6.30
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) SetAccountAllowExceed(ctx context.Context, req *co_v1.SetAccountAllowExceedReq) (api_v1.BoolRes, error)
SetAccountAllowExceed 设置财务账号是否允许存在负余额
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) UpdateAccountIsEnabled ¶ added in v0.3.12
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) UpdateAccountIsEnabled(ctx context.Context, req *co_v1.UpdateAccountIsEnabledReq) (api_v1.BoolRes, error)
UpdateAccountIsEnabled 修改财务账号启用状态
func (*FinancialController[ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes]) UpdateAccountLimitState ¶ added in v0.3.12
func (c *FinancialController[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) UpdateAccountLimitState(ctx context.Context, req *co_v1.UpdateAccountLimitStateReq) (api_v1.BoolRes, error)
UpdateAccountLimitState 修改财务账号限制状态
type ModuleController ¶
type ModuleController[ TICompanyRes co_model.ICompanyRes, TIEmployeeRes co_model.IEmployeeRes, TITeamRes co_model.ITeamRes, ] struct { Company *CompanyController[TICompanyRes] Employee *EmployeeController[TIEmployeeRes] Team *TeamController[TITeamRes] My *MyController }
type MyController ¶
type MyController struct {
i_controller.IMy
}
func My ¶
func My[ 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, ](modules co_interface.IModules[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) *MyController
func (*MyController) GetAccountBills ¶ added in v0.4.7
func (c *MyController) GetAccountBills(ctx context.Context, req *co_v1.GetAccountBillsReq) (*co_model.MyAccountBillRes, error)
GetAccountBills 我的账单|列表
func (*MyController) GetAccounts ¶ added in v0.4.7
func (c *MyController) GetAccounts(ctx context.Context, req *co_v1.GetAccountsReq) (*co_model.FdAccountListRes, error)
GetAccounts 获取我的财务账号|列表
func (*MyController) GetBankCards ¶ added in v0.4.7
func (c *MyController) GetBankCards(ctx context.Context, req *co_v1.GetBankCardsReq) (*co_model.FdBankCardListRes, error)
GetBankCards 获取我的银行卡|列表
func (*MyController) GetCompany ¶
func (c *MyController) GetCompany(ctx context.Context, req *co_v1.GetCompanyReq) (*co_model.MyCompanyRes, error)
GetCompany 获取当前公司信息
func (*MyController) GetInvoices ¶ added in v0.4.7
func (c *MyController) GetInvoices(ctx context.Context, req *co_v1.GetInvoicesReq) (*co_model.FdInvoiceListRes, error)
GetInvoices 获取我的发票抬头|列表
func (*MyController) GetProfile ¶
func (c *MyController) GetProfile(ctx context.Context, req *co_v1.GetProfileReq) (*co_model.MyProfileRes, error)
GetProfile 获取当前员工及用户信息
func (*MyController) GetTeams ¶
func (c *MyController) GetTeams(ctx context.Context, req *co_v1.GetTeamsReq) (co_model.MyTeamListRes, error)
GetTeams 获取当前团队信息
func (*MyController) SetAvatar ¶
func (c *MyController) SetAvatar(ctx context.Context, req *co_v1.SetAvatarReq) (api_v1.BoolRes, error)
SetAvatar 设置员工头像
func (*MyController) SetMobile ¶
func (c *MyController) SetMobile(ctx context.Context, req *co_v1.SetMobileReq) (api_v1.BoolRes, error)
SetMobile 设置手机号
func (*MyController) UpdateAccount ¶ added in v0.4.7
func (c *MyController) UpdateAccount(ctx context.Context, req *co_v1.UpdateAccountReq) (api_v1.BoolRes, error)
UpdateAccount 修改我的财务账号
type TeamController ¶
type TeamController[ ITTeamRes co_model.ITeamRes, ] struct { i_controller.ITeam[ITTeamRes] }
func Team ¶
func Team[ 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, ](modules co_interface.IModules[ ITCompanyRes, ITEmployeeRes, ITTeamRes, ITFdAccountRes, ITFdAccountBillRes, ITFdBankCardRes, ITFdCurrencyRes, ITFdInvoiceRes, ITFdInvoiceDetailRes, ]) *TeamController[ITTeamRes]
func (*TeamController[ITTeamRes]) CreateTeam ¶
func (c *TeamController[ITTeamRes]) CreateTeam(ctx context.Context, req *co_v1.CreateTeamReq) (ITTeamRes, error)
func (*TeamController[ITTeamRes]) DeleteTeam ¶
func (c *TeamController[ITTeamRes]) DeleteTeam(ctx context.Context, req *co_v1.DeleteTeamReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) GetEmployeeListByTeamId ¶ added in v0.5.18
func (c *TeamController[ITTeamRes]) GetEmployeeListByTeamId(ctx context.Context, req *co_v1.GetEmployeeListByTeamIdReq) (*api_v1.MapRes, error)
func (*TeamController[ITTeamRes]) GetTeamById ¶
func (c *TeamController[ITTeamRes]) GetTeamById(ctx context.Context, req *co_v1.GetTeamByIdReq) (ITTeamRes, error)
func (*TeamController[ITTeamRes]) GetTeamInviteCode ¶ added in v0.6.10
func (c *TeamController[ITTeamRes]) GetTeamInviteCode(ctx context.Context, req *co_v1.GetTeamInviteCodeReq) (*co_model.TeamInviteCodeRes, error)
func (*TeamController[ITTeamRes]) HasTeamByName ¶
func (c *TeamController[ITTeamRes]) HasTeamByName(ctx context.Context, req *co_v1.HasTeamByNameReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) JoinTeamByInviteCode ¶ added in v0.6.10
func (c *TeamController[ITTeamRes]) JoinTeamByInviteCode(ctx context.Context, req *co_v1.JoinTeamByInviteCodeReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) QueryTeamList ¶
func (c *TeamController[ITTeamRes]) QueryTeamList(ctx context.Context, req *co_v1.QueryTeamListReq) (*api_v1.MapRes, error)
func (*TeamController[ITTeamRes]) QueryTeamListByEmployee ¶
func (c *TeamController[ITTeamRes]) QueryTeamListByEmployee(ctx context.Context, req *co_v1.QueryTeamListByEmployeeReq) (*api_v1.MapRes, error)
func (*TeamController[ITTeamRes]) RemoveTeamMember ¶ added in v0.7.16
func (c *TeamController[ITTeamRes]) RemoveTeamMember(ctx context.Context, req *co_v1.RemoveTeamMemberReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) SetTeamCaptain ¶
func (c *TeamController[ITTeamRes]) SetTeamCaptain(ctx context.Context, req *co_v1.SetTeamCaptainReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) SetTeamMember ¶
func (c *TeamController[ITTeamRes]) SetTeamMember(ctx context.Context, req *co_v1.SetTeamMemberReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) SetTeamOwner ¶
func (c *TeamController[ITTeamRes]) SetTeamOwner(ctx context.Context, req *co_v1.SetTeamOwnerReq) (api_v1.BoolRes, error)
func (*TeamController[ITTeamRes]) UpdateTeam ¶
func (c *TeamController[ITTeamRes]) UpdateTeam(ctx context.Context, req *co_v1.UpdateTeamReq) (ITTeamRes, error)