Documentation
¶
Index ¶
- func Create(ctx context.Context, r *CreateReq) (*models.Publisher, error)
- func GetByProjectAndKey(ctx context.Context, prj types.SFID, key string) (*models.Publisher, error)
- func GetBySFID(ctx context.Context, id types.SFID) (*models.Publisher, error)
- func ListByCond(ctx context.Context, r *CondArgs) (data []models.Publisher, err error)
- func Remove(ctx context.Context, acc *models.Account, r *CondArgs) error
- func RemoveByProjectAndKey(ctx context.Context, prj types.SFID, key string) error
- func RemoveBySFID(ctx context.Context, acc *models.Account, prj *models.Project, id types.SFID) error
- func Update(ctx context.Context, r *UpdateReq) error
- type CondArgs
- type CreateReq
- type Detail
- type ListDetailRsp
- type ListReq
- type ListRsp
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByProjectAndKey ¶ added in v1.1.0
func ListByCond ¶ added in v1.1.0
func RemoveByProjectAndKey ¶ added in v1.1.0
func RemoveBySFID ¶ added in v1.1.0
Types ¶
type CondArgs ¶ added in v1.1.0
type CondArgs struct {
ProjectIDs []types.SFID `name:"-"`
PublisherIDs []types.SFID `in:"query" name:"publisherIDs,omitempty"`
Names []string `in:"query" name:"name,omitempty"`
Keys []string `in:"query" name:"key,omitempty"`
NameLike string `in:"query" name:"name,omitempty"`
LNameLike string `in:"query" name:"lname,omitempty"`
RNameLike string `in:"query" name:"rname,omitempty"`
}
func (*CondArgs) Condition ¶ added in v1.1.0
func (r *CondArgs) Condition() builder.SqlCondition
type Detail ¶ added in v1.1.0
type Detail struct {
ProjectName string `json:"projectName" db:"f_project_name"`
models.Publisher
datatypes.OperationTimes
}
type ListDetailRsp ¶ added in v1.1.0
func ListDetail ¶ added in v1.1.0
func ListDetail(ctx context.Context, r *ListReq) (*ListDetailRsp, error)
Click to show internal directories.
Click to hide internal directories.