validation

package
v0.0.0-...-4350bb9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupRequestValidation

type GroupRequestValidation interface {
	CreateGroup(req *request.CreateGroup) []*domain.ValidationError
	UpdateGroup(req *request.UpdateGroup) []*domain.ValidationError
	AddUsersInGroup(req *request.AddUsersInGroup) []*domain.ValidationError
	AddUnauthorizedUsersInGroup(req *request.AddUnauthorizedUsersInGroup) []*domain.ValidationError
	RemoveUsersInGroup(req *request.RemoveUsersInGroup) []*domain.ValidationError
}

GroupRequestValidation - グループ関連のバリデーション

func NewGroupRequestValidation

func NewGroupRequestValidation() GroupRequestValidation

NewGroupRequestValidation - GroupRequestValidationの生成

type PaymentRequestValidation

type PaymentRequestValidation interface {
	CreatePayment(req *request.CreatePayment) []*domain.ValidationError
	UpdatePayment(req *request.UpdatePayment) []*domain.ValidationError
	UpdatePayerInPayment(req *request.UpdatePayerInPayment) []*domain.ValidationError
}

PaymentRequestValidation - 支払い関連のバリデーション

func NewPaymentRequestValidation

func NewPaymentRequestValidation() PaymentRequestValidation

NewPaymentRequestValidation - PaymentRequestValidationの生成

type RequestValidator

type RequestValidator interface {
	Run(i interface{}) []*domain.ValidationError
}

RequestValidator - リクエストバリデーションインターフェース

func NewRequestValidator

func NewRequestValidator() RequestValidator

NewRequestValidator - Validatorの生成

Jump to

Keyboard shortcuts

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