Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddTemplate(c context.Context, mid int64, tp *template.Template) (id int64, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) Count(c context.Context, mid int64) (count int64, err error)
- func (d *Dao) DelTemplate(c context.Context, mid int64, tp *template.Template) (rows int64, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Template(c context.Context, id, mid int64) (t *template.Template, err error)
- func (d *Dao) Templates(c context.Context, mid int64) (tps []*template.Template, err error)
- func (d *Dao) UpTemplate(c context.Context, mid int64, tp *template.Template) (rows int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao is archive dao.
func (*Dao) AddTemplate ¶
func (d *Dao) AddTemplate(c context.Context, mid int64, tp *template.Template) (id int64, err error)
AddTemplate add Template
func (*Dao) DelTemplate ¶
func (d *Dao) DelTemplate(c context.Context, mid int64, tp *template.Template) (rows int64, err error)
DelTemplate delete Template
Click to show internal directories.
Click to hide internal directories.