Documentation ¶
Index ¶
- func CreateTodo(userId int64, content string, ctx context.Context, db *gorm.DB) error
- func DeleteTodo(userId, todoId int64, ctx context.Context, db *gorm.DB) error
- func UpdateTodo(userId, todoId int64, content string, ctx context.Context, db *gorm.DB) error
- type CreateTodoFlow
- type DeleteTodoFlow
- type DetailUser
- type GetTodoFlow
- type MGetTodoFlow
- type UpdateTodoFlow
- type UserAndTodoDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTodo ¶
Types ¶
type CreateTodoFlow ¶
type CreateTodoFlow struct { // request data UserId int64 Content string // contains filtered or unexported fields }
func NewCreateTodoFlow ¶
func (*CreateTodoFlow) Do ¶
func (f *CreateTodoFlow) Do() error
type DeleteTodoFlow ¶
type DeleteTodoFlow struct { // request data UserId int64 TodoId int64 // contains filtered or unexported fields }
func NewDeleteTodoFlow ¶
func (*DeleteTodoFlow) Do ¶
func (f *DeleteTodoFlow) Do() error
type DetailUser ¶
type GetTodoFlow ¶
type GetTodoFlow struct { // request data Username string UserId int64 TodoId int64 // response data UserAndTodo *UserAndTodoDetail // contains filtered or unexported fields }
func NewGetTodoFlow ¶
func (*GetTodoFlow) Do ¶
func (f *GetTodoFlow) Do() (*UserAndTodoDetail, error)
type MGetTodoFlow ¶
type MGetTodoFlow struct { // request data UserIds []int64 // response data UserAndTodo []*UserAndTodoDetail // contains filtered or unexported fields }
func NewMGetTodoFlow ¶
func (*MGetTodoFlow) Do ¶
func (f *MGetTodoFlow) Do() ([]*UserAndTodoDetail, error)
type UpdateTodoFlow ¶
type UpdateTodoFlow struct { // request data UserId int64 TodoId int64 Content string // contains filtered or unexported fields }
func NewUpdateTodoFlow ¶
func (*UpdateTodoFlow) Do ¶
func (f *UpdateTodoFlow) Do() error
type UserAndTodoDetail ¶
type UserAndTodoDetail struct { *DetailUser Todos []*model.Todo `json:"todos,omitempty"` }
Click to show internal directories.
Click to hide internal directories.