Documentation
¶
Index ¶
- func CreateExrpession(c *gin.Context)
- func DeleteExpression(c *gin.Context)
- func GetExpression(c *gin.Context)
- func GetExpressionList(c *gin.Context)
- func Routes(r *gin.Engine)
- func UpdateExrpession(c *gin.Context)
- type APICreateExrpessionInput
- type APIUpdateExrpessionInput
- type ActionTmp
- type ActionTmpU
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExrpession ¶
func DeleteExpression ¶
func GetExpression ¶
func GetExpressionList ¶
func UpdateExrpession ¶
Types ¶
type APICreateExrpessionInput ¶
type APICreateExrpessionInput struct {
Expression string `json:"expression" binding:"required"`
Func string `json:"func" binding:"required"`
Op string `json:"op" binding:"required"`
RightValue string `json:"right_value" binding:"required"`
MaxStep int `json:"max_step" binding:"required"`
Priority int `json:"priority" binding:"required"`
Note string `json:"note" binding:"exists"`
Pause int `json:"pause" binding:"exists"`
Action ActionTmp `json:"action" binding:"required"`
}
func (APICreateExrpessionInput) CheckFormat ¶
func (this APICreateExrpessionInput) CheckFormat() (err error)
type APIUpdateExrpessionInput ¶
type APIUpdateExrpessionInput struct {
ID int64 `json:"id" binding:"required"`
Expression string `json:"expression" binding:"required"`
Func string `json:"func" binding:"required"`
Op string `json:"op" binding:"required"`
RightValue string `json:"right_value" binding:"required"`
MaxStep int `json:"max_step" binding:"required"`
Priority int `json:"priority" binding:"required"`
Note string `json:"note" binding:"exists"`
Pause int `json:"pause" binding:"exists"`
Action ActionTmpU `json:"action" binding:"required"`
}
func (APIUpdateExrpessionInput) CheckFormat ¶
func (this APIUpdateExrpessionInput) CheckFormat() (err error)
type ActionTmp ¶
type ActionTmp struct {
UIC []string `json:"uic" binding:"required"`
URL string `json:"url" binding:"exists"`
Callback int `json:"callback" binding:"exists"`
BeforeCallbackSMS int `json:"before_callback_sms" binding:"exists"`
AfterCallbackSMS int `json:"after_callback_sms" binding:"exists"`
BeforeCallbackMail int `json:"before_callback_mail" binding:"exists"`
AfterCallbackMail int `json:"after_callback_mail" binding:"exists"`
}
type ActionTmpU ¶
type ActionTmpU struct {
UIC []string `json:"uic" binding:"required"`
URL string `json:"url" binding:"exists"`
Callback int `json:"callback" binding:"exists"`
BeforeCallbackSMS int `json:"before_callback_sms" binding:"exists"`
AfterCallbackSMS int `json:"after_callback_sms" binding:"exists"`
BeforeCallbackMail int `json:"before_callback_mail" binding:"exists"`
AfterCallbackMail int `json:"after_callback_mail" binding:"exists"`
}
Click to show internal directories.
Click to hide internal directories.