根据消息对象获得消息元信息
(msg interface{})
| 220 | |
| 221 | // 根据消息对象获得消息元信息 |
| 222 | func MessageMetaByMsg(msg interface{}) *MessageMeta { |
| 223 | |
| 224 | if msg == nil { |
| 225 | return nil |
| 226 | } |
| 227 | |
| 228 | return MessageMetaByType(reflect.TypeOf(msg)) |
| 229 | } |
| 230 | |
| 231 | // 根据id查找消息元信息 |
| 232 | func MessageMetaByID(id int) *MessageMeta { |
no test coverage detected