co_company_api

package
v0.7.18 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditInvoiceDetailReq added in v0.1.112

type AuditInvoiceDetailReq struct {
	InvoiceDetailId int64 `json:"invoiceDetailId"  v:"required|max-length:64#请输入发票详情id|id最大支持64个字符" dc:"发票详情id" `
	AuditInfo       co_model.FdInvoiceAuditInfo
}

type BankCardRegisterReq added in v0.1.112

type BankCardRegisterReq struct {
	co_model.BankCardRegister
}

type CreateCompanyReq

type CreateCompanyReq struct {
	co_model.Company
}

type CreateEmployeeReq

type CreateEmployeeReq struct {
	co_model.Employee
}

type CreateInvoiceDetailReq added in v0.1.112

type CreateInvoiceDetailReq struct {
	co_model.FdInvoiceDetailRegister
}

type CreateInvoiceReq added in v0.1.112

type CreateInvoiceReq struct {
	co_model.FdInvoiceRegister
}

type CreateTeamReq

type CreateTeamReq struct {
	co_model.Team
}

type DecrementReq added in v0.3.12

type DecrementReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
	Amount    int   `json:"amount" dc:"支出金额"`
}

TODO 这两个接口只是用于测试,后续需要去除

type DeleteBankCardReq added in v0.1.112

type DeleteBankCardReq struct {
	BankCardId int64 `json:"bankCardId" dc:"银行卡ID"`
}

type DeleteEmployeeReq

type DeleteEmployeeReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"员工ID"`
}

type DeleteInvoiceByIdReq added in v0.1.112

type DeleteInvoiceByIdReq struct {
	InvoiceId int64 `json:"invoiceId" dc:"发票抬头ID"`
}

type DeleteTeamReq

type DeleteTeamReq struct {
	Id int64 `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
}

type GetAccountBalanceReq added in v0.1.112

type GetAccountBalanceReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
}

type GetAccountBillsReq added in v0.4.7

type GetAccountBillsReq struct {
	base_model.Pagination
}

type GetAccountDetailByAccountIdReq added in v0.3.12

type GetAccountDetailByAccountIdReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
}

type GetAccountDetailReq added in v0.3.12

type GetAccountDetailReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
}

type GetAccountsReq added in v0.4.7

type GetAccountsReq struct{}

type GetBankCardsReq added in v0.4.7

type GetBankCardsReq struct{}

type GetCompanyByIdReq

type GetCompanyByIdReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"组织单位ID"`
}

type GetCompanyDetailReq

type GetCompanyDetailReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"组织单位ID"`
}

type GetCompanyReq

type GetCompanyReq struct{}

type GetEmployeeByIdReq

type GetEmployeeByIdReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"员工ID"`
}

type GetEmployeeDetailByIdReq

type GetEmployeeDetailByIdReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"员工ID"`
}

type GetEmployeeListByRoleIdReq

type GetEmployeeListByRoleIdReq struct {
	Id int64 `json:"id" v:"required#ID校验失败" dc:"角色ID"`
}

type GetEmployeeListByTeamIdReq added in v0.5.18

type GetEmployeeListByTeamIdReq struct {
	TeamId int64 `json:"teamId" v:"required#团队ID校验失败" dc:"团队或小组ID"`
}

type GetInvoicesReq added in v0.4.7

type GetInvoicesReq struct{}

type GetProfileReq

type GetProfileReq struct{}

type GetTeamByIdReq

type GetTeamByIdReq struct {
	Id int64 `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
}

type GetTeamInviteCodeReq added in v0.6.10

type GetTeamInviteCodeReq struct {
	TeamId int64 `json:"teamId" v:"required#团队ID校验失败" dc:"团队或小组ID"`
}

type GetTeamsReq

type GetTeamsReq struct{}

type HasCompanyByNameReq

type HasCompanyByNameReq struct {
	Name string `json:"name" v:"required#名称不能为空" dc:"名称"`
}

type HasEmployeeByNameReq

type HasEmployeeByNameReq struct {
	Name        string `json:"name" v:"required#名称不能为空" dc:"名称"`
	UnionNameId int64  `json:"unionNameId" dc:"关联主体ID"`
	ExcludeId   int64  `json:"excludeId" dc:"要排除的员工ID"`
}

type HasEmployeeByNoReq

type HasEmployeeByNoReq struct {
	No        string `json:"no" dc:"工号"`
	ExcludeId int64  `json:"excludeId" dc:"要排除的员工ID"`
}

type HasTeamByNameReq

type HasTeamByNameReq struct {
	Name        string `json:"name" v:"required#名称不能为空" dc:"名称"`
	UnionNameId int64  `json:"unionNameId" dc:"关联主体ID"`
	ExcludeId   int64  `json:"excludeId" dc:"要排除的团队ID"`
}

type IncrementReq added in v0.3.12

type IncrementReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
	Amount    int   `json:"amount" dc:"收入金额"`
}

TODO 这两个接口只是用于测试,后续需要去除

type JoinTeamByInviteCodeReq added in v0.6.10

type JoinTeamByInviteCodeReq struct {
	InviteCode string `json:"inviteCode" dc:"邀请码" v:"required#邀请码不能为空"`
}

type MakeInvoiceDetailReq added in v0.1.112

type MakeInvoiceDetailReq struct {
	InvoiceDetailId int64 `json:"invoiceDetailId"  v:"required|max-length:64#请输入发票详情id|id最大支持64个字符" dc:"发票详情id"`
	co_model.FdMakeInvoiceDetail
}

type QueryBankCardListReq added in v0.1.112

type QueryBankCardListReq struct {
	UserId int64 `json:"userId" dc:"用户ID"`
	base_model.SearchParams
}

type QueryCompanyListReq

type QueryCompanyListReq struct {
	base_model.SearchParams
}

type QueryEmployeeListReq

type QueryEmployeeListReq struct {
	base_model.SearchParams
}

type QueryInvoiceDetailListReq added in v0.1.112

type QueryInvoiceDetailListReq struct {
	UnionMainId int64 `json:"unionMainId" dc:"主体ID"`
	UserId      int64 `json:"userId" dc:"用户ID"`
	base_model.SearchParams
}

type QueryInvoiceReq added in v0.1.112

type QueryInvoiceReq struct {
	UserId int64 `json:"userId"  dc:"用户ID" v:"required#请输入用户ID"'`
	base_model.SearchParams
}

