| 1234567891011121314151617181920212223242526272829303132 |
- // Package service
- /**
- * @ File: hrRedis.go
- * @ Date: 2021/6/9 15:07
- * @ Author: JYQ
- * @ Description: 心率相关Redis操作
- */
- package service
- import (
- "sportfitness/base/assembly/heartRate/repository/postgre"
- "sportfitness/base/errors"
- )
- type HrRedis struct {
- base
- }
- // ClassStartR1AndOnClassByUUStdID 确认上课时创建R1与OnClass
- func (h HrRedis) ClassStartR1AndOnClassByUUStdID(token string, objectShopId int64, uuid string) string {
- optId := h.checkPermission(token, objectShopId)
- rst, err := postgre.PGHr{}.GetStdInfoAndCrIdByUUStdID(optId, objectShopId, uuid)
- if err != nil {
- panic(errors.PGError)
- }
- if !h.checkRs(rst) {
- return rst
- }
- return rst
- }
|