mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	 7753ba2d37
			
		
	
	
		7753ba2d37
		
			
		
	
	
	
	
		
			
			Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			607 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			607 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from flask_restful import fields
 | |
| 
 | |
| from libs.helper import TimestampField
 | |
| 
 | |
| app_fields = {
 | |
|     'id': fields.String,
 | |
|     'name': fields.String,
 | |
|     'mode': fields.String,
 | |
|     'icon': fields.String,
 | |
|     'icon_background': fields.String
 | |
| }
 | |
| 
 | |
| installed_app_fields = {
 | |
|     'id': fields.String,
 | |
|     'app': fields.Nested(app_fields),
 | |
|     'app_owner_tenant_id': fields.String,
 | |
|     'is_pinned': fields.Boolean,
 | |
|     'last_used_at': TimestampField,
 | |
|     'editable': fields.Boolean,
 | |
|     'uninstallable': fields.Boolean
 | |
| }
 | |
| 
 | |
| installed_app_list_fields = {
 | |
|     'installed_apps': fields.List(fields.Nested(installed_app_fields))
 | |
| } |