# 公开 **Repository Path**: twjcode/GongKai ## Basic Information - **Project Name**: 公开 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 博涛接口文档_v1.0.0 一些说明 *** # 接口规范 *** ## Request Header 请求头域内容 > #### Host: `暂无` #### Content-Type: `application/json` #### Date: `UTC时间` #### Authorization: `不授权验证` #### Token: `不身份验证` #### Cookie: `缓存` ## Response Header 响应头域内容 > #### Set-Cookie: `缓存` ## Error message format 错误信息格式 > code|message ----|--------------- 0 |请求成功 401 |权限不足或授权信息错误 403 |当前身份过期,服务器拒绝请求 404 |访问Url未找到或页面已移除 500 |缺失请求参数或服务器内部错误 *** # 前台 *** ## 首页轮播广告图接口 首页轮播广告图 > #### HttpMethod: `GET` #### Url: `/api/GetAdListJson?top=5&AdCategoryId=0&AdLanguageId=0&callback=?` #### Request: param |type |nullable |description ------------ |-----------|-----------|----------- top |int |true |查几条 AdCategoryId |int |true |0焦点图, 1视频广告 AdLanguageId |int |true |0中文,1英文 callback |str |false |jsonp格式 #### Response:
{
"code": 0,
"msg": null,
"count": 5,
"data": [
{
"AdID": 4,
"AdSort": 2,
"AdCommend": 1,
"AdLanguageId": 0,
"AdTitle": "22",
"AdPath": "/upload/image/20170921/6364162430916153642617463.jpg",
"AdContent": "33",
"AdCreateDate": "2017-09-21T20:58:30",
"AdLinkUrl": "33",
"AdCategoryId": 0,
"AdCreater": "唐文军",
"AdHits": 0
},
{
"AdID": 3,
"AdSort": 2,
"AdCommend": 1,
"AdLanguageId": 0,
"AdTitle": "1",
"AdPath": "/upload/image/20170921/6364162432555291567575559.jpg",
"AdContent": "666",
"AdCreateDate": "2017-09-21T20:59:40",
"AdLinkUrl": "2",
"AdCategoryId": 0,
"AdCreater": "唐文军",
"AdHits": 0
}
]
}
## 项目案例列表接口
项目案例列表
>
#### HttpMethod: `GET`
#### Url: `/api/GetProductListJson?page=1&limit=10&MoldID=1&PlaceID=1&LanguageID=0&callback=?`
#### Request:
param |type |nullable |description
------------ |-----------|-----------|-----------
page |int |true |页码
limit |int |true |每页条数
MoldID |int |false |类型:1总体规划;2住宅
PlaceID |int |false |区域:1东北;2华北
LanguageID |int |true |0中文,1英文
callback |str |false |jsonp格式
#### Response:
{
"code": 0,
"msg": null,
"count": 1,
"data": [
{
"ProductID": 2,
"Sort": 0,
"Commend": 0,
"Poster": "admin",
"Published": "2009-11-21T11:56:18",
"ProductName": "Super CMS 1.0 正式版",
"LanguageID": 0,
"Pic": "/UpLoadFiles/Large3/cms.jpg",
"Content": "Super CMS 1.0 正式版",
"PlaceID": 1,
"MoldID": 1,
"SmallPic": "/UpLoadFiles/Small3/cms.jpg",//列表用图
"Hits": 0
}
]
}
## 新闻文化列表接口
新闻文化列表
>
#### HttpMethod: `GET`
#### Url: `/api/GetNewsListJson?page=1&limit=10&TypeID=2&LanguageID=0&callback=?`
#### Request:
param |type |nullable |description
------------ |-----------|-----------|-----------
page |int |true |页码
limit |int |true |每页条数
TypeID |int |true |类型:1新闻;2文化
LanguageID |int |true |0中文,1英文
callback |str |false |jsonp格式
#### Response:
{
"code": 0,
"msg": null,
"count": 1,
"data": [
{
"ArticleID": 11,
"Published": "2017-09-17T15:05:25",
"Hits": 0,
"Sort": 0,
"Commend": 1,
"LanguageID": 0,
"Title": "文化666",
"TypeID": 2,
"Pic": "/upload/image/20170917/6364125752191795039101440.jpg",
"SmallPic": "/upload/smimage/20170917/6364125752191795039101440.jpg", //列表用图
"Brief": "",
"Content": "",
"Editor": "唐文军"
}
]
}
## 项目案例详情接口
项目案例详情
>
#### HttpMethod: `GET`
#### Url: `/api/GetProductInfoJson?pid=1&callback=?`
#### Request:
param |type |nullable |description
------------ |-----------|-----------|-----------
pid |int |true |主键编号
callback |str |false |jsonp格式
#### Response:
{
"code": 0,
"msg": null,
"count": 0,
"data": {
"ProductID": 1,
"Sort": 0,
"Commend": 2,
"Poster": "admin",
"Published": "2009-11-21T11:56:18",
"ProductName": "66666666",
"LanguageID": 0,
"Pic": "/upload/image/20170917/6364120497411464162037090.jpg,/upload/image/20170917/6364120633202020886255293.jpg,/upload/image/20170917/6364120633202020886255293.gif", //图片集 逗号分隔
"Content": "\\u003c\\u0070\\u003e\\u0031\\u0031\\u0031\\u0031\\u0031\\u0031\\u0031\\u0031\\u003c\\u002f\\u0070\\u003e",
"PlaceID": 7,
"MoldID": 2,
"SmallPic": "/upload/smimage/20170917/6364120497411464162037090.jpg",
"Hits": 0
}
}