expression

package
Version: v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExrpession

func CreateExrpession(c *gin.Context)

func DeleteExpression

func DeleteExpression(c *gin.Context)

func GetExpression

func GetExpression(c *gin.Context)

func GetExpressionList

func GetExpressionList(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func UpdateExrpession

func UpdateExrpession(c *gin.Context)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL