isv

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CheckAppVendorPermission

func CheckAppVendorPermission(ctx context.Context, appVendorUserID string) (*models.VendorVerifyInfo, error)

func CreateVendorVerifyInfo

func CreateVendorVerifyInfo(ctx context.Context, vendor *models.VendorVerifyInfo) error

func GetVendorVerifyInfo

func GetVendorVerifyInfo(ctx context.Context, appVendorUserId string) (*models.VendorVerifyInfo, error)

func GetVendorVerifyInfoCountByCompanyName

func GetVendorVerifyInfoCountByCompanyName(ctx context.Context, companyName string) (uint32, error)

func InitGlobelSetting

func InitGlobelSetting()

func PassVendorVerifyInfo

func PassVendorVerifyInfo(ctx context.Context, appVendorUserId string) error

func RejectVendorVerifyInfo

func RejectVendorVerifyInfo(ctx context.Context, appVendorUserId string, rejectMsg string, approver string) error

func Serve

func Serve(cfg *config.Config)

func UpdateVendorVerifyInfo

func UpdateVendorVerifyInfo(ctx context.Context, req *pb.SubmitVendorVerifyInfoRequest) error

func VerifyBankAccountNumber

func VerifyBankAccountNumber(ctx context.Context, bankAccountNumber string) error

func VerifyEmail

func VerifyEmail(ctx context.Context, email string) error

func VerifyPhoneNumber

func VerifyPhoneNumber(ctx context.Context, phoneNumber string) error

no prefix, the length is 11.

func VerifyUrl

func VerifyUrl(ctx context.Context, url string) error

Types

type Server

type Server struct {
}

func NewServer

func NewServer() (*Server, error)

func (*Server) Checker

func (s *Server) Checker(ctx context.Context, req interface{}) error

func (*Server) GetVendorVerifyInfo

func (*Server) PassVendorVerifyInfo

Jump to

Keyboard shortcuts

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