Skip to content

plugin_usages

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDPrimary Key IDNOAuto Increment
usage_typetinyint UNSIGNEDTypeNO1.Wallet recharge
2.Wallet withdrawal
3.Editor extensions
4.Content type extensions
5.Management extensions
6.Group extensions
7.User feature extensions
8.User profile extensions
9.Channel extensions
plugin_fskeyvarchar(64)Associated Plugin FskeyNORelated field plugins->fskey
namevarchar(128)NameNOMultilingual
icon_file_idbigint UNSIGNEDIcon file IDYESRelated field files->id
icon_file_urlvarchar(255)Icon file URLYES
scenevarchar(16)For type 3,5: Usage sceneYES1. Post / 2. Comment / 3. User
Multiple separated by commas
editor_toolbartinyint UNSIGNEDFor type 3: Display in toolbar0NO0. No / 1. Yes
editor_numbertinyint UNSIGNEDFor type 3: Usage countYESMaximum value 10
data_sourcesjsonFor type 4: Data source parametersYES
is_group_admintinyint UNSIGNEDFor type 5,6: Group admin only0NO0. No / 1. Yes
When value is 1, roles field is invalid
group_idint UNSIGNEDFor type 6: Group IDYESRelated field groups->id
Associated plugin's group
rolesvarchar(128)Authorized rolesYESAuthorized role IDs, multiple separated by commas
parametervarchar(128)Custom parameterYES
ratingsmallint UNSIGNEDSorting order9NOAscending order
can_deletetinyint UNSIGNEDCan be deleted1NO0. Cannot delete / 1. Can delete
is_enabledtinyint UNSIGNEDIs enabled1NO0. Disabled / 1. Enabled
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Application Scene Parameter Description

Editor Extension - Application Scene

    1. Post: Apply in the post editor
    1. Comment: Apply in the comment editor

Management Extension - Application Scene

    1. Post: Apply in the post function menu
    1. Comment: Apply in the post function menu
    1. User: Apply in the user homepage function menu

data_sources Field Description

json
{
    "postByAll": {
        "pluginFskey": "String / Empty means default, use main program API output data, if not empty, forward the API request to the plugin",
        "pluginRating": [
            {
                "id": "Number / API pluginRating parameter, passed to plugin, plugin will know what the number represents",
                "intro": [
                    {
                        "langTag": "String / Language Tag",
                        "title": "String / Sorting title",
                        "description": "String / Sorting description"
                    },
                    {
                        "langTag": "zh-Hans",
                        "title": "Recommended mode",
                        "description": "Prioritize viewing recommended posts"
                    }
                ]
            }
        ]
    },
    "postByFollow": {
        "pluginFskey": "",
        "pluginRating": [
            // ditto
        ]
    },
    "postByNearby": {
        "pluginFskey": "",
        "pluginRating": [
            // ditto
        ]
    },
    "commentByAll": {
        "pluginFskey": "",
        "pluginRating": [
            // ditto
        ]
    },
    "commentByFollow": {
        "pluginFskey": "",
        "pluginRating": [
            // ditto
        ]
    },
    "commentByNearby": {
        "pluginFskey": "",
        "pluginRating": [
            // ditto
        ]
    }
}

URL Concatenation Explanation and Custom Parameter Explanation

Released under the Apache-2.0 License