Documentation ¶
Overview ¶
* @FilePath: /workflow-server/internal/data/data.go * @Author: maggot-code * @Date: 2023-08-13 02:16:37 * @LastEditors: maggot-code * @LastEditTime: 2023-08-28 22:30:07 * @Description:
* @FilePath: /workflow-server/internal/data/mapping.go * @Author: maggot-code * @Date: 2023-08-27 22:43:36 * @LastEditors: maggot-code * @LastEditTime: 2023-08-28 00:52:06 * @Description:
* @FilePath: /workflow-server/internal/data/oxygen.go * @Author: maggot-code * @Date: 2023-08-27 16:35:27 * @LastEditors: maggot-code * @LastEditTime: 2023-08-28 01:11:39 * @Description:
* @FilePath: /workflow-server/internal/data/user.go * @Author: maggot-code * @Date: 2023-08-14 14:52:18 * @LastEditors: maggot-code * @LastEditTime: 2023-08-29 19:14:42 * @Description:
* @FilePath: /workflow-server/internal/data/wechat.go * @Author: maggot-code * @Date: 2023-08-14 20:04:55 * @LastEditors: maggot-code * @LastEditTime: 2023-08-16 17:34:50 * @Description:
* @FilePath: /workflow-server/internal/data/work.go * @Author: maggot-code * @Date: 2023-08-20 19:26:22 * @LastEditors: maggot-code * @LastEditTime: 2023-08-27 17:51:53 * @Description:
Index ¶
- Variables
- func NewDB(c *conf.Bootstrap) *gorm.DB
- func NewOxygenReop(data *Data) biz.OxygenRepo
- func NewUserRepo(data *Data, c *conf.Bootstrap) biz.UserRepo
- func NewWorkRepo(data *Data) biz.WorkRepo
- func RecordToFloat(record float64) (float64, error)
- func RecordToInt(record float64) (float64, error)
- type Data
Constants ¶
This section is empty.
Variables ¶
var ( IntMapping = []float64{ 0.03, 0.10, 0.20, 0.41, 0.62, 0.83, 1.04, 1.25, 1.46, 1.67, 1.88, 2.09, 2.30, 2.51, 2.72, 2.93, 3.14, 3.35, 3.56, 3.77, 3.98, 4.19, 4.40, 4.61, 4.82, 5.03, 5.24, 5.45, 5.66, 5.87, 6.07, 6.28, 6.50, 6.71, 6.92, 7.13, 7.34, 7.55, 7.76, 7.97, 8.18, 8.39, 8.60, 8.81, 9.02, 9.23, 9.44, 9.65, 9.86, 10.00, } FloatMapping = []float64{ 0.02, 0.04, 0.06, 0.08, 0.10, 0.12, 0.14, 0.16, 0.18, } )
整数位和小数位对照表
var ProviderSet = wire.NewSet(NewData, NewDB, NewUserRepo, NewWorkRepo, NewOxygenReop)
Functions ¶
func NewOxygenReop ¶
func NewOxygenReop(data *Data) biz.OxygenRepo