package utils type ResponseDataOptionFunc func(ev *SuccessResponse) type SuccessResponse struct { APIVersion string `json:"apiVersion"` Code string `json:"code"` Message string `json:"message"` StatusCode int `json:"status_code"` Data interface{} `json:"data"` } type FailResponse struct { APIVersion string `json:"apiVersion"` Code string `json:"code"` Message string `json:"message"` StatusCode int `json:"status_code"` } type RespErr struct { Code int `json:"code"` Message string `json:"message"` } type ListRespData struct { Items interface{} `json:"items"` ItemsPerPage int `json:"itemsPerPage"` TotalItems int `json:"totalItems"` } type SingleRespData struct { Item interface{} `json:"item"` }