local_life_add_to_list.go 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package handler
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "youngee_b_api/model/http_model"
  5. )
  6. func WrapLocalLifeAddToListHandler(ctx *gin.Context) {
  7. handler := newLocalLifeAddToListHandler(ctx)
  8. baseRun(handler)
  9. }
  10. func newLocalLifeAddToListHandler(ctx *gin.Context) *LocalLifeAddToListHandler {
  11. return &LocalLifeAddToListHandler{
  12. req: http_model.NewLocalLifeAddToListRequest(),
  13. resp: http_model.NewLocalLifeAddToListResponse(),
  14. ctx: ctx,
  15. }
  16. }
  17. type LocalLifeAddToListHandler struct {
  18. req *http_model.LocalLifeAddToListRequest
  19. resp *http_model.CommonResponse
  20. ctx *gin.Context
  21. }
  22. func (h *LocalLifeAddToListHandler) getRequest() interface{} {
  23. return h.req
  24. }
  25. func (h *LocalLifeAddToListHandler) getContext() *gin.Context {
  26. return h.ctx
  27. }
  28. func (h *LocalLifeAddToListHandler) getResponse() interface{} {
  29. return h.resp
  30. }
  31. func (h *LocalLifeAddToListHandler) run() {
  32. }
  33. func (h *LocalLifeAddToListHandler) checkParam() error {
  34. return nil
  35. }