55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
|
|
######################################################
|
|||
|
|
### 接口相关控制,接口文件需要使用jwt进行token验证 ###
|
|||
|
|
######################################################
|
|||
|
|
#用户认证登陆相关
|
|||
|
|
location /api/auth {
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/auth/auth.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#账号信息数据接口
|
|||
|
|
location /api/system/accounts {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/account.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#应用程序信息数据接口
|
|||
|
|
location /api/system/applications {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/application.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#组织(岗位)信息数据接口
|
|||
|
|
location /api/system/departments {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/department.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#菜单信息数据接口
|
|||
|
|
location /api/system/menus {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/menu.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#权限信息数据接口
|
|||
|
|
location /api/system/permissions {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/permission.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#岗位信息数据接口
|
|||
|
|
location /api/system/positions {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/position.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#账号信息数据接口
|
|||
|
|
location /api/system/roles {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/role.lua';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#用户信息数据接口
|
|||
|
|
location /api/system/users {
|
|||
|
|
access_by_lua_file '${APP_PATH}/src/auth/jwt-auth.lua';
|
|||
|
|
content_by_lua_file '${APP_PATH}/src/api/system/user.lua';
|
|||
|
|
}
|