Endpoint fixes
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
445a0b0e1f
commit
3ad96b6ad7
|
@ -13,55 +13,59 @@ module.exports = Self => {
|
|||
type: 'Object',
|
||||
description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
arg: 'tags',
|
||||
type: ['Object'],
|
||||
description: 'List of tags to filter with',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'search',
|
||||
type: 'String',
|
||||
description: `If it's and integer searchs by id, otherwise it searchs by name`,
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'id',
|
||||
type: 'Integer',
|
||||
description: 'The worker id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'userFk',
|
||||
type: 'Integer',
|
||||
description: 'The user id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'fi',
|
||||
type: 'String',
|
||||
description: 'The worker fi',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'departmentFk',
|
||||
type: 'Integer',
|
||||
description: 'The worker department id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'extension',
|
||||
type: 'Integer',
|
||||
description: 'The worker extension id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
arg: 'firstName',
|
||||
type: 'String',
|
||||
description: 'The worker firstName',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
arg: 'name',
|
||||
},
|
||||
{
|
||||
arg: 'lastName',
|
||||
type: 'String',
|
||||
description: 'The worker name',
|
||||
description: 'The worker lastName',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
arg: 'nickname',
|
||||
},
|
||||
{
|
||||
arg: 'userName',
|
||||
type: 'String',
|
||||
description: 'The worker nickname',
|
||||
description: 'The worker user name',
|
||||
http: {source: 'query'}
|
||||
}
|
||||
],
|
||||
|
@ -93,10 +97,10 @@ module.exports = Self => {
|
|||
return {'w.id': value};
|
||||
case 'userFk':
|
||||
return {'w.userFk': value};
|
||||
case 'name':
|
||||
return {'w.lastName': {like: `%${value}%`}};
|
||||
case 'firstName':
|
||||
return {'w.firstName': {like: `%${value}%`}};
|
||||
case 'lastName':
|
||||
return {'w.lastName': {like: `%${value}%`}};
|
||||
case 'extension':
|
||||
return {'p.extension': value};
|
||||
case 'fi':
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<vn-textfield
|
||||
vn-one
|
||||
label="Last name"
|
||||
ng-model="filter.name">
|
||||
ng-model="filter.lastName">
|
||||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue