Commit 75b553c1 authored by Hsinli's avatar Hsinli

Merge branch 'master' of t-git.51gjj.com:fangbin/51business

parents 8d7903f4 65932fa9
Pipeline #6052 passed with stage
in 8 seconds
This diff is collapsed.
...@@ -4,6 +4,7 @@ const Controller = require('egg').Controller; ...@@ -4,6 +4,7 @@ const Controller = require('egg').Controller;
class JobtypeController extends Controller { class JobtypeController extends Controller {
async list() { async list() {
const { ctx, service } = this; const { ctx, service } = this;
if (ctx.params.jobtype === 'undefined') { return ctx.throw(422, 'job_style is missing!'); } if (ctx.params.jobtype === 'undefined') { return ctx.throw(422, 'job_style is missing!'); }
let job_type = ctx.params.jobtype; let job_type = ctx.params.jobtype;
const ret = await service.official.job.type.get_list( { job_type: job_type } ); const ret = await service.official.job.type.get_list( { job_type: job_type } );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment