group_power_test.go 617 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3
package test

import (
chenweijian's avatar
chenweijian committed
4
	"fmt"
hujiebin's avatar
hujiebin committed
5 6
	"git.hilo.cn/hilo-common/domain"
	"hilo-group/domain/model/groupPower_m"
chenweijian's avatar
chenweijian committed
7
	"hilo-group/domain/model/group_m"
hujiebin's avatar
hujiebin committed
8 9 10 11
	"testing"
)

func TestGetAllGroupPowerOwner(t *testing.T) {
chenweijian's avatar
chenweijian committed
12
	owners, _, err := groupPower_m.BatchGetAllGroupPowerUsers(domain.CreateModelNil(), 1, 1)
hujiebin's avatar
hujiebin committed
13 14
	println(owners, err)
}
15 16 17

func TestGetGroupPowerMonthStartTop1(t *testing.T) {
	res, err := groupPower_m.GetGroupPowerMonthStartTop1(domain.CreateModelNil(), 250)
chenweijian's avatar
chenweijian committed
18 19 20 21 22 23 24
	println(res, err)
}

func TestIsUseTRTC(t *testing.T) {
	if group_m.IsUseTRTC(domain.CreateModelNil(), "@TGS#3I57DMRIB") {
		fmt.Println("true--------------")
	}
25
}