发表于: 2017-06-20 23:16:04
3 1056
一、今天完成的事情:
继续编写接口文档
首页
Banner图是后端定义,跳转指定链接
点击找职位,跳转找职位页面
点击找精英,跳转到找精英界面
点击最新职位的更多跳转到最新职位界面
点击职位跳转职位详情
首页:
GET /a/home
最新职位接口GET /a/profession/new
最新职位推荐按照更新时间排序
select id,name,c_name c_id from profession order by update_at DESC
找职位 GET /a/work
找精英 GET /a/elite
最新职位详情页 GET /a/profession/new
排序按照最新发布时间排序
select id from profession order by update_at DESC
搜索条件
GET /a/profession/search
动态sql语句,查询按发布时间倒序排序
select id from profession where {} = {value} order by update_at DESC
推荐职位
/a/profession/new
按照是否推荐,发布时间倒序排序
select id from profession order by isRecommand,update_at DESC
搜索
Get /a/profession/search 按照是否推荐排序
select id from profession where {} = {value} order by isRecommand,update_at DESC
找职位页面GET /a/work
找职位职位列表接口
/a/work/{type}/{subtype}
搜索功能
GET /a/profession/search
动态sql语句,查询按发布时间倒序排序
select id from profession where isRecommand={1} order by update_at DESC
点击最新职位切换到最新职位,排序按照最新职位定义接口排序
/a/profession/new Get
搜索公司
GET /a/company/list/search
Select id from company order by update_at desc
公司详情页
公司详情页
接口 GET /a/company/{id}
select id from company where id={id}
接口 GET a/company/label/{id}
select id from companyLabel where id={id}
公司在招职位
接口 GET /a/company/list/search
查询按照更新时间倒序排序
Selcet id from profession where c_id={cId} order by update_at DESC
获取职位(这里需要一个标签表)
GET /a/company/list/search
想法为使用模糊查询
结果按照更新时间倒叙排序
Select id from profession where type={type} order by update_at DESC
职位介绍页
/a/profession/{id} GET 传入职位id
Selecet id from profession where id={id}
/a/company/{id} GET
Select id from company where id={id}
职位搜索
/a/profession//list/search 这里需要传入职位标签
还没想好sql语句该怎么写
搜索
GET /a/profession/search
Select id from profession where {}={value} order by update_at DESC
找精英模块
找精英页
接口GET /a/company//list/search
查询结果发布职位时间+公司认证逆序排列
select id from company order by approved , update_at DESC
操作-点击更多合作公司-进入公司列表页
公司列表页
接口GET /a/company/list/search
查询结果按认证逆序排列(认证状态为1)+创建时间逆序排列
select id from company order by approved , create_at DESC
操作-点击公司名称-跳转至公司详情页
二、遇到的问题:无
三、计划的事情:
四、收获:编写接口更多去设想逻辑怎么写,编写的较慢。但是逻辑基本清晰该怎么写了
评论