request.go 461 B

12345678910111213141516
  1. package api
  2. import "git.sxidc.com/go-tools/api_binding/http_binding/binding_context"
  3. type OperatorIDFunc func(c *binding_context.Context) (string, error)
  4. type OperateParseRequest struct {
  5. SQL string `json:"sql" binding:"required"`
  6. }
  7. type OperateRequest struct {
  8. DatabaseID string `json:"databaseId" binding:"required"`
  9. Version string `json:"version"`
  10. KeyColumns []string `json:"keyColumns"`
  11. SQL string `json:"sql" binding:"required"`
  12. }