add cource resouce api

Signed-off-by: lei_zhang <kaly828@gmail.com>