Documentation ¶
Overview ¶
Package certificate 封装Certificate资源相关操作
Index ¶
- type Certificate
- func (c *Certificate) Create(userID string, createReq *apistructs.CertificateCreateRequest) (*apistructs.CertificateDTO, error)
- func (c *Certificate) Delete(certificateID, orgID int64) error
- func (c *Certificate) Get(certificateID int64) (*apistructs.CertificateDTO, error)
- func (c *Certificate) ListAllCertificates(params *apistructs.CertificateListRequest) (*apistructs.PagingCertificateDTO, error)
- func (c *Certificate) Update(certificateID int64, updateReq *apistructs.CertificateUpdateRequest) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct {
// contains filtered or unexported fields
}
Certificate 资源对象操作封装
func (*Certificate) Create ¶
func (c *Certificate) Create(userID string, createReq *apistructs.CertificateCreateRequest) (*apistructs.CertificateDTO, error)
Create 创建Certificate
func (*Certificate) Delete ¶
func (c *Certificate) Delete(certificateID, orgID int64) error
Delete 删除Certificate
func (*Certificate) Get ¶
func (c *Certificate) Get(certificateID int64) (*apistructs.CertificateDTO, error)
Get 获取Certificate
func (*Certificate) ListAllCertificates ¶
func (c *Certificate) ListAllCertificates(params *apistructs.CertificateListRequest) ( *apistructs.PagingCertificateDTO, error)
ListAllCertificates 企业管理员可查看当前企业下所有Certificate,包括未加入的Certificate
func (*Certificate) Update ¶
func (c *Certificate) Update(certificateID int64, updateReq *apistructs.CertificateUpdateRequest) error
Update 更新Certificate
Click to show internal directories.
Click to hide internal directories.