chore: add with_xxx flag in getXxxById api