service

package
v0.0.0-...-19069b9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPostRequest

type AddPostRequest struct {
	UrlID string        `form:"url_id" binding:"required"`
	Title string        `form:"title" binding:"required"`
	Brief string        `form:"brief" binding:"required"`
	Body  template.HTML `form:"body" binding:"required"`
}

type AddPostService

type AddPostService struct {
	*water.ServerBase
}

func (*AddPostService) Handle

func (srv *AddPostService) Handle(ctx context.Context, req *AddPostRequest) (interface{}, error)

type GetDocRequest

type GetDocRequest struct {
	UrlID string `json:"url_id"`
}

type GetDocResponse

type GetDocResponse struct {
	*model.Article
	List []*model.Article `json:"list"`
}

type GetDocService

type GetDocService struct {
	*water.ServerBase
}

func (*GetDocService) Handle

func (srv *GetDocService) Handle(ctx context.Context, req *GetDocRequest) (interface{}, error)

type IndexRequest

type IndexRequest struct{}

type IndexService

type IndexService struct {
	*water.ServerBase
}

func (*IndexService) Handle

func (srv *IndexService) Handle(ctx context.Context, req *IndexRequest) (interface{}, error)

type ListDocRequest

type ListDocRequest struct {
	Kind int `json:"kind"`
}

type ListDocResponse

type ListDocResponse struct {
	Body template.HTML    `json:"body"`
	List []*model.Article `json:"list"`
}

type ListDocService

type ListDocService struct {
	*water.ServerBase
}

func (*ListDocService) Handle

func (srv *ListDocService) Handle(ctx context.Context, req *ListDocRequest) (interface{}, error)

type ListRequest

type ListRequest struct {
	PageNo   int `json:"page_no"`
	PageSize int `json:"page_size"`
}

type ListService

type ListService struct {
	*water.ServerBase
}

func (*ListService) Handle

func (srv *ListService) Handle(ctx context.Context, req *ListRequest) (interface{}, error)

type LoginPostRequest

type LoginPostRequest struct {
	User     string `form:"user" binding:"required"`
	Password string `form:"password" binding:"required"`
}

type LoginPostService

type LoginPostService struct {
	*water.ServerBase
}

func (*LoginPostService) Handle

func (srv *LoginPostService) Handle(ctx context.Context, req *LoginPostRequest) (interface{}, error)

type RewardRequest

type RewardRequest struct{}

type RewardService

type RewardService struct {
	*water.ServerBase
}

func (*RewardService) Handle

func (srv *RewardService) Handle(ctx context.Context, req *RewardRequest) (interface{}, error)

type UpdatePostRequest

type UpdatePostRequest struct {
	UrlID       string        `form:"url_id"`
	Title       string        `form:"title"`
	Brief       string        `form:"brief"`
	Body        template.HTML `form:"body"`
	UpdatedTime time.Time     `json:"UpdatedTime"`
}

type UpdatePostService

type UpdatePostService struct {
	*water.ServerBase
}

func (*UpdatePostService) Handle

func (srv *UpdatePostService) Handle(ctx context.Context, req *UpdatePostRequest) (interface{}, error)

type UpdateRequest

type UpdateRequest struct {
	UrlID string `json:"url_id"`
}

type UpdateService

type UpdateService struct {
	*water.ServerBase
}

func (*UpdateService) Handle

func (srv *UpdateService) Handle(ctx context.Context, req *UpdateRequest) (interface{}, error)

Jump to

Keyboard shortcuts

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