Documentation ¶
Overview ¶
Package publisher 封装Publisher资源相关操作
Index ¶
- func GeneratePublisherKey() string
- type Option
- type Publisher
- func (p *Publisher) Create(userID string, createReq *apistructs.PublisherCreateRequest) (int64, error)
- func (p *Publisher) Delete(publisherID, orgID int64) error
- func (p *Publisher) Get(publisherID int64) (*apistructs.PublisherDTO, error)
- func (p *Publisher) ListAllPublishers(userID string, params *apistructs.PublisherListRequest) (*apistructs.PagingPublisherDTO, error)
- func (p *Publisher) ListJoinedPublishers(userID string, params *apistructs.PublisherListRequest) (*apistructs.PagingPublisherDTO, error)
- func (p *Publisher) Update(updateReq *apistructs.PublisherUpdateRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher 资源对象操作封装
func (*Publisher) Create ¶
func (p *Publisher) Create(userID string, createReq *apistructs.PublisherCreateRequest) (int64, error)
Create 创建Publisher
func (*Publisher) Get ¶
func (p *Publisher) Get(publisherID int64) (*apistructs.PublisherDTO, error)
Get 获取Publisher
func (*Publisher) ListAllPublishers ¶
func (p *Publisher) ListAllPublishers(userID string, params *apistructs.PublisherListRequest) ( *apistructs.PagingPublisherDTO, error)
ListAllPublishers 企业管理员可查看当前企业下所有Publisher,包括未加入的Publisher
func (*Publisher) ListJoinedPublishers ¶
func (p *Publisher) ListJoinedPublishers(userID string, params *apistructs.PublisherListRequest) ( *apistructs.PagingPublisherDTO, error)
ListJoinedPublishers 返回用户有权限的Publisher
func (*Publisher) Update ¶
func (p *Publisher) Update(updateReq *apistructs.PublisherUpdateRequest) error
Update 更新Publisher
Click to show internal directories.
Click to hide internal directories.