(appid uint32, sub *types.Subscription)
| 326 | var Subs SubsObjMapper |
| 327 | |
| 328 | func (SubsObjMapper) Create(appid uint32, sub *types.Subscription) error { |
| 329 | sub.InitTimes() |
| 330 | |
| 331 | _, err := adaptr.TopicShare(appid, []types.Subscription{*sub}) |
| 332 | return err |
| 333 | } |
| 334 | |
| 335 | func (SubsObjMapper) Get(appid uint32, topic string, user types.Uid) (*types.Subscription, error) { |
| 336 | return adaptr.SubscriptionGet(appid, topic, user) |
no test coverage detected