Documentation ¶
Index ¶
- func Fail(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message) *kk_pb_type.PBResponse
- func GenerateApi(apiModel ApiModel)
- func GenerateDartApi(apiModel ApiModel)
- func KKGin(stage *kk_stage.Stage) *gin.Engine
- func ReadProtoBuf(stage *kk_stage.Stage, ptr proto.Message) error
- func RequestForm2Map(stage *kk_stage.Stage) (queryParameters map[string]string, err error)
- func RequestParams2Map(stage *kk_stage.Stage) (queryParams map[string]string, err error)
- func ResponseErrPB(stage *kk_stage.Stage, err error)
- func ResponseFailPB(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message)
- func ResponseProtoBuf(c *gin.Context, obj any)
- func ResponseSuccessPB(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message)
- func ServerWithGracefulShutdown(stage *kk_stage.Stage, httpHandler http.Handler, serverAddr string)
- func Success(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message) *kk_pb_type.PBResponse
- type ApiModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fail ¶
func Fail(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message) *kk_pb_type.PBResponse
func GenerateApi ¶
func GenerateApi(apiModel ApiModel)
func GenerateDartApi ¶
func GenerateDartApi(apiModel ApiModel)
func RequestForm2Map ¶
func RequestParams2Map ¶
RequestParams2Map 解析Get请求的data 返回参数map
func ResponseErrPB ¶
func ResponseFailPB ¶
func ResponseFailPB(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message)
func ResponseProtoBuf ¶
func ResponseSuccessPB ¶
func ResponseSuccessPB(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message)
func Success ¶
func Success(stage *kk_stage.Stage, res *kk_pb_type.PBResponse, data proto.Message) *kk_pb_type.PBResponse
Types ¶
Click to show internal directories.
Click to hide internal directories.