Documentation ¶
Index ¶
- Variables
- func CheckAppVendorPermission(ctx context.Context, appVendorUserID string) (*models.VendorVerifyInfo, error)
- func CreateVendorVerifyInfo(ctx context.Context, vendor *models.VendorVerifyInfo) error
- func DescribeVendorVerifyInfos(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) ([]*models.VendorVerifyInfo, uint32, error)
- func GetVendorVerifyInfo(ctx context.Context, appVendorUserId string) (*models.VendorVerifyInfo, error)
- func GetVendorVerifyInfoCountByCompanyName(ctx context.Context, companyName string) (uint32, error)
- func InitGlobelSetting()
- func PassVendorVerifyInfo(ctx context.Context, appVendorUserId string) error
- func RejectVendorVerifyInfo(ctx context.Context, appVendorUserId string, rejectMsg string, approver string) error
- func Serve(cfg *config.Config)
- func UpdateVendorVerifyInfo(ctx context.Context, req *pb.SubmitVendorVerifyInfoRequest) error
- func VerifyBankAccountNumber(ctx context.Context, bankAccountNumber string) error
- func VerifyEmail(ctx context.Context, email string) error
- func VerifyPhoneNumber(ctx context.Context, phoneNumber string) error
- func VerifyUrl(ctx context.Context, url string) error
- type Server
- func (s *Server) Checker(ctx context.Context, req interface{}) error
- func (s *Server) DescribeAppVendorStatistics(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) (*pb.DescribeVendorStatisticsResponse, error)
- func (s *Server) DescribeVendorVerifyInfos(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) (*pb.DescribeVendorVerifyInfosResponse, error)
- func (s *Server) GetVendorVerifyInfo(ctx context.Context, req *pb.GetVendorVerifyInfoRequest) (*pb.GetVendorVerifyInfoResponse, error)
- func (s *Server) PassVendorVerifyInfo(ctx context.Context, req *pb.PassVendorVerifyInfoRequest) (*pb.PassVendorVerifyInfoResponse, error)
- func (s *Server) RejectVendorVerifyInfo(ctx context.Context, req *pb.RejectVendorVerifyInfoRequest) (*pb.RejectVendorVerifyInfoResponse, error)
- func (s *Server) SubmitVendorVerifyInfo(ctx context.Context, req *pb.SubmitVendorVerifyInfoRequest) (*pb.SubmitVendorVerifyInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedStatus = []string{ constants.StatusNew, constants.StatusSubmitted, constants.StatusPassed, constants.StatusRejected, }
Functions ¶
func CreateVendorVerifyInfo ¶
func CreateVendorVerifyInfo(ctx context.Context, vendor *models.VendorVerifyInfo) error
func DescribeVendorVerifyInfos ¶
func DescribeVendorVerifyInfos(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) ([]*models.VendorVerifyInfo, uint32, error)
func GetVendorVerifyInfo ¶
func InitGlobelSetting ¶
func InitGlobelSetting()
func PassVendorVerifyInfo ¶
func RejectVendorVerifyInfo ¶
func UpdateVendorVerifyInfo ¶
func UpdateVendorVerifyInfo(ctx context.Context, req *pb.SubmitVendorVerifyInfoRequest) error
func VerifyBankAccountNumber ¶
func VerifyPhoneNumber ¶
no prefix, the length is 11.
Types ¶
type Server ¶
type Server struct { }
func (*Server) DescribeAppVendorStatistics ¶
func (s *Server) DescribeAppVendorStatistics(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) (*pb.DescribeVendorStatisticsResponse, error)
func (*Server) DescribeVendorVerifyInfos ¶
func (s *Server) DescribeVendorVerifyInfos(ctx context.Context, req *pb.DescribeVendorVerifyInfosRequest) (*pb.DescribeVendorVerifyInfosResponse, error)
func (*Server) GetVendorVerifyInfo ¶
func (s *Server) GetVendorVerifyInfo(ctx context.Context, req *pb.GetVendorVerifyInfoRequest) (*pb.GetVendorVerifyInfoResponse, error)
func (*Server) PassVendorVerifyInfo ¶
func (s *Server) PassVendorVerifyInfo(ctx context.Context, req *pb.PassVendorVerifyInfoRequest) (*pb.PassVendorVerifyInfoResponse, error)
func (*Server) RejectVendorVerifyInfo ¶
func (s *Server) RejectVendorVerifyInfo(ctx context.Context, req *pb.RejectVendorVerifyInfoRequest) (*pb.RejectVendorVerifyInfoResponse, error)
func (*Server) SubmitVendorVerifyInfo ¶
func (s *Server) SubmitVendorVerifyInfo(ctx context.Context, req *pb.SubmitVendorVerifyInfoRequest) (*pb.SubmitVendorVerifyInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.