You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package Service
import (
"dsData/Dao"
)
/**
功能输入第三方接入系统的系统ID和密码返回是否登录成功如果成功返回token
作者:黄海
时间2020-03-23
*/
func Token(id string, secret string) (bool, string, string) {
return Dao.Token(id, secret)
}
/**
功能:获取可以获取的数据类型
作者:黄海
时间2020-02-23
*/
func Datatype(clientId string) []map[string]string {
return Dao.Datatype(clientId)
}
/**
功能判断输入的token是否正确
作者:黄海
时间2020-02-23
*/
func CheckToken(token string) (bool, string) {
return Dao.CheckToken(token)
}
/**
功能:判断指定的数据类型是否存在
作者:黄海
时间2020-03-23
*/
func DataTypeIsExists(dataType string,clientId string) bool{
return Dao.DataTypeIsExists(dataType,clientId)
}
/**
功能:获取指定页数的数据
作者:黄海
时间2020-03-23
*/
func Share(clientId string,dataType string,startTime string,pk string)(bool,string, string, string, []map[string]interface{}){
return Dao.Share(clientId,dataType,startTime,pk)
}