Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUnauthorizedUsersInGroup ¶
type AddUnauthorizedUsersInGroup struct {
}AddUnauthorizedUsersInGroup - グループへ未登録ユーザー追加APIのリクエスト
type AddUsersInGroup ¶
type AddUsersInGroup struct {
UserIDs []string `json:"userIds" validate:"max=64,unique"`
}
AddUsersInGroup - グループへユーザー追加APIのリクエスト
type CreateGroup ¶
type CreateGroup struct { Name string `json:"name" validate:"required,max=64"` Thumbnail string `json:"thumbnail"` UserIDs []string `json:"userIds" validarte:"max=64,unique"` }
CreateGroup - グループ作成APIのリクエスト
type CreatePayment ¶
type CreatePayment struct { Name string `json:"name" validate:"required,max=64"` Currency string `json:"currency" validate:"required,currency"` PositivePayers []*PayerInPayment `json:"positivePayers" validate:"min=1,max=64"` NegativePayers []*PayerInPayment `json:"negativePayers" validate:"min=1,max=64"` Tags []string `json:"tags" validate:"min=0,max=32,dive,max=32"` Comment string `json:"comment" validate:"max=256"` Images []string `json:"images" validate:"min=0,max=32"` PaidAt string `json:"paidAt" validate:"required,datetime"` }
CreatePayment - 支払い情報作成APIのリクエスト
type PayerInPayment ¶
type PayerInPayment struct { ID string `json:"id" vaidate:"required"` Amount float64 `json:"amount" validate:"gt=0,lte=999999"` // TODO: 合計が0になるように }
PayerInPayment - 支払い者情報
type RemoveUsersInGroup ¶
type RemoveUsersInGroup struct {
UserIDs []string `json:"userIds" validate:"max=64,unique"`
}
RemoveUsersInGroup - グループのユーザー削除APIのリクエスト
type UnauthorizedUserInGroup ¶
type UnauthorizedUserInGroup struct {}
UnauthorizedUserInGroup - グループへ追加する未登録ユーザーのリクエスト
type UpdateGroup ¶
type UpdateGroup struct { Name string `json:"name" validate:"required,max=64"` Thumbnail string `json:"thumbnail"` UserIDs []string `json:"userIds" validarte:"max=64,unique"` }
UpdateGroup - グループ編集APIのリクエスト
type UpdatePayerInPayment ¶
type UpdatePayerInPayment struct {
IsPaid bool `json:"isPaid"`
}
UpdatePayerInPayment - ユーザー毎の支払い情報編集APIのリクエスト
type UpdatePayment ¶
type UpdatePayment struct { Name string `json:"name" validate:"required,max=64"` Currency string `json:"currency" validate:"required,currency"` PositivePayers []*PayerInPayment `json:"positivePayers" validate:"min=1,max=64"` NegativePayers []*PayerInPayment `json:"negativePayers" validate:"min=1,max=64"` Tags []string `json:"tags" validate:"min=0,max=32,dive,max=32"` Comment string `json:"comment" validate:"max=256"` Images []string `json:"images" validate:"min=0,max=32"` PaidAt string `json:"paidAt" validate:"required,datetime"` }
UpdatePayment - 支払い情報作成APIのリクエスト
Click to show internal directories.
Click to hide internal directories.