Documentation ¶
Index ¶
- func CreateStrategy(ctx context.Context, projectID types.SFID, r *CreateStrategyBatchReq) (err error)
- func GetBySFID(ctx context.Context, id types.SFID) (*models.Strategy, error)
- func GetStrategyByStrategyID(ctx context.Context, strategyID types.SFID) (*models.Strategy, error)
- func Remove(ctx context.Context, r *CondArgs) error
- func Update(ctx context.Context, id types.SFID, r *UpdateReq) (err error)
- type CondArgs
- type CreateData
- type CreateReq
- type CreateRsp
- type CreateStrategyBatchReq
- type CreateStrategyReq
- type Detail
- type InfoDetail
- type InstanceHandler
- type ListReq
- type ListRsp
- type ListStrategyReq
- type ListStrategyRsp
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStrategy ¶
func GetStrategyByStrategyID ¶
Types ¶
type CondArgs ¶ added in v1.1.0
type CreateData ¶
type CreateData struct { models.RelApplet models.StrategyInfo }
type CreateReq ¶ added in v1.1.0
type CreateReq struct {
Data []CreateData `json:"data"`
}
type CreateStrategyBatchReq ¶
type CreateStrategyBatchReq struct {
Strategies []CreateStrategyReq `json:"strategies"`
}
type CreateStrategyReq ¶
type CreateStrategyReq struct { models.RelApplet models.StrategyInfo }
type Detail ¶
type Detail struct { ProjectID types.SFID `json:"projectID"` Strategies []InfoDetail `json:"strategies,omitempty"` datatypes.OperationTimes }
type InfoDetail ¶
type InstanceHandler ¶
func FindStrategyInstances ¶
type ListStrategyReq ¶
type ListStrategyReq struct { IDs []uint64 `in:"query" name:"id,omitempty"` AppletIDs []types.SFID `in:"query" name:"appletID,omitempty"` StrategyIDs []types.SFID `in:"query" name:"strategyID,omitempty"` EventTypes []string `in:"query" name:"eventType,omitempty"` datatypes.Pager // contains filtered or unexported fields }
func (*ListStrategyReq) Additions ¶
func (r *ListStrategyReq) Additions() builder.Additions
func (*ListStrategyReq) Condition ¶
func (r *ListStrategyReq) Condition() builder.SqlCondition
func (*ListStrategyReq) SetCurrentProjectID ¶
func (r *ListStrategyReq) SetCurrentProjectID(projectID types.SFID)
type ListStrategyRsp ¶
type ListStrategyRsp struct { Data []Detail `json:"data"` // Data strategy data list Total int64 `json:"total"` // Total strategy count under current projectID }
func ListStrategy ¶
func ListStrategy(ctx context.Context, r *ListStrategyReq) (*ListStrategyRsp, error)
type UpdateReq ¶ added in v1.1.0
type UpdateReq = CreateData
Click to show internal directories.
Click to hide internal directories.