Skip to content

operations

Column NameTypeCommentDefaultNullRemark
idint UNSIGNEDPrimary Key IDNOAuto Increment
typetinyint UNSIGNEDType1NO1. Custom / 2. Interactive button image / 3. Badge icon / 4. Prompt copy
codevarchar(32)CodeNOLowercase English only
stylevarchar(32)StyleNOprimary / secondary / success / danger / warning / info
namevarchar(128)NameYESMultilingual
descriptiontextDescriptionYESMultilingual
image_file_idbigint UNSIGNEDImage file IDYESRelated field files->id
image_file_urlvarchar(255)Image file URLYES
image_active_file_idbigint UNSIGNEDActive state image file IDYESRelated field files->id
image_active_file_urlvarchar(255)Active state image file URLYES
display_typetinyint UNSIGNEDDisplay type1NO1. Basic / 2. Function (plugin)
plugin_fskeyvarchar(64)Related pluginNORelated field plugins->fskey
Created by which plugin, also the plugin page for functional purposes
is_enabledtinyint UNSIGNEDIs Valid1NO0.Invalid / 1.Valid
created_attimestampCreate TimeCURRENT_TIMESTAMPNO
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Use Code

  • 1 Custom customizes
  • 2 Interactive Button Images buttonIcons
    • like Like Icon
    • dislike Dislike Icon
    • follow Follow Icon
    • block Block Icon
    • comment Comment Icon
    • share Share Icon
    • more More Icon
  • 3 Personalized Decoration Images diversifyImages
    • title Title Image
      • User:For example, "Co-Branded", "Shop", "Badge" icons or functional icons
      • Group: For example, "developer"
      • Hashtag: For example, "trend"
      • Post: For example, "vote", "raffle", "product" icons indicating post content
      • Comment: For example, "good comment", "high-quality review", "hot review"
    • decorate Decorative Images
      • User: Avatar decoration
      • Group: Cover image decoration
      • Hashtag: Cover image decoration
      • Post: Corner decoration
      • Comment: Corner decoration
    • verified Verification Image
      • User: Identity verification
      • Group: Official verification
      • Hashtag: Verified topic
      • Post: Content verification
      • Comment: Content verification
    • medal Medal Image
      • User: For example, "badge"
      • Group:
      • Hashtag:
      • Post: For example, "professional"
      • Comment:
  • 4 Prompt Copy tips
    • alert Prompt Text

In addition to the above built-in definitions, plugins can define their own, and users can associate multiple, with usage codes available for the client to distinguish between usage and display location.

API output example

json
{
    "operations": {
        "customizes": [
            {
                "code": "operations->code",
                "style": "operations->style",
                "name": "operations->name",
                "description": "operations->description",
                "imageUrl": "operations->image_file_id or image_file_url",
                "imageActiveUrl": "operations->image_active_file_id or image_active_file_url",
                "displayType": "operations->display_type",
                "pluginUrl": "operations->plugin_fskey",
            }
        ],
        "buttonIcons": [
            {
                "code": "operations->code",
                "style": "operations->style",
                "name": "operations->name",
                "description": "operations->description",
                "imageUrl": "operations->image_file_id or image_file_url",
                "imageActiveUrl": "operations->image_active_file_id or image_active_file_url",
                "displayType": "operations->display_type",
                "pluginUrl": "operations->plugin_fskey",
            }
        ],
        "diversifyImages": [
            {
                "code": "operations->code",
                "style": "operations->style",
                "name": "operations->name",
                "description": "operations->description",
                "imageUrl": "operations->image_file_id or image_file_url",
                "imageActiveUrl": "operations->image_active_file_id or image_active_file_url",
                "displayType": "operations->display_type",
                "pluginUrl": "operations->plugin_fskey",
            }
        ],
        "tips": [
            {
                "code": "operations->code",
                "style": "operations->style",
                "name": "operations->name",
                "description": "operations->description",
                "imageUrl": "operations->image_file_id or image_file_url",
                "imageActiveUrl": "operations->image_active_file_id or image_active_file_url",
                "displayType": "operations->display_type",
                "pluginUrl": "operations->plugin_fskey",
            }
        ],
    }
}

Released under the Apache-2.0 License