type QueryTeamListByEmployeeReq

type QueryTeamListByEmployeeReq struct {
	EmployeeId  int64 `json:"employeeId" v:"required#员工ID校验失败" dc:"员工ID"`
	UnionMainId int64 `json:"unionMainId" dc:"关联主体,默认当前主体"`
}

type QueryTeamListReq

type QueryTeamListReq struct {
	base_model.SearchParams
}

type RemoveTeamMemberReq added in v0.7.16

type RemoveTeamMemberReq struct {
	Id          int64   `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
	EmployeeIds []int64 `json:"employeeIds" dc:"团队成员ids"`
}

type SetAccountAllowExceedReq added in v0.6.30

type SetAccountAllowExceedReq struct {
	AccountId   int64 `json:"accountId" dc:"财务账号ID"  v:"required#财务账号不允许为空"`
	AllowExceed int   `` /* 160-byte string literal not displayed */
}

type SetAvatarReq

type SetAvatarReq struct {
	ImageId int64 `json:"imageId" dc:"头像ID"`
}

type SetCompanyStateReq added in v0.5.21

type SetCompanyStateReq struct {
	Id    int64 `json:"id" v:"required#ID校验失败" dc:"组织单位ID"`
	State int   `json:"state" v:"in:0,1,2" dc:"状态:0未激活,1正常,-1停用"`
}

type SetEmployeeRolesReq added in v0.4.3

type SetEmployeeRolesReq struct {
	UserId  int64   `json:"userId" v:"required#用户ID校验失败" dc:"用户ID"`
	RoleIds []int64 `json:"roleIds" v:"required#角色IDS校验失败" dc:"角色IDS"`
}

type SetEmployeeStateReq added in v0.4.3

type SetEmployeeStateReq struct {
	Id    int64 `json:"id"       v:"required#ID校验失败"     dc:"ID,保持与USERID一致" `
	State int   `json:"state"        v:"in:-1,0,1#请选择员工状态" dc:"状态:-1已离职,0待确认,1已入职"`
}

type SetMobileReq

type SetMobileReq struct {
	Mobile   string `json:"mobile" v:"required|phone#请数据手机号|手机号错误" dc:"手机号"`
	Captcha  string `json:"captcha" v:"required#请输入手机验证码"`
	Password string `json:"password" v:"required#请输入账号密码" dc:"登录密码"`
}

type SetTeamCaptainReq

type SetTeamCaptainReq struct {
	Id         int64 `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
	EmployeeId int64 `json:"employeeId" v:"required#团队队长ID校验失败" dc:"团队队长ID"`
}

type SetTeamMemberReq

type SetTeamMemberReq struct {
	Id          int64   `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
	EmployeeIds []int64 `json:"employeeIds" dc:"团队成员"`
}

type SetTeamOwnerReq

type SetTeamOwnerReq struct {
	Id         int64 `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
	EmployeeId int64 `json:"employeeId" v:"required#团队管理者ID校验失败" dc:"团队管理者ID"`
}

type UpdateAccountIsEnabledReq added in v0.3.12

type UpdateAccountIsEnabledReq struct {
	AccountId int64 `json:"accountId" dc:"财务账号id"`
	IsEnabled int   `json:"isEnabled" dc:"是否启用: 1启用、0禁用"`
}

type UpdateAccountLimitStateReq added in v0.3.12

type UpdateAccountLimitStateReq struct {
	AccountId  int64 `json:"accountId" dc:"财务账号id"`
	LimitState int   `json:"limitState" dc:"限制状态:0不限制,1限制支出、2限制收入"`
}

type UpdateAccountReq added in v0.4.7

type UpdateAccountReq struct {
	AccountId int64 `json:"accountId" dc:"具体需要修改的财务账号id" v:"required#财务账号id不能为空"`
	co_model.UpdateAccount
}

type UpdateCompanyReq

type UpdateCompanyReq struct {
	co_model.Company
}

type UpdateEmployeeReq

type UpdateEmployeeReq struct {
	co_model.UpdateEmployee
}

type UpdateTeamReq

type UpdateTeamReq struct {
	Id int64 `json:"id" v:"required#团队ID校验失败" dc:"团队或小组ID"`
	//Name   string `json:"name" v:"required#名称不能为空" dc:"名称"`
	Name   string `json:"name"  dc:"名称"`
	Remark string `json:"remark" dc:"备注"`
}

Jump to

Keyboard shortcuts

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