GET home/get_all_home_page?user_id={user_id}

显示首页的内容

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user_id

integer

Required

Body Parameters

None.

Response Information

Resource Description

显示首页的内容

DataResponseOfHomeBannerClassStudyViewModel
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

data

HomeBannerClassStudyViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "success": true,
  "data": {
    "banner_list": [
      {
        "banner_id": 1,
        "banner_type_id": 2,
        "banner_type_name": "sample string 3",
        "title": "sample string 4",
        "image_path": "sample string 5",
        "video_path": "sample string 6",
        "oss_image_path": "sample string 7",
        "link_path": "sample string 8",
        "content": "sample string 9",
        "date_from": "sample string 10",
        "date_to": "sample string 11",
        "redirect_id": 12,
        "wxa_app_id": "sample string 13",
        "ext": "sample string 14"
      },
      {
        "banner_id": 1,
        "banner_type_id": 2,
        "banner_type_name": "sample string 3",
        "title": "sample string 4",
        "image_path": "sample string 5",
        "video_path": "sample string 6",
        "oss_image_path": "sample string 7",
        "link_path": "sample string 8",
        "content": "sample string 9",
        "date_from": "sample string 10",
        "date_to": "sample string 11",
        "redirect_id": 12,
        "wxa_app_id": "sample string 13",
        "ext": "sample string 14"
      }
    ],
    "course_recommend": [
      {
        "course_id": 1,
        "cover_path": "sample string 2",
        "title": "sample string 3",
        "class_time": "sample string 4",
        "price": 5.0,
        "join_count": 6,
        "course_type_id": 7,
        "class_hours": 8,
        "description": "sample string 9",
        "course_type_name": "sample string 10",
        "lecturer_name": "sample string 11",
        "lecturer_head_image_path": "sample string 12"
      },
      {
        "course_id": 1,
        "cover_path": "sample string 2",
        "title": "sample string 3",
        "class_time": "sample string 4",
        "price": 5.0,
        "join_count": 6,
        "course_type_id": 7,
        "class_hours": 8,
        "description": "sample string 9",
        "course_type_name": "sample string 10",
        "lecturer_name": "sample string 11",
        "lecturer_head_image_path": "sample string 12"
      }
    ],
    "images_path": "sample string 1",
    "unread_message_count": 2,
    "student_comment_list": [
      {
        "student_comment_id": 1,
        "head_image_path": "sample string 2",
        "student_name": "sample string 3",
        "student_school": "sample string 4",
        "comment": "sample string 5"
      },
      {
        "student_comment_id": 1,
        "head_image_path": "sample string 2",
        "student_name": "sample string 3",
        "student_school": "sample string 4",
        "comment": "sample string 5"
      }
    ]
  }
}