It was the novel 'The Prince's Concubine Always Wants to Kill Me'. The protagonist, Xiaoming, had transmigrated to ancient times and became Li Shen, a prince. He opened a bookstore in the other world, wrote novels, and listened to other people's stories. He also happened to like a person, but someone wanted to kill him. I hope you will like the plot of this novel.