Documentation ¶
Index ¶
- type Service
- func (s *Service) BatchUpdateState(c context.Context, qids []int64, state int8, operator string) (err error)
- func (s *Service) Close()
- func (s *Service) CreateBFSImg(c context.Context, ids []int64)
- func (s *Service) GenerateImage(c context.Context)
- func (s *Service) History(c context.Context, arg *model.ArgHistory) (res *model.HistoryPage, err error)
- func (s *Service) LoadImg(c context.Context) (err error)
- func (s *Service) LoadTypes(c context.Context) (err error)
- func (s *Service) QueHistory(c context.Context, arg *model.ArgHistory) (res *model.HistoryPage, err error)
- func (s *Service) QuestionAdd(c context.Context, q *model.QuestionDB) (err error)
- func (s *Service) QuestionEdit(c context.Context, arg *model.QuestionDB) (aff int64, err error)
- func (s *Service) QuestionList(c context.Context, arg *model.ArgQue) (res *model.QuestionPage, err error)
- func (s *Service) ReadCsv(f multipart.File, h *multipart.FileHeader) (rs [][]string, err error)
- func (s *Service) Types(c context.Context) (res []*model.TypeInfo, err error)
- func (s *Service) UpdateStatus(c context.Context, qid int64, state int8, operator string) (err error)
- func (s *Service) UploadQsts(c context.Context, f multipart.File, h *multipart.FileHeader, operator string) (msg string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct of service.
func (*Service) BatchUpdateState ¶
func (s *Service) BatchUpdateState(c context.Context, qids []int64, state int8, operator string) (err error)
BatchUpdateState bacth update question state.
func (*Service) CreateBFSImg ¶
CreateBFSImg .
func (*Service) History ¶
func (s *Service) History(c context.Context, arg *model.ArgHistory) (res *model.HistoryPage, err error)
History .
func (*Service) QueHistory ¶
func (s *Service) QueHistory(c context.Context, arg *model.ArgHistory) (res *model.HistoryPage, err error)
QueHistory .
func (*Service) QuestionAdd ¶
QuestionAdd add register question
func (*Service) QuestionEdit ¶
QuestionEdit .
func (*Service) QuestionList ¶
func (s *Service) QuestionList(c context.Context, arg *model.ArgQue) (res *model.QuestionPage, err error)
QuestionList .
Click to show internal directories.
Click to hide internal directories.