部门和用户相关功能

Signed-off-by: Li Xia <xautlx@hotmail.com>