Documentation ¶
Index ¶
- func GetParam(c *gin.Context, key string) (string, error)
- func GetParamInt64(c *gin.Context, key string) (int64, error)
- func NewForm(c *gin.Context, obj interface{}) (interface{}, error)
- func ParsePaginator(c *gin.Context) *utils.Paginator
- type ReviewForm
- type UtilDecryptForm
- type UtilEncreptForm
- type UtilUseDBSampleForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReviewForm ¶
type ReviewForm struct { DBHost string `json:"db_host" form:"db_host"` DBPort int `json:"db_port" form:"db_port"` DBUsername string `json:"db_username" form:"db_username"` DBPassword string `json:"db_password" form:"db_password"` Database string `json:"database" form:"database"` *config.RuleConfig }
func NewReviewForm ¶
func NewReviewForm(rc *config.RuleConfig) *ReviewForm
func (*ReviewForm) CheckDBInfo ¶
func (this *ReviewForm) CheckDBInfo()
type UtilDecryptForm ¶
type UtilDecryptForm struct {
Data string `json:"data" form:"data" binding:"required"`
}
type UtilEncreptForm ¶
type UtilEncreptForm struct {
Data string `json:"data" form:"data" binding:"required"`
}
type UtilUseDBSampleForm ¶
type UtilUseDBSampleForm struct {
Id int64 `json:"id" form:"id" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.