request_params.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package query_rule
  2. import "git.sxidc.com/go-framework/baize/framework/core/api/request"
  3. type (
  4. GetQueryRuleDefinitionQueryParams struct {
  5. DomainName string `form:"domainName" binding:"required" assign:"toField:DomainName"`
  6. }
  7. AddQueryRuleJsonBody struct {
  8. Scope string `json:"scope" binding:"required" assign:"toField:Scope"`
  9. DomainName string `json:"domainName" binding:"required" assign:"toField:DomainName"`
  10. Rule string `json:"rule" binding:"required" assign:"toField:Rule"`
  11. }
  12. RemoveQueryRuleQueryParams struct {
  13. request.IDQueryParam
  14. }
  15. GetQueryRulesQueryParams struct {
  16. Scope string `json:"scope" assign:"toField:Scope"`
  17. DomainName string `json:"domainName" assign:"toField:DomainName"`
  18. PageNo int `json:"pageNo"`
  19. PageSize int `json:"pageSize"`
  20. }
  21. GetEnabledQueryRuleQueryParams struct {
  22. Scope string `json:"scope" binding:"required" assign:"toField:Scope"`
  23. DomainName string `json:"domainName" binding:"required" assign:"toField:DomainName"`
  24. }
  25. EnableQueryRuleJsonBody struct {
  26. request.IDJsonBody
  27. }
  28. )