Documentation
¶
Index ¶
- Variables
- type CompanyController
- func (c *CompanyController) CreateCompany(ctx context.Context, req *co_v1.CreateCompanyReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetCompanyById(ctx context.Context, req *co_v1.GetCompanyByIdReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetCompanyDetail(ctx context.Context, req *co_v1.GetCompanyDetailReq) (*co_model.CompanyRes, error)
- func (c *CompanyController) GetModules() co_interface.IModules
- func (c *CompanyController) HasCompanyByName(ctx context.Context, req *co_v1.HasCompanyByNameReq) (api_v1.BoolRes, error)
- func (c *CompanyController) QueryCompanyList(ctx context.Context, req *co_v1.QueryCompanyListReq) (*co_model.CompanyListRes, error)
- func (c *CompanyController) UpdateCompany(ctx context.Context, req *co_v1.UpdateCompanyReq) (*co_model.CompanyRes, error)
- type EmployeeController
- func (c *EmployeeController) CreateEmployee(ctx context.Context, req *co_v1.CreateEmployeeReq) (*co_model.EmployeeRes, error)
- func (c *EmployeeController) DeleteEmployee(ctx context.Context, req *co_v1.DeleteEmployeeReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) GetEmployeeById(ctx context.Context, req *co_v1.GetEmployeeByIdReq) (*co_model.EmployeeRes, error)
- func (c *EmployeeController) GetEmployeeDetailById(ctx context.Context, req *co_v1.GetEmployeeDetailByIdReq) (res *co_model.EmployeeRes, err error)
- func (c *EmployeeController) GetEmployeeListByRoleId(ctx context.Context, req *co_v1.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController) GetModules() co_interface.IModules
- func (c *EmployeeController) HasEmployeeByName(ctx context.Context, req *co_v1.HasEmployeeByNameReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) HasEmployeeByNo(ctx context.Context, req *co_v1.HasEmployeeByNoReq) (api_v1.BoolRes, error)
- func (c *EmployeeController) QueryEmployeeList(ctx context.Context, req *co_v1.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
- func (c *EmployeeController) UpdateEmployee(ctx context.Context, req *co_v1.UpdateEmployeeReq) (*co_model.EmployeeRes, error)
- type FinancialController
- func (c *FinancialController) AuditInvoiceDetail(ctx context.Context, req *co_v1.AuditInvoiceDetailReq) (api_v1.BoolRes, error)
- func (c *FinancialController) BankCardRegister(ctx context.Context, req *co_v1.BankCardRegisterReq) (*co_model.BankCardInfoRes, error)
- func (c *FinancialController) DeleteBankCard(ctx context.Context, req *co_v1.DeleteBankCardReq) (api_v1.BoolRes, error)
- func (c *FinancialController) DeletesFdInvoiceById(ctx context.Context, req *co_v1.DeleteInvoiceByIdReq) (api_v1.BoolRes, error)
- func (c *FinancialController) GetAccountBalance(ctx context.Context, req *co_v1.GetAccountBalanceReq) (api_v1.Int64Res, error)
- func (c *FinancialController) GetModules() co_interface.IModules
- func (c *FinancialController) InvoiceDetailRegister(ctx context.Context, req *co_v1.CreateInvoiceDetailReq) (*co_model.FdInvoiceDetailInfoRes, error)
- func (c *FinancialController) InvoiceRegister(ctx context.Context, req *co_v1.CreateInvoiceReq) (*co_model.FdInvoiceInfoRes, error)
- func (c *FinancialController) MakeInvoiceDetailReq(ctx context.Context, req *co_v1.MakeInvoiceDetailReq) (api_v1.BoolRes, error)
- func (c *FinancialController) QueryBankCardList(ctx context.Context, req *co_v1.QueryBankCardListReq) (*co_model.BankCardListRes, error)
- func (c *FinancialController) QueryInvoice(ctx context.Context, req *co_v1.QueryInvoiceReq) (*co_model.FdInvoiceListRes, error)
- func (c *FinancialController) QueryInvoiceDetailList(ctx context.Context, req *co_v1.QueryInvoiceDetailListReq) (*co_model.FdInvoiceDetailListRes, error)
- type ModuleController
- type MyController
- func (c *MyController) GetCompany(ctx context.Context, req *co_v1.GetCompanyReq) (*co_model.MyCompanyRes, error)
- func (c *MyController) GetModules() co_interface.IModules
- 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)
- type TeamController
- func (c *TeamController) CreateTeam(ctx context.Context, req *co_v1.CreateTeamReq) (*co_model.TeamRes, error)
- func (c *TeamController) DeleteTeam(ctx context.Context, req *co_v1.DeleteTeamReq) (api_v1.BoolRes, error)
- func (c *TeamController) GetModules() co_interface.IModules
- func (c *TeamController) GetTeamById(ctx context.Context, req *co_v1.GetTeamByIdReq) (*co_model.TeamRes, error)
- func (c *TeamController) GetTeamMemberList(ctx context.Context, req *co_v1.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
- func (c *TeamController) HasTeamByName(ctx context.Context, req *co_v1.HasTeamByNameReq) (api_v1.BoolRes, error)
- func (c *TeamController) QueryTeamList(ctx context.Context, req *co_v1.QueryTeamListReq) (*co_model.TeamListRes, error)
- func (c *TeamController) QueryTeamListByEmployee(ctx context.Context, req *co_v1.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
- func (c *TeamController) SetTeamCaptain(ctx context.Context, req *co_v1.SetTeamCaptainReq) (api_v1.BoolRes, error)
- func (c *TeamController) SetTeamMember(ctx context.Context, req *co_v1.SetTeamMemberReq) (api_v1.BoolRes, error)
- func (c *TeamController) SetTeamOwner(ctx context.Context, req *co_v1.SetTeamOwnerReq) (api_v1.BoolRes, error)
- func (c *TeamController) UpdateTeam(ctx context.Context, req *co_v1.UpdateTeamReq) (*co_model.TeamRes, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Company = func(modules co_interface.IModules) *CompanyController { return &CompanyController{ co_controller.Company(modules), } }
View Source
var Employee = func(modules co_interface.IModules) *EmployeeController { return &EmployeeController{ co_controller.Employee(modules), } }
View Source
var Financial = func(modules co_interface.IModules) *FinancialController { return &FinancialController{ co_controller.Financial(modules), } }
View Source
var My = func(modules co_interface.IModules) *MyController { return &MyController{ co_controller.My(modules), } }
View Source
var Team = func(modules co_interface.IModules) *TeamController { return &TeamController{ co_controller.Team(modules), } }
Functions ¶
This section is empty.
Types ¶
type CompanyController ¶
type CompanyController struct {
i_controller.ICompany
}
func (*CompanyController) CreateCompany ¶
func (c *CompanyController) CreateCompany(ctx context.Context, req *co_v1.CreateCompanyReq) (*co_model.CompanyRes, error)
CreateCompany 创建公司信息
func (*CompanyController) GetCompanyById ¶
func (c *CompanyController) GetCompanyById(ctx context.Context, req *co_v1.GetCompanyByIdReq) (*co_model.CompanyRes, error)
GetCompanyById 通过ID获取公司信息
func (*CompanyController) GetCompanyDetail ¶
func (c *CompanyController) GetCompanyDetail(ctx context.Context, req *co_v1.GetCompanyDetailReq) (*co_model.CompanyRes, error)
GetCompanyDetail 查看更多信息含完整手机号
func (*CompanyController) GetModules ¶
func (c *CompanyController) GetModules() co_interface.IModules
func (*CompanyController) HasCompanyByName ¶
func (c *CompanyController) HasCompanyByName(ctx context.Context, req *co_v1.HasCompanyByNameReq) (api_v1.BoolRes, error)
HasCompanyByName 公司名称是否存在
func (*CompanyController) QueryCompanyList ¶
func (c *CompanyController) QueryCompanyList(ctx context.Context, req *co_v1.QueryCompanyListReq) (*co_model.CompanyListRes, error)
QueryCompanyList 查询公司列表
func (*CompanyController) UpdateCompany ¶
func (c *CompanyController) UpdateCompany(ctx context.Context, req *co_v1.UpdateCompanyReq) (*co_model.CompanyRes, error)
UpdateCompany 更新公司信息
type EmployeeController ¶
type EmployeeController struct {
i_controller.IEmployee
}
func (*EmployeeController) CreateEmployee ¶
func (c *EmployeeController) CreateEmployee(ctx context.Context, req *co_v1.CreateEmployeeReq) (*co_model.EmployeeRes, error)
CreateEmployee 创建员工信息
func (*EmployeeController) DeleteEmployee ¶
func (c *EmployeeController) DeleteEmployee(ctx context.Context, req *co_v1.DeleteEmployeeReq) (api_v1.BoolRes, error)
DeleteEmployee 删除员工信息
func (*EmployeeController) GetEmployeeById ¶
func (c *EmployeeController) GetEmployeeById(ctx context.Context, req *co_v1.GetEmployeeByIdReq) (*co_model.EmployeeRes, error)
func (*EmployeeController) GetEmployeeDetailById ¶
func (c *EmployeeController) GetEmployeeDetailById(ctx context.Context, req *co_v1.GetEmployeeDetailByIdReq) (res *co_model.EmployeeRes, err error)
GetEmployeeDetailById 获取员工详情信息
func (*EmployeeController) GetEmployeeListByRoleId ¶
func (c *EmployeeController) GetEmployeeListByRoleId(ctx context.Context, req *co_v1.GetEmployeeListByRoleIdReq) (*co_model.EmployeeListRes, error)
func (*EmployeeController) GetModules ¶
func (c *EmployeeController) GetModules() co_interface.IModules
func (*EmployeeController) HasEmployeeByName ¶
func (c *EmployeeController) HasEmployeeByName(ctx context.Context, req *co_v1.HasEmployeeByNameReq) (api_v1.BoolRes, error)
HasEmployeeByName 员工名称是否存在
func (*EmployeeController) HasEmployeeByNo ¶
func (c *EmployeeController) HasEmployeeByNo(ctx context.Context, req *co_v1.HasEmployeeByNoReq) (api_v1.BoolRes, error)
HasEmployeeByNo 员工工号是否存在
func (*EmployeeController) QueryEmployeeList ¶
func (c *EmployeeController) QueryEmployeeList(ctx context.Context, req *co_v1.QueryEmployeeListReq) (*co_model.EmployeeListRes, error)
QueryEmployeeList 查询员工列表
func (*EmployeeController) UpdateEmployee ¶
func (c *EmployeeController) UpdateEmployee(ctx context.Context, req *co_v1.UpdateEmployeeReq) (*co_model.EmployeeRes, error)
UpdateEmployee 更新员工信息
type FinancialController ¶ added in v0.1.112
type FinancialController struct {
i_controller.IFinancial
}
func (*FinancialController) AuditInvoiceDetail ¶ added in v0.1.112
func (c *FinancialController) AuditInvoiceDetail(ctx context.Context, req *co_v1.AuditInvoiceDetailReq) (api_v1.BoolRes, error)
func (*FinancialController) BankCardRegister ¶ added in v0.1.112
func (c *FinancialController) BankCardRegister(ctx context.Context, req *co_v1.BankCardRegisterReq) (*co_model.BankCardInfoRes, error)
func (*FinancialController) DeleteBankCard ¶ added in v0.1.112
func (c *FinancialController) DeleteBankCard(ctx context.Context, req *co_v1.DeleteBankCardReq) (api_v1.BoolRes, error)
func (*FinancialController) DeletesFdInvoiceById ¶ added in v0.1.112
func (c *FinancialController) DeletesFdInvoiceById(ctx context.Context, req *co_v1.DeleteInvoiceByIdReq) (api_v1.BoolRes, error)
func (*FinancialController) GetAccountBalance ¶ added in v0.1.112
func (c *FinancialController) GetAccountBalance(ctx context.Context, req *co_v1.GetAccountBalanceReq) (api_v1.Int64Res, error)
func (*FinancialController) GetModules ¶ added in v0.1.112
func (c *FinancialController) GetModules() co_interface.IModules
func (*FinancialController) InvoiceDetailRegister ¶ added in v0.1.112
func (c *FinancialController) InvoiceDetailRegister(ctx context.Context, req *co_v1.CreateInvoiceDetailReq) (*co_model.FdInvoiceDetailInfoRes, error)
func (*FinancialController) InvoiceRegister ¶ added in v0.1.112
func (c *FinancialController) InvoiceRegister(ctx context.Context, req *co_v1.CreateInvoiceReq) (*co_model.FdInvoiceInfoRes, error)
func (*FinancialController) MakeInvoiceDetailReq ¶ added in v0.1.112
func (c *FinancialController) MakeInvoiceDetailReq(ctx context.Context, req *co_v1.MakeInvoiceDetailReq) (api_v1.BoolRes, error)
func (*FinancialController) QueryBankCardList ¶ added in v0.1.112
func (c *FinancialController) QueryBankCardList(ctx context.Context, req *co_v1.QueryBankCardListReq) (*co_model.BankCardListRes, error)
func (*FinancialController) QueryInvoice ¶ added in v0.1.112
func (c *FinancialController) QueryInvoice(ctx context.Context, req *co_v1.QueryInvoiceReq) (*co_model.FdInvoiceListRes, error)
func (*FinancialController) QueryInvoiceDetailList ¶ added in v0.1.112
func (c *FinancialController) QueryInvoiceDetailList(ctx context.Context, req *co_v1.QueryInvoiceDetailListReq) (*co_model.FdInvoiceDetailListRes, error)
type ModuleController ¶
type ModuleController struct { Company *CompanyController Employee *EmployeeController Team *TeamController My *MyController }
type MyController ¶
type MyController struct {
i_controller.IMy
}
func (*MyController) GetCompany ¶
func (c *MyController) GetCompany(ctx context.Context, req *co_v1.GetCompanyReq) (*co_model.MyCompanyRes, error)
GetCompany 获取当前公司信息
func (*MyController) GetModules ¶
func (c *MyController) GetModules() co_interface.IModules
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 设置手机号
type TeamController ¶
type TeamController struct {
i_controller.ITeam
}
func (*TeamController) CreateTeam ¶
func (c *TeamController) CreateTeam(ctx context.Context, req *co_v1.CreateTeamReq) (*co_model.TeamRes, error)
func (*TeamController) DeleteTeam ¶
func (c *TeamController) DeleteTeam(ctx context.Context, req *co_v1.DeleteTeamReq) (api_v1.BoolRes, error)
func (*TeamController) GetModules ¶
func (c *TeamController) GetModules() co_interface.IModules
func (*TeamController) GetTeamById ¶
func (c *TeamController) GetTeamById(ctx context.Context, req *co_v1.GetTeamByIdReq) (*co_model.TeamRes, error)
func (*TeamController) GetTeamMemberList ¶
func (c *TeamController) GetTeamMemberList(ctx context.Context, req *co_v1.GetTeamMemberListReq) (*co_model.EmployeeListRes, error)
func (*TeamController) HasTeamByName ¶
func (c *TeamController) HasTeamByName(ctx context.Context, req *co_v1.HasTeamByNameReq) (api_v1.BoolRes, error)
func (*TeamController) QueryTeamList ¶
func (c *TeamController) QueryTeamList(ctx context.Context, req *co_v1.QueryTeamListReq) (*co_model.TeamListRes, error)
func (*TeamController) QueryTeamListByEmployee ¶
func (c *TeamController) QueryTeamListByEmployee(ctx context.Context, req *co_v1.QueryTeamListByEmployeeReq) (*co_model.TeamListRes, error)
func (*TeamController) SetTeamCaptain ¶
func (c *TeamController) SetTeamCaptain(ctx context.Context, req *co_v1.SetTeamCaptainReq) (api_v1.BoolRes, error)
func (*TeamController) SetTeamMember ¶
func (c *TeamController) SetTeamMember(ctx context.Context, req *co_v1.SetTeamMemberReq) (api_v1.BoolRes, error)
func (*TeamController) SetTeamOwner ¶
func (c *TeamController) SetTeamOwner(ctx context.Context, req *co_v1.SetTeamOwnerReq) (api_v1.BoolRes, error)
func (*TeamController) UpdateTeam ¶
func (c *TeamController) UpdateTeam(ctx context.Context, req *co_v1.UpdateTeamReq) (*co_model.TeamRes, error)
Click to show internal directories.
Click to hide internal directories.