service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineService

type LineService interface {
	SelectByLineCode(lineCode int32) (*models.Line, error)
	InsertLine(line *models.Line) (*models.Line, error)
	InsertArray([]models.Line) ([]models.Line, error)
	PostLine(line *models.Line) (*models.Line, error)
	PostLineArray(context.Context, []models.Line) ([]models.Line, error)
	WithTrx(*gorm.DB) lineService
	DeleteAll() error
	GetMapper() mapper.LineMapper
}

func NewLineService

func NewLineService(repo repository.LineRepository) LineService

type OasaResponse

type OasaResponse struct {
	Error error
	Data  any
}

type OpswHttpRequest

type OpswHttpRequest struct {
	Method   string
	Headers  map[string]string
	Body     io.Reader
	Endpoint string
}

type RestService

type RestService interface {
	OasaRequestApi00(action string, extraParams map[string]interface{}) *OasaResponse
	OasaRequestApi02(action string) *OasaResponse
}

func NewRestService

func NewRestService() RestService

type RouteService

type RouteService interface {
	Post(models.Route) (*models.Route, error)
	DeleteAll() error
	WithTrx(*gorm.DB) routeService
	PostRoute02(models.Route02) (*models.Route02, error)
	InsertArray([]models.Route) ([]models.Route, error)
	Route02Insert(models.Route02) (*models.Route02, error)
	Route02InsertArr([]models.Route02) ([]models.Route02, error)
	Route01InsertArr([]models.Route01) ([]models.Route01, error)
	DeleteRoute01() error
	DeleteRoute02() error
	List01() ([]models.Route, error)
	GetMapper01() mapper.Route01Mapper
}

func NewRouteService

func NewRouteService(db *gorm.DB) RouteService

type Schedule01Service

type Schedule01Service interface {
}

type ScheduleService

type ScheduleService interface {
}

type SequenceService

type SequenceService interface {
}

type StopService

type StopService interface {
	Post(models.Stop) (*models.Stop, error)
	InsertArray([]models.Stop) ([]models.Stop, error)
	DeleteAll() error
	WithTrx(*gorm.DB) stopService
}

func NewStopService

func NewStopService(repo repository.StopRepository) StopService

type UVersionService

type UVersionService interface {
	Select(string) (*models.UVersions, error)
	Post(*models.UVersions) error
}

func NewuVersionService

func NewuVersionService(db *gorm.DB) UVersionService

Jump to

Keyboard shortcuts

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