Get home page banner list interface

API Call Address

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

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/banner/list

Calling method

GET

Request parameters

Field name Type Required Description
type string No default value. You can create multiple banner groups in the background, and then call different groups' banners bytypeto call banners from different groups.

Return parameters

Field name Type Description
code int error code
msg string error reason description
data object[] result content

data result item parameters

Field name Type Description
id int ID
Logo string Logo image address
link string Link address
alt string Image Alt
Description string Introduction
type string Group Type

request data example

None

Return Data Example

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

Error Code

error code Description
0 OK
-1 Error, the reason is indicated in the msg
1001 Not logged in
1002 Unauthorized
200 API request OK