消息元数据和实体封装，消息save实现

Signed-off-by: LiYuancen <lyc1116@foxmail.com>