service

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BmGetInt64OrDefault

func BmGetInt64OrDefault(c *bm.Context, key string, defaul int64) (value int64, exist bool)

BmGetInt64OrDefault util to get int64 from context

func BmGetStringOrDefault

func BmGetStringOrDefault(c *bm.Context, key string, defaul string) (value string, exist bool)

BmGetStringOrDefault util to get string from context

func BmHTTPErrorWithMsg

func BmHTTPErrorWithMsg(c *bm.Context, err error, msg string)

BmHTTPErrorWithMsg return customed message to client

Types

type Service

type Service struct {
	Crmservice *upcrmservice.Service
	// contains filtered or unexported fields
}

Service is service.

func New

func New(c *conf.Config) (s *Service)

New is go-common/business/service/videoup service implementation.

func (*Service) Close

func (s *Service) Close()

Close sub.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping service

func (*Service) Upload

func (s *Service) Upload(c context.Context, fileName, fileType string, t time.Time, body []byte, bfs *conf.Bfs) (location string, err error)

Upload upload.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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