1092772959 / AppDevelopment

夏季小学期app开发
0 stars 1 forks source link

新闻/抢票接口 #6

Open bnshen opened 5 years ago

bnshen commented 5 years ago

url:"/api/news" // 请求1

{ "method":"GET", "headers":"你们看", "Content-Type":"application/json" }

// 返回1 { "items":[ { "id":"1", //此处不可重复 "real_id":"1", //此处为真实的news/ticket id "title":"All Best Buy stores can now repair your Apple devices", "author":"Chris Welch", "abstract":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.", "content":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.\n Best Buy has offered Apple repairs at many locations for some time now, but the completed expansion brings that number up to nearly 1,000 stores. “Best Buy’s Geek Squad has nearly 7,600 newly Apple-certified technicians ready to make same-day iPhone repairs or to service other Apple products,” Apple said in a press release. There are Best Buy stores in neighborhoods that might not have an Apple presence, so this is a nice option to have at the ready. Most Best Buy locations have Apple showcase sections with the company’s iOS devices, MacBooks, HomePod, and other products.\n At its own stores, Apple has recently been pushing to speed up keyboard repairs for its MacBook, MacBook Air, and MacBook Pro laptops, promising a next-day turnaround in many cases. It’s unclear whether Best Buy has also begun replacing the third-generation butterfly keyboard with 2019’s revamped version.\n For its same-day iPhone screen replacements, Best Buy recommends that customers make an appointment and drop off their device before 6PM local time. Assuming the necessary parts are in stock, you’ll get your phone back that day or can just browse around the store while you wait for the repair to be completed.", "date":"2019-6-20", "is_ticket":false }, { "id":"2", "real_id":"1", //此处为真实的news/ticket id "title":"Apple Struggles To Find Quick Fix For Major iPhone Problem", "author":"Chris Welch", "abstract":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.", "content":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.\n Best Buy has offered Apple repairs at many locations for some time now, but the completed expansion brings that number up to nearly 1,000 stores. “Best Buy’s Geek Squad has nearly 7,600 newly Apple-certified technicians ready to make same-day iPhone repairs or to service other Apple products,” Apple said in a press release. There are Best Buy stores in neighborhoods that might not have an Apple presence, so this is a nice option to have at the ready. Most Best Buy locations have Apple showcase sections with the company’s iOS devices, MacBooks, HomePod, and other products.\n At its own stores, Apple has recently been pushing to speed up keyboard repairs for its MacBook, MacBook Air, and MacBook Pro laptops, promising a next-day turnaround in many cases. It’s unclear whether Best Buy has also begun replacing the third-generation butterfly keyboard with 2019’s revamped version.\n For its same-day iPhone screen replacements, Best Buy recommends that customers make an appointment and drop off their device before 6PM local time. Assuming the necessary parts are in stock, you’ll get your phone back that day or can just browse around the store while you wait for the repair to be completed.", "date":"2019-6-20", "is_ticket":true, "cnt":20, "icon_path":"", "vedio_path":"", "does_get":false, "current":15 }, { "id":"3", "real_id":"1", //此处为真实的news/ticket id "title":"Apple May Move 30% of Its iPhone Production From China. This Analyst Disagrees", "author":"Chris Welch", "abstract":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.", "content":"This morning, Apple announced that Best Buy now offers authorized repairs on its products at each and every one of the retailer’s stores. This gives consumers an important alternative to visiting their nearest Apple store — if there even is one — for service on an iPhone or Mac. Repairs are done with genuine Apple parts and are fully backed by the company, just as if Apple had done the work itself.\n Best Buy has offered Apple repairs at many locations for some time now, but the completed expansion brings that number up to nearly 1,000 stores. “Best Buy’s Geek Squad has nearly 7,600 newly Apple-certified technicians ready to make same-day iPhone repairs or to service other Apple products,” Apple said in a press release. There are Best Buy stores in neighborhoods that might not have an Apple presence, so this is a nice option to have at the ready. Most Best Buy locations have Apple showcase sections with the company’s iOS devices, MacBooks, HomePod, and other products.\n At its own stores, Apple has recently been pushing to speed up keyboard repairs for its MacBook, MacBook Air, and MacBook Pro laptops, promising a next-day turnaround in many cases. It’s unclear whether Best Buy has also begun replacing the third-generation butterfly keyboard with 2019’s revamped version.\n For its same-day iPhone screen replacements, Best Buy recommends that customers make an appointment and drop off their device before 6PM local time. Assuming the necessary parts are in stock, you’ll get your phone back that day or can just browse around the store while you wait for the repair to be completed.", "date":"2019-6-20", "is_ticket":false } ]

}

//请求2 { "method":"POST", "headers":"你们看", "Content-Type":"application/x-www-form-urlencoded", "body":{ "user_id":"", "ticket_id":"" } }

// 返回2 { "status":"200" }

yangdongchao commented 5 years ago

abstract 改为abstracts