Get the homepage Banner list interface

API call address

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

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

Calling methods

GET

Request parameters

Field name type Required illustrate
type string no Default value "default", you can create multiple banner groups in the background thentypeCall different group banners.

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 Image 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": "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 illustrate
0 OK
-1 Error, the error reason is indicated in msg
1001 Not logged in
1002 Unauthorized
200 API Request OK