Commit 92e33373 authored by 方斌's avatar 方斌

z

parent 617f35ac
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