| 12345678910111213141516171819202122232425 |
- package immodel
- import "github.com/zeromicro/go-zero/core/stores/mon"
- var _ ConversationListModel = (*customConversationListModel)(nil)
- type (
- // ConversationListModel is an interface to be customized, add more methods here,
- // and implement the added methods in customConversationListModel.
- ConversationListModel interface {
- conversationListModel
- }
- customConversationListModel struct {
- *defaultConversationListModel
- }
- )
- // NewConversationListModel returns a model for the mongo.
- func NewConversationListModel(url, db, collection string) ConversationListModel {
- conn := mon.MustNewModel(url, db, collection)
- return &customConversationListModel{
- defaultConversationListModel: newDefaultConversationListModel(conn),
- }
- }
|