change ApiBase's struct method