feedback

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 define

func New

func New(c *conf.Config) (d *Dao)

New init dao

func (*Dao) AddFeedback

func (d *Dao) AddFeedback(c context.Context, mid, tagID, sessionID int64, qq, content, aid, browser, imgURL, platform, ip string) (err error)

AddFeedback add feedback

func (*Dao) CloseSession

func (d *Dao) CloseSession(c context.Context, sessionID int64, ip string) (err error)

CloseSession close feedback by user

func (*Dao) Detail

func (d *Dao) Detail(c context.Context, mid, sessionID int64, ip string) (data []*feedback.Reply, err error)

Detail get feedback details

func (*Dao) Feedbacks

func (d *Dao) Feedbacks(c context.Context, mid, ps, pn, tagID int64, state, start, end, platform, ip string) (data []*feedback.Feedback, count int64, err error)

Feedbacks get feedback list

func (*Dao) Tags

func (d *Dao) Tags(c context.Context, mid int64, ip string) (tls *feedback.TagList, err error)

Tags get feedback tags/types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL