Get the homepage Banner list interface

API call address

{域名地址}/api/banner/list

illustrate:{域名地址}You need to replace it with your domain address, such as/api/banner/list

Calling methods

GET

Request parameters

Field name type Required illustrate
type string no The default value is "default", you can create multiple banner groups in the background and then usetypeto call banners of different groups.

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data object[] Results content

data result item parameter

Field name type illustrate
id int ID
logo string Logo image address
link string Link address
alt string Picture Alt
Description string introduce
type string Grouping Type

Request data example

none

Return to the data example

{
    "code": 0,
    "data": [
        {
            "logo": "https://en.anqicms.com/uploads/202311/13/7371e7ca18e2668d.png",
            "id": 1,
            "link": "",
            "alt": "下载安企CMS",
            "description": "欢迎下载安企CMS",
            "type": "default"
        },
        {
            "logo": "https://en.anqicms.com/uploads/202311/13/93c0421dca1847c6.webp",
            "id": 2,
            "link": "/help",
            "alt": "AnQiCMS使用帮助",
            "description": "你可以在这里找到AnQiCMS的日常使用帮助",
            "type": "default"
        }
    ],
    "msg": ""
}

Error code

Error code illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK