123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package handler
- import (
- "github.com/gin-gonic/gin"
- "youngee_b_api/model/http_model"
- "youngee_b_api/service"
- )
- func WrapFullSLocalBillListHandler(ctx *gin.Context) {
- handler := newFullSLocalBillListHandler(ctx)
- baseRun(handler)
- }
- func newFullSLocalBillListHandler(ctx *gin.Context) *FullSLocalBillListHandler {
- return &FullSLocalBillListHandler{
- req: http_model.NewFullSLocalBillRequest(),
- resp: http_model.NewFullSLocalBillResponse(),
- ctx: ctx,
- }
- }
- type FullSLocalBillListHandler struct {
- req *http_model.FullSLocalBillListRequest
- resp *http_model.CommonResponse
- ctx *gin.Context
- }
- func (h *FullSLocalBillListHandler) getRequest() interface{} {
- return h.req
- }
- func (h *FullSLocalBillListHandler) getContext() *gin.Context {
- return h.ctx
- }
- func (h *FullSLocalBillListHandler) getResponse() interface{} {
- return h.resp
- }
- func (h *FullSLocalBillListHandler) run() {
- data, err := service.SLocalLife.GetFullSLocalBillList(h.ctx, h.req)
- if err != nil {
- h.resp.Message = err.Error()
- }
- h.resp.Data = data
- h.resp.Message = "成功查询"
- }
- func (h *FullSLocalBillListHandler) checkParam() error {
- return nil
- }
|