controller

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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]) 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[
		ITCompanyRes,
		ITEmployeeRes,
		ITTeamRes,
		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]) Decrement added in v0.3.12

func (c *FinancialController[
	ITCompanyRes,
	ITEmployeeRes,
	ITTeamRes,
	ITFdAccountRes,
	ITFdAccountBillRes,
	ITFdBankCardRes,
	ITFdCurrencyRes,
	ITFdInvoiceRes,
	ITFdInvoiceDetailRes,
]) Decrement(ctx context.Context, req *co_v1.DecrementReq) (api_v1.BoolRes, error)

Decrement 支出

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]) Increment added in v0.3.12

func (c *FinancialController[
	ITCompanyRes,
	ITEmployeeRes,
	ITTeamRes,
	ITFdAccountRes,
	ITFdAccountBillRes,
	ITFdBankCardRes,
	ITFdCurrencyRes,
	ITFdInvoiceRes,
	ITFdInvoiceDetailRes,
]) Increment(ctx context.Context, req *co_v1.IncrementReq) (api_v1.BoolRes, error)

Increment 收入

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]) 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

GetAccountBills 我的账单|列表

func (*MyController) GetAccounts added in v0.4.7

GetAccounts 获取我的财务账号|列表

func (*MyController) GetBankCards added in v0.4.7

GetBankCards 获取我的银行卡|列表

func (*MyController) GetCompany

GetCompany 获取当前公司信息

func (*MyController) GetInvoices added in v0.4.7

GetInvoices 获取我的发票抬头|列表

func (*MyController) GetProfile

GetProfile 获取当前员工及用户信息

func (*MyController) GetTeams

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]) GetTeamById

func (c *TeamController[ITTeamRes]) GetTeamById(ctx context.Context, req *co_v1.GetTeamByIdReq) (ITTeamRes, error)

func (*TeamController[ITTeamRes]) HasTeamByName

func (c *TeamController[ITTeamRes]) HasTeamByName(ctx context.Context, req *co_v1.HasTeamByNameReq) (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]) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL