소스 검색

conditions orders swagger

0x4a52466c696e74 1 년 전
부모
커밋
132ccc5246
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      conditions.go

+ 3 - 0
conditions.go

@@ -32,6 +32,7 @@ func parseCondition(m json.Map, index int) (*Condition, error) {
 
 //////////////////////////////////////////////////////////////////////////////
 
+// swagger:model ConditionOperator
 type ConditionOperator string
 
 const (
@@ -67,6 +68,7 @@ const (
 	LogicAND   = "and"
 )
 
+// swagger:model ConditionLogic
 type ConditionLogic string
 
 func (s ConditionLogic) IsValid() bool {
@@ -82,6 +84,7 @@ func (s ConditionLogic) IsValid() bool {
 
 //////////////////////////////////////////////////////////////////////////////
 
+// swagger:model Condition
 type Condition struct {
 	Field    string
 	Logic    ConditionLogic