1234567891011121314151617181920212223 |
- package service
- import (
- "testing"
- . "app.yhyue.com/moapp/jybase/mysql"
- . "bp.jydev.jianyu360.cn/BaseService/resourceCenter/public/db"
- )
- func init() {
- InitMysql(&Mysql{
- Address: "192.168.3.217:4000", //数据库地址:端口
- UserName: "root", //用户名
- PassWord: "=PDT49#80Z!RVv52_z", //密码
- DBName: "base_service", //数据库名
- MaxOpenConns: 5,
- MaxIdleConns: 5,
- })
- }
- func TestHasPowers(t *testing.T) {
- t.Log("我的权益", HasPowers("10000", 0, 14184, 4271))
- }
|