web

package
v0.0.0-...-85b3044 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteWeb

func RouteWeb(e *gin.Engine)

RouteWeb register web route

Types

type ReportSrv

type ReportSrv struct {
	api.UnimplementedReportServant
	*base.DaoServant
}

func NewReportSrv

func NewReportSrv(s *base.DaoServant) *ReportSrv

func (*ReportSrv) Chain

func (s *ReportSrv) Chain() gin.HandlersChain

func (*ReportSrv) DeleteReport

func (s *ReportSrv) DeleteReport(req *web.DeleteReportReq) (*web.ReportResp, mir.Error)

func (*ReportSrv) ListReported

func (s *ReportSrv) ListReported() (*web.ListReportResp, mir.Error)

func (*ReportSrv) SendReport

func (s *ReportSrv) SendReport(req *web.ReportReq) (*web.ReportResp, mir.Error)

func (*ReportSrv) UpdateReportStatus

func (s *ReportSrv) UpdateReportStatus(req *web.PatchReportReq) mir.Error

type ServerResponse

type ServerResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		ID       int    `json:"id"`
		Username string `json:"username"`
		XP       int    `json:"xp_value"`
		Avatar   string `json:"avatar"`
	} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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