@@ -809,27 +809,40 @@ def delete(self):
809809 def get_response_body_api ():
810810 return openapi .Schema (
811811 type = openapi .TYPE_OBJECT ,
812- required = ['id' , 'name' , 'char_length' , 'user_id' , 'paragraph_count' , 'is_active'
813- 'update_time' , 'create_time' ],
812+ required = ['create_time' , 'update_time' , 'id' , 'name' , 'char_length' , 'status' , 'is_active' ,
813+ 'type' , 'meta' , 'dataset_id' , 'hit_handling_method' , 'directly_return_similarity' ,
814+ 'status_meta' , 'paragraph_count' ],
814815 properties = {
816+ 'create_time' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('create time' ),
817+ description = _ ('create time' ),
818+ default = "1970-01-01 00:00:00" ),
819+ 'update_time' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('update time' ),
820+ description = _ ('update time' ),
821+ default = "1970-01-01 00:00:00" ),
815822 'id' : openapi .Schema (type = openapi .TYPE_STRING , title = "id" ,
816823 description = "id" , default = "xx" ),
817824 'name' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('name' ),
818825 description = _ ('name' ), default = "xx" ),
819826 'char_length' : openapi .Schema (type = openapi .TYPE_INTEGER , title = _ ('char length' ),
820827 description = _ ('char length' ), default = 10 ),
821- 'user_id' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('user id' ), description = _ ('user id' )),
822- 'paragraph_count' : openapi .Schema (type = openapi .TYPE_INTEGER , title = "_('document count')" ,
823- description = "_('document count')" , default = 1 ),
828+ 'status' :openapi .Schema (type = openapi .TYPE_STRING , title = _ ('status' ),
829+ description = _ ('status' ), default = "xx" ),
824830 'is_active' : openapi .Schema (type = openapi .TYPE_BOOLEAN , title = _ ('Is active' ),
825831 description = _ ('Is active' ), default = True ),
826- 'update_time' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('update time' ),
827- description = _ ('update time' ),
828- default = "1970-01-01 00:00:00" ),
829- 'create_time' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('create time' ),
830- description = _ ('create time' ),
831- default = "1970-01-01 00:00:00"
832- )
832+ 'type' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('type' ),
833+ description = _ ('type' ), default = "xx" ),
834+ 'meta' : openapi .Schema (type = openapi .TYPE_OBJECT , title = _ ('meta' ),
835+ description = _ ('meta' ), default = "{}" ),
836+ 'dataset_id' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('dataset_id' ),
837+ description = _ ('dataset_id' ), default = "xx" ),
838+ 'hit_handling_method' : openapi .Schema (type = openapi .TYPE_STRING , title = _ ('hit_handling_method' ),
839+ description = _ ('hit_handling_method' ), default = "xx" ),
840+ 'directly_return_similarity' : openapi .Schema (type = openapi .TYPE_NUMBER , title = _ ('directly_return_similarity' ),
841+ description = _ ('directly_return_similarity' ), default = "xx" ),
842+ 'status_meta' : openapi .Schema (type = openapi .TYPE_OBJECT , title = _ ('status_meta' ),
843+ description = _ ('status_meta' ), default = "{}" ),
844+ 'paragraph_count' : openapi .Schema (type = openapi .TYPE_INTEGER , title = "_('document count')" ,
845+ description = "_('document count')" , default = 1 ),
833846 }
834847 )
835848
0 commit comments