(c *gin.Context)
| 237 | } |
| 238 | |
| 239 | func getUserExampleIDFromPath(c *gin.Context) (string, uint64, bool) { |
| 240 | idStr := c.Param("id") |
| 241 | id, err := utils.StrToUint64E(idStr) |
| 242 | if err != nil || id == 0 { |
| 243 | logger.Warn("StrToUint64E error: ", logger.String("idStr", idStr), middleware.GCtxRequestIDField(c)) |
| 244 | return "", 0, true |
| 245 | } |
| 246 | |
| 247 | return idStr, id, false |
| 248 | } |
| 249 | |
| 250 | func convertUserExample(userExample *model.UserExample) (*types.UserExampleObjDetail, error) { |
| 251 | data := &types.UserExampleObjDetail{} |
no test coverage detected