request_params.go 997 B

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