srvdemo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddParams

type AddParams struct {
	UserName string `json:"user_name" binding:"required"` // 名字
}

type Svc

type Svc struct {
	ID          int64
	Ctx         context.Context
	RunningTest bool
}

func (*Svc) Add

func (s *Svc) Add(params AddParams) error

func (*Svc) Delete

func (s *Svc) Delete(ids []string) error

func (*Svc) GetByID

func (s *Svc) GetByID() (d *models.Demo, err error)

func (*Svc) GetDemoList

func (s *Svc) GetDemoList(q gormdb.BasicQuery) (interface{}, error)

func (*Svc) KafkaMessage

func (s *Svc) KafkaMessage(params AddParams) error

func (*Svc) Mod

func (s *Svc) Mod(params AddParams) (err error)

Jump to

Keyboard shortcuts

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