move the genenated method, and improve the g_data method
move the files of logic layer to logic dir