Versions in this module Expand all Collapse all v0 v0.1.0 Jul 2, 2023 Changes in this version + var DB *gorm.DB + func ConnSqlite() *gorm.DB + func InitDB() + type Chat struct + ChatType ChatType + Content string + ParentContent uint + Source string + Username string + func (c Chat) Add() (uint, error) + func (c Chat) Exist(filter map[string]interface{}) bool + func (c Chat) Find(filter map[string]interface{}, data *Chat) error + func (c Chat) List(req ChatListReq) ([]*Chat, error) + type ChatListReq struct + Source string + Username string + type ChatType uint + const A + const Q