[feature] platform code autogen