Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 v1.0.0 Jun 2, 2022 Changes in this version + type ErrorParam struct + Field string + Message string + type ResultModel struct + Data interface{} + ErrorParams []*ErrorParam + Message string + Success bool + func FailureResultWithError(e error) *ResultModel + func FailureResultWithStr(msg string, v ...interface{}) *ResultModel + func SuccessResult(data interface{}) *ResultModel + func ToSimResultModel(r cm.Result) *ResultModel + type ResultPageModel struct + Data interface{} + PageNum int + PageSize int + Success bool + TotalCount int + func SuccessPageResult(data interface{}, pageNum int, pageSize int, totalCount int) *ResultPageModel