Documentation ¶
Index ¶
- func CreatePublisher(ctx context.Context, projectID types.SFID, r *CreatePublisherReq) (*models.Publisher, error)
- func GetPublisherByPubKeyAndProjectName(ctx context.Context, pubKey, prjName string) (*models.Publisher, error)
- func GetPublisherByPublisherKey(ctx context.Context, publisherKey string) (*models.Publisher, error)
- func RemovePublisher(ctx context.Context, r *RemovePublisherReq) error
- func UpdatePublisher(ctx context.Context, publisherID types.SFID, r *CreatePublisherReq) (err error)
- type CreatePublisherReq
- type InfoPublisher
- type ListPublisherReq
- type ListPublisherRsp
- type RemovePublisherReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePublisher ¶
func GetPublisherByPubKeyAndProjectName ¶ added in v1.0.0
func RemovePublisher ¶
func RemovePublisher(ctx context.Context, r *RemovePublisherReq) error
func UpdatePublisher ¶
Types ¶
type CreatePublisherReq ¶
type InfoPublisher ¶ added in v1.0.0
type InfoPublisher struct { models.Publisher ProjectName string `db:"f_project_name"` datatypes.OperationTimes }
type ListPublisherReq ¶
func (*ListPublisherReq) Additions ¶
func (r *ListPublisherReq) Additions() builder.Additions
func (*ListPublisherReq) Condition ¶
func (r *ListPublisherReq) Condition() builder.SqlCondition
func (*ListPublisherReq) SetCurrentProject ¶
func (r *ListPublisherReq) SetCurrentProject(prjID types.SFID)
type ListPublisherRsp ¶
type ListPublisherRsp struct { Total int64 `json:"total"` Data []InfoPublisher `json:"data"` }
func ListPublisher ¶
func ListPublisher(ctx context.Context, r *ListPublisherReq) (*ListPublisherRsp, error)
type RemovePublisherReq ¶
Click to show internal directories.
Click to hide internal directories.