from django.contrib import admin
from .models import MiniappScriptScene, MiniappScriptAutoReply


@admin.register(MiniappScriptScene)
class MiniappScriptSceneAdmin(admin.ModelAdmin):
    list_display = ('club_id', 'scene_key', 'title', 'enabled', 'UpdateTime')
    list_filter = ('club_id', 'enabled')
    search_fields = ('scene_key', 'title', 'content')


@admin.register(MiniappScriptAutoReply)
class MiniappScriptAutoReplyAdmin(admin.ModelAdmin):
    list_display = ('club_id', 'keyword', 'reply_type', 'sort_order', 'enabled', 'UpdateTime')
    list_filter = ('club_id', 'reply_type', 'enabled')
    search_fields = ('keyword', 'reply_content')
