Documentation ¶
Overview ¶
Package approve 封装Approve资源相关操作
Index ¶
- type Approve
- func (a *Approve) Create(userID string, createReq *apistructs.ApproveCreateRequest) (*apistructs.ApproveDTO, error)
- func (c *Approve) Get(approveID int64) (*apistructs.ApproveDTO, error)
- func (c *Approve) ListAllApproves(params *apistructs.ApproveListRequest) (*apistructs.PagingApproveDTO, error)
- func (a *Approve) Update(approveID int64, updateReq *apistructs.ApproveUpdateRequest) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approve ¶
type Approve struct {
// contains filtered or unexported fields
}
Approve 资源对象操作封装
func (*Approve) Create ¶
func (a *Approve) Create(userID string, createReq *apistructs.ApproveCreateRequest) (*apistructs.ApproveDTO, error)
Create 创建Approve
func (*Approve) Get ¶
func (c *Approve) Get(approveID int64) (*apistructs.ApproveDTO, error)
Get 获取Approve
func (*Approve) ListAllApproves ¶
func (c *Approve) ListAllApproves(params *apistructs.ApproveListRequest) ( *apistructs.PagingApproveDTO, error)
ListAllApproves 企业管理员可查看当前企业下所有Approve,包括未加入的Approve
func (*Approve) Update ¶
func (a *Approve) Update(approveID int64, updateReq *apistructs.ApproveUpdateRequest) error
Update 更新Approve
Click to show internal directories.
Click to hide internal directories.