flexbiz-server
Version:
Flexible Server
3 lines (2 loc) • 639 B
JavaScript
'use strict';const model=global.getModel("dmgiathitruong_ngay"),controller=require("../../controllers/controller"),dmgiathitruong_ngay=function($router$$){(new controller($router$$,model,"dmgiathitruong_ngay",{sort:{ngay:-1},notNeedRight:!0,onCreating:async($user$$,$obj$$,$next$$)=>{$next$$("Kh\u00f4ng th\u1ec3 t\u1ea1o tr\u1ef1c ti\u1ebfp")},onUpdating:async($user$$,$data$$,$obj$$,$next$$)=>{$next$$("Kh\u00f4ng th\u1ec3 c\u1eadp nh\u1eadt")},onDeleting:async($user$$,$obj$$,$next$$)=>{if(!$user$$.appAdmin)return $next$$("Kh\u00f4ng c\u00f3 quy\u1ec1n xo\u00e1");
$next$$(null,$obj$$)}})).route()};module.exports=dmgiathitruong_ngay;