rpc_test.go 686 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3
package test

import (
hujiebin's avatar
hujiebin committed
4 5
	"fmt"
	"git.hilo.cn/hilo-common/_const/enum/timezone_e"
hujiebin's avatar
hujiebin committed
6 7 8 9 10 11 12 13 14 15
	"git.hilo.cn/hilo-common/domain"
	"git.hilo.cn/hilo-common/resource/mysql"
	"git.hilo.cn/hilo-common/rpc"
	"testing"
)

func TestMGetGroupPower(t *testing.T) {
	res, err := rpc.MGetGroupPower(domain.CreateModelNil(), []mysql.ID{250, 251})
	println(res, err)
}
16 17

func TestMGetUserOnMic(t *testing.T) {
hujiebin's avatar
hujiebin committed
18 19
	res, err := rpc.MGetUserOnMic(domain.CreateModelNil(), "2023-04-11", []mysql.ID{4556, 4549}, timezone_e.TimezoneKSA)
	fmt.Printf("%+v,err:%v", res, err)
20
}
hujiebin's avatar
hujiebin committed
21 22 23 24 25

func TestGetUserCpEntryEffect(t *testing.T) {
	res, err := rpc.GetUserCpEntryEffect(domain.CreateModelNil(), 7642)
	fmt.Printf("%v-%v", res, err)
}