1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package handler
- import (
- "github.com/gin-gonic/gin"
- "youngee_b_api/model/http_model"
- )
- func WrapCreateContactInfoHandler(ctx *gin.Context) {
- handler := newCreateContactInfoHandler(ctx)
- baseRun(handler)
- }
- func newCreateContactInfoHandler(ctx *gin.Context) *CreateContactInfoHandler {
- return &CreateContactInfoHandler{
- req: http_model.NewCreateContactInfoRequest(),
- resp: http_model.NewCreateContactInfoResponse(),
- ctx: ctx,
- }
- }
- type CreateContactInfoHandler struct {
- req *http_model.CreateContactInfoRequest
- resp *http_model.CommonResponse
- ctx *gin.Context
- }
- func (h *CreateContactInfoHandler) getRequest() interface{} {
- return h.req
- }
- func (h *CreateContactInfoHandler) getContext() *gin.Context {
- return h.ctx
- }
- func (h *CreateContactInfoHandler) getResponse() interface{} {
- return h.resp
- }
- func (h *CreateContactInfoHandler) run() {
- //data, err := service.Supplier.GetSupplierContactInfo(h.ctx, h.req)
- //if err != nil {
- // logrus.Errorf("[FindSubAccountByEnterpriseId] call SetSession err:%+v\n", err)
- // util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, err.Error())
- // log.Info("FindSubAccountByEnterpriseId fail,req:%+v", h.req)
- // h.resp.Message = err.Error()
- // h.resp.Status = 40000
- // return
- //}
- //h.resp.Data = data
- //h.resp.Status = 20000
- //h.resp.Message = "ok"
- }
- func (h *CreateContactInfoHandler) checkParam() error {
- return nil
- }
|