实现角色资源的分配

Change-Id: Ic679c393b2a0088acfb19fbd32c5d3e9123c8415
Signed-off-by: hxlzpnyist <ping198909@yeah.net>