Documentation
¶
Overview ¶
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-17 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-26 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-10-09 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-10-09 11:48:17 **********************************************
********************************************* ** @Des: 权限因子 ** @Author: haodaquan ** @Date: 2017-09-09 20:50:36 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-17 21:42:08 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-25 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-25 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-16 15:42:43 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-24 11:48:17 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-14 15:24:51 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-17 11:48:52 **********************************************
********************************************* ** @Des: This file ... ** @Author: haodaquan ** @Date: 2017-09-15 11:44:13 ** @Last Modified by: haodaquan ** @Last Modified time: 2017-09-17 11:49:13 **********************************************
Index ¶
- func AddTeamGroupMap(gid int64, extension string) error
- func AdminAdd(a *Admin) (int64, error)
- func AiFlowContentToProcessDesc(id int64) string
- func AiNumbersAdd(a *AiNumbers) (int64, error)
- func AiSeatTaskAdd(a *AiSeatTask) (int64, error)
- func AiTaskAdd(a *AiTask) (int64, error)
- func AiTaskAutoReset()
- func AiTaskReset(id int64) error
- func AiTaskStop(id int64, i int) error
- func ApiAdd(a *Api) (int64, error)
- func ApiDetailAdd(a *ApiDetail) (int64, error)
- func ApiParamAdd(a *ApiParam) (int64, error)
- func AuthAdd(auth *Auth) (int64, error)
- func CallDelete(id int64) error
- func CallGateWayAdd(a CallGateWay) (int64, error)
- func CallGateWayEdit(a CallGateWay) error
- func CheckNumberMap(groupid, numid int64) bool
- func ChengeAddressBookById(phone, name, alias, extension, spell, alias_str, bumeng, id string) error
- func CodeAdd(a *Code) (int64, error)
- func CopyNodeProcess(id int64)
- func CopyTpl(tpl, id int64) error
- func DatchDelete(sql string) error
- func DelectAddressBookById(id string) error
- func DelectRoute(id int64) error
- func DeleteAgentGroup(id int) error
- func DeleteAgentGroupNumber(extension string) error
- func DeleteNotMatchAllByTpl(tpl int64) error
- func DeleteProcess(tpl int) error
- func EnvAdd(a *Env) (int64, error)
- func Eqint64(a, b int64) bool
- func ErrorLog(err error)
- func ExtansionAdd(p *AiExtansion) (int64, error)
- func GateWayAdd(a *GateWay) (int64, error)
- func GatewayGroupAdd(a *GatewayGroup) (int64, error)
- func GetCallGatewayName(extension string) (string, string, error)
- func GetCdrCondition(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, ...) (string, error)
- func GetCdrCondition2(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, ...) (string, error)
- func GetCdrCondition3(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, ...) (string, error)
- func GetCdrInfo(userId int) (int, error)
- func GetConnectCounts(userId int) (int, error)
- func GetFSExternalPath(name string) (string, error)
- func GetFlowCount(userId int) (int, error)
- func GetGateWayNameByUserId(userid int) ([]string, error)
- func GetGroupMapId(extension string) int
- func GetNodeName(id, tplid int64) (string, error)
- func GetNumberCounts(userId int) (int, error)
- func GetRunTimeInfo(owner int) (int, error)
- func GetTaskCount(userId int) (int, error)
- func GetUnconnectCounts(userId int) (int, error)
- func GetUserCountInfo(owner int) (int, error)
- func GroupAdd(a *Group) (int64, error)
- func GroupAddByFunction(thread *NumberThread, a *GroupMap2) (int, error)
- func GroupMapAdd(a *GroupMap) (int64, error)
- func Init()
- func InsertRoute(p *AiRoute) (int64, error)
- func InsertRouteDetail(p *AiRouteDetails) (int64, error)
- func InsertSeatCdr(uuid, phone_own string) error
- func InsertSeatNumber(gid int64, number, extension, name string) error
- func InsertaddressBook(a *AiAddressBook) (int64, error)
- func IsRuntimeByCallId(callid string, userId int) (bool, error)
- func LockSeat(id int64, lock string) error
- func LockState(id int64) (bool, error)
- func NumberGropAdd(p *CcNumberGroup) (int64, error)
- func NumberGroupAdd(a *NumberGroup) (int64, error)
- func NumberGroupMapGetListCount(gid int) (error, int64)
- func NwayAutoResetTask()
- func ParamGetListByTape(tplid int64) [][]*AIVoiceLibrary
- func ProcessAdd(p *AiProcess) (int64, error)
- func ProcessContentAdd(p *AiProcessContent) (int64, error)
- func QueryProcessStartNode(tpl int) error
- func Reportcdr(start, end string, userId int) ([]int, error)
- func RingAddData(name, path string) error
- func RingDeleteData(id string) error
- func RingUpdateData(id, name, path string) error
- func RoleAdd(role *Role) (int64, error)
- func RoleAuthAdd(ra *RoleAuth) (int64, error)
- func RoleAuthDelete(id int) (int64, error)
- func RoleAuthGetByIds(RoleIds string) (Authids string, err error)
- func RoleAuthMultiAdd(ras []*RoleAuth) (n int, err error)
- func RunTimeAdd(p *RunTimeModel) (int64, error)
- func SearchCdrInfo(start string, userId int) (int, int, int, error)
- func SearchCdrInfos(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, ...) (int, int, int, error)
- func SearchSeatCdrInfo(start, end, userId string, id int) (int, int, error)
- func SearchSeatCdrInfo1(start, end, phone, timemax, timemin, userId string, id int) (int, int, error)
- func SeatAdd(p *AiSeat) (int64, error)
- func SeatPassd(id int64) error
- func SelectCallExtension(gid int64) ([]string, error)
- func SelectExtension(id, name string) (string, error)
- func SelectTeamGroupMap(extension string) (int64, error)
- func ServersAdd(p *AiServers) (int64, error)
- func SetCumbersUuid(id int64, uuid string) error
- func SetExtensionMemo(id int64, memo string) error
- func SetExtensionYx(id int64, yx string) error
- func SetNodePositionMode(id, parent int64) error
- func SetTeamGroupMap(gid, id int64, extension string) error
- func SetextensionGateway(gid int64, extension string) error
- func TableName(name string) string
- func TeamGroupAdd(p *AiSeatGroup) (int64, error)
- func TplAdd(p *AiTpl) (int64, error)
- func TplRepair(tpl int) error
- func UpdateExtensionById(p1, p2, id string) error
- func UpdateKeywordFromId(keyword string, id int64) error
- func UpdateLastFinishTimeAndState(id int64) error
- func UpdateNodeContentFromId(nodeContent string, id int64) error
- func UpdateRoute(id int64, Dialplan_number, Dialplan_name, tag, data string) error
- func UpdateUser(loginName, password, seatname string) error
- func UptateResetNumberMap(groupid int64) error
- func UptateTaskState(groupid int64) error
- func VoiceLibraryAdd(p *AIVoiceLibrary) (int64, error)
- type AIVoiceLibrary
- type Admin
- type AiAddressBook
- type AiCdr
- type AiExtansion
- func ExtansionGetAllList() []*AiExtansion
- func ExtansionGetById(id int) (*AiExtansion, error)
- func ExtansionGetList(page, pageSize int, filters ...interface{}) ([]*AiExtansion, int64)
- func SelectExtensionById(id int64) (AiExtansion, error)
- func TeamGroupSetList(page, pageSize int, gId int64) ([]AiExtansion, int64)
- type AiFlowContent
- type AiNotMatch
- type AiNumTaskMap
- type AiNumbers
- type AiProcess
- func GetNodeProcessMessage(node int, tpl_id int64) (*AiProcess, error)
- func GetProcessMessage(keyword string, tpl_id int64) (*AiProcess, error)
- func ProcessGetById(id int) (*AiProcess, error)
- func ProcessGetByTplId(id int64, node int, parent_id int64) (*AiProcess, error)
- func ProcessGetGlobalNodeArr(id int64, node int) ([]*AiProcess, error)
- func ProcessGetList(page, pageSize int, tableName string, filters ...interface{}) ([]*AiProcess, int64)
- func ProcessGetNodeArr(id int64, node string) ([]*AiProcess, error)
- func ProcessNoIdGetByTplId(id int64, node int) (int64, *AiProcess, error)
- func ProcessToNodeForKeyword(node int, tpl_id int64) ([]*AiProcess, error)
- type AiProcessContent
- type AiProcessNode
- type AiProcessNodeAndTpl
- type AiRoute
- type AiRouteDetails
- type AiRouteList
- type AiSeat
- type AiSeatGroup
- type AiSeatGroupMap
- type AiSeatTask
- type AiServers
- type AiTask
- type AiTpl
- func GetAllTpl(id int, parent_id int64) ([]*AiTpl, error)
- func GetAllTpls(id int) ([]*AiTpl, error)
- func GetImTplList(tableName string, filters ...interface{}) ([]*AiTpl, error)
- func GetImTplList1(tableName string, id int, filters ...interface{}) ([]*AiTpl, error)
- func TplGetAllList(tableName string, filters ...interface{}) ([]*AiTpl, int64)
- func TplGetById(id int) (*AiTpl, error)
- func TplGetList(page, pageSize int, tableName string, filters ...interface{}) ([]*AiTpl, int64)
- type Api
- type ApiDetail
- type ApiDetails
- type ApiParam
- type Auth
- type CallGateWay
- type CallGateway
- type CallRings
- type Call_extension
- type Call_ring
- type CcNumber
- type CcNumberGroup
- type CcNumberGroups
- type Code
- type DurationModel
- type Env
- type GateWay
- type GateWayidAndName
- type GatewayGroup
- func GatewayGroupGetById(id int) (*GatewayGroup, error)
- func GatewayGroupGetByName(gateway_groupName string) (*GatewayGroup, error)
- func GatewayGroupGetList(page, pageSize int, filters ...interface{}) ([]*GatewayGroup, int64)
- func GatewayGroupIdName() ([]*GatewayGroup, error)
- func GatewayGroupIdName1(id int) ([]*GatewayGroup, error)
- type Group
- type GroupMap
- type GroupMap2
- type NumberGroup
- func NumberGroupGetById(id int) (*NumberGroup, error)
- func NumberGroupGetByName(group_name string, own_id int) (*NumberGroup, error)
- func NumberGroupGetList(page, pageSize int, filters ...interface{}) ([]*NumberGroup, int64)
- func NumberGroupIdName() ([]*NumberGroup, error)
- func NumberGroupIdName1(id int) ([]*NumberGroup, error)
- type NumberGroupMap
- type NumberThread
- type Role
- type RoleAuth
- type RunTimeModel
- type SeatCdrModel
- type TplGlobal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AiNumbersAdd ¶
func AiSeatTaskAdd ¶
func AiSeatTaskAdd(a *AiSeatTask) (int64, error)
func AiTaskAutoReset ¶
func AiTaskAutoReset()
func AiTaskReset ¶
func AiTaskStop ¶
func ApiDetailAdd ¶
func ApiParamAdd ¶
func CallDelete ¶
func CallGateWayAdd ¶
func CallGateWayAdd(a CallGateWay) (int64, error)
func CallGateWayEdit ¶
func CallGateWayEdit(a CallGateWay) error
func CheckNumberMap ¶
func ChengeAddressBookById ¶
func ChengeAddressBookById(phone, name, alias, extension, spell, alias_str, bumeng, id string) error
修改addressBook
func DatchDelete ¶
func DelectRoute ¶
func DeleteAgentGroup ¶
func DeleteAgentGroupNumber ¶
func DeleteNotMatchAllByTpl ¶
func ExtansionAdd ¶
func ExtansionAdd(p *AiExtansion) (int64, error)
func GateWayAdd ¶
func GatewayGroupAdd ¶
func GatewayGroupAdd(a *GatewayGroup) (int64, error)
func GetCdrCondition ¶
func GetCdrCondition2 ¶
func GetCdrCondition3 ¶
func GetFSExternalPath ¶
func GetGateWayNameByUserId ¶
func GetNodeName ¶
func GroupAddByFunction ¶
func GroupAddByFunction(thread *NumberThread, a *GroupMap2) (int, error)
func GroupMapAdd ¶
func InsertRoute ¶
func InsertRouteDetail ¶
func InsertRouteDetail(p *AiRouteDetails) (int64, error)
func InsertSeatCdr ¶
func InsertSeatNumber ¶
添加座席号码
func InsertaddressBook ¶
func InsertaddressBook(a *AiAddressBook) (int64, error)
func NumberGropAdd ¶
func NumberGropAdd(p *CcNumberGroup) (int64, error)
func NumberGroupAdd ¶
func NumberGroupAdd(a *NumberGroup) (int64, error)
func NwayAutoResetTask ¶
func NwayAutoResetTask()
func ProcessAdd ¶
func ProcessContentAdd ¶
func ProcessContentAdd(p *AiProcessContent) (int64, error)
func QueryProcessStartNode ¶
func RoleAuthAdd ¶
func RoleAuthDelete ¶
func RoleAuthMultiAdd ¶
func RunTimeAdd ¶
func RunTimeAdd(p *RunTimeModel) (int64, error)
func SearchCdrInfos ¶
func SearchCdrInfos(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, intention int, userId int) (int, int, int, error)
获取cdr 相关内容
func SearchSeatCdrInfo ¶
获取cdr 相关内容
func SearchSeatCdrInfo1 ¶
func SearchSeatCdrInfo1(start, end, phone, timemax, timemin, userId string, id int) (int, int, error)
获取cdr 相关内容
func SelectExtension ¶
func ServersAdd ¶
func SetCumbersUuid ¶
func SetExtensionMemo ¶
func SetExtensionYx ¶
func SetextensionGateway ¶
func TeamGroupAdd ¶
func TeamGroupAdd(p *AiSeatGroup) (int64, error)
func UpdateExtensionById ¶
func UpdateNodeContentFromId ¶
根据processid 修改node_content
func UpdateRoute ¶
func UpdateUser ¶
func UptateResetNumberMap ¶
如果有新值添加成功,就修改task的状态,变为进行中
func VoiceLibraryAdd ¶
func VoiceLibraryAdd(p *AIVoiceLibrary) (int64, error)
Types ¶
type AIVoiceLibrary ¶
type AIVoiceLibrary struct {
Id int64
Process_id int64
Topic string
Voice_path string
Voice_type string
}
func (*AIVoiceLibrary) TableName ¶
func (a *AIVoiceLibrary) TableName() string
type Admin ¶
type Admin struct {
Id int
LoginName string
RealName string
Password string
RoleIds string
Phone string
Email string
Salt string
LastLogin int64
LastIp string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
Exp_time int64
Is_org bool
Org_name string
Org_fee_rate float64
Org_balance float64
User_count int
}
func AdminGetById ¶
func AdminGetByName ¶
func AdminGetList ¶
func UserGroupBySelfId ¶
func UserGroupIdName ¶
type AiAddressBook ¶
type AiAddressBook struct {
Id int64
Phone string
Extension string
Name string
Spell string
Department string
State string
Alias string
Alias_spell string
}
func AiAddressBookGetList ¶
func AiAddressBookGetList(arr []string) ([]AiAddressBook, error)
func SelectAddressBookItem ¶
func SelectAddressBookItem(id int64) (AiAddressBook, error)
func (*AiAddressBook) TableName ¶
func (a *AiAddressBook) TableName() string
type AiCdr ¶
type AiCdr struct {
Id int64
Account_id int
Callee string
Caller string
Start_time string
End_time string
Route_id int64
Fee_rate float32
Duration int
Bill_balance float32
Record_base string
Record_path string
Task_id int64
Call_id string
Intention int
Hangup_dispostion string
Term_cause string
Term_status string
Talk_crycle string
}
func AiCdrGetList ¶
func SearchCdr ¶
func SearchCdr(taskId int64, start, end, caller, timemax, timemin, classify, uuid string, intention, page, pageSize int, userId int) ([]AiCdr, int64, error)
获取列表
func SearchCdr1 ¶
获取子列表
type AiExtansion ¶
type AiExtansion struct {
Id int64
Extension_name string //分机号码
Extension_number string //分机号码
Extension_pswd string //分机密码
Reg_state string //REGED ,UNREG ,分机发register的状态记录
Seat_state string //up,down,座席上下线
Seat_status string //idle,busy,座席忙闲
Locked bool //idle,busy,座席忙闲
Callout_gateway int64 //出局网关
Login_password string
}
func ExtansionGetList ¶
func ExtansionGetList(page, pageSize int, filters ...interface{}) ([]*AiExtansion, int64)
获取列表
func SelectExtensionById ¶
func SelectExtensionById(id int64) (AiExtansion, error)
func TeamGroupSetList ¶
func TeamGroupSetList(page, pageSize int, gId int64) ([]AiExtansion, int64)
获取指派的分机列表
func (*AiExtansion) TableName ¶
func (a *AiExtansion) TableName() string
type AiFlowContent ¶
type AiFlowContent struct {
Id int64
Ai_speak string
People_speak string
Call_id string
Voice_path string
Flow_time string
Node_name string
Description string
Match_key string
Process_id int64
}
func AiFlowContentGetList ¶
func AiFlowContentGetList(page, pageSize int, filters ...interface{}) ([]*AiFlowContent, int64)
func AiFlowContentGetListAll ¶
func AiFlowContentGetListAll(filters ...interface{}) ([]*AiFlowContent, int64)
func (*AiFlowContent) Delete ¶
func (a *AiFlowContent) Delete() error
func (*AiFlowContent) TableName ¶
func (a *AiFlowContent) TableName() string
type AiNotMatch ¶
type AiNotMatch struct {
Id int
Tpl_id int64
Node_id int64
Words string
Create_time string
Counts int
Uuid string
Record_file string
}
func GatNotMatchById ¶
func GatNotMatchById(id int) (*AiNotMatch, error)
func GetAiNotMatchList ¶
func GetAiNotMatchList(page, pageSize int, filters ...interface{}) ([]*AiNotMatch, int64)
func (*AiNotMatch) Delete ¶
func (a *AiNotMatch) Delete() error
func (*AiNotMatch) TableName ¶
func (a *AiNotMatch) TableName() string
type AiNumTaskMap ¶
type AiProcess ¶
type AiProcess struct {
Id int64
Name string //流程名称
Node int //任务节点
Node_name string //节点名称
Node_type int //节点类型,0为语音文件,1为TTS文字
Node_content string //节点内容,根据类型,文字或者录音文件绝对地址
Keyword string //关键字,以 “|”分隔
Owner_tpl_id int64 //归属模板id
Scene int //场景;语境;情景;0为肯定,1为否定,2为强烈拒绝,4为关键节点,5未知,6短信,7挽留,8判断
Ai_order int //节点优先关系处理
Mode int //打断。0支持打断,1支持不打断,2支持按需求打断
Target int64 //该节点的下一节点id
Node_desc string //描述该节点最终叙述的详细内容
Action int64 //动作 0:下一级,1:跳转,2:再说一遍,3:挂断,4,转人工
Min_speak_ms int `orm:"default(100)"` //最小通话时间
Min_pause_ms int `orm:"default(500)"` //最小间隔时间
Max_waiting_ms int `orm:"default(5000)"` //最大等待时间
Max_recording_ms int `orm:"default(10000)"` //最大录音时间
Gain int //增益
Retry int //重置
Parent_id int64 //父级节点
B_interrupt bool //父级节点
Tpl_target int64 //目标模板
Adjust_keyword string //校正词
Last_action int
Last_target int64
}
func GetNodeProcessMessage ¶
获取内容
func GetProcessMessage ¶
获取节点内容列表
func ProcessGetByTplId ¶
根据tplID查询 获取process
func ProcessGetGlobalNodeArr ¶
根据节点ID查询 所有全局数组
func ProcessGetList ¶
func ProcessGetList(page, pageSize int, tableName string, filters ...interface{}) ([]*AiProcess, int64)
获取列表
func ProcessGetNodeArr ¶
根据节点ID查询 所有数组
func ProcessNoIdGetByTplId ¶
根据tplID查询 获取process
func ProcessToNodeForKeyword ¶
* 根据节点获取当前节点的关键字 node: 当前节点 tpl_id: 模板id return :process对象
type AiProcessContent ¶
type AiProcessContent struct {
Id int64
Process_id int64 //process 的内容
Type int //节点类型,0为语音文件,1为TTS文字
Content string //节点内容,根据类型,文字或者录音文件绝对地址
Ai_order int //序列
Audio_path string //文件路径
}
func ProcessContentByProcess ¶
func ProcessContentByProcess(id int64) (*AiProcessContent, error)
根据tplID查询 获取process
func ProcessContentGetById ¶
func ProcessContentGetById(id int) (*AiProcessContent, error)
根据ID查询 获取process
func ProcessContentGetList ¶
func ProcessContentGetList(page, pageSize int, tableName string, filters ...interface{}) ([]*AiProcessContent, int64)
获取节点内容列表
func (*AiProcessContent) ProcessContentByProcessId ¶
func (a *AiProcessContent) ProcessContentByProcessId() error
func (*AiProcessContent) TableName ¶
func (a *AiProcessContent) TableName() string
type AiProcessNode ¶
func ProcessGetChildArr ¶
func ProcessGetChildArr(tpl int, node int, parent int64) ([]AiProcessNode, error)
type AiProcessNodeAndTpl ¶
type AiRoute ¶
type AiRouteDetails ¶
type AiRouteDetails struct {
Id int64
Dialplan_id int64
Dialplan_detail_tag string
Dialplan_detail_data string
Dialplan_detail_type_id int
}
func (*AiRouteDetails) TableName ¶
func (a *AiRouteDetails) TableName() string
type AiRouteList ¶
type AiRouteList struct {
Id int64
Dialplan_name string
Dialplan_context string
Dialplan_detail_tag string
Dialplan_number string
Dialplan_detail_data string
}
func GetRoute ¶
func GetRoute(id int64) (AiRouteList, error)
func GetRouteList ¶
func GetRouteList(page, pageSize int) (int64, []AiRouteList, error)
type AiSeat ¶
type AiSeatGroup ¶
func SeatGroupGetList ¶
func SeatGroupGetList(page, pageSize int, filters ...interface{}) ([]*AiSeatGroup, int64)
func (*AiSeatGroup) TableName ¶
func (a *AiSeatGroup) TableName() string
type AiSeatGroupMap ¶
func (*AiSeatGroupMap) TableName ¶
func (a *AiSeatGroupMap) TableName() string
type AiSeatTask ¶
type AiSeatTask struct {
Id int64
Tk_name string
Tk_start_time string
Tk_end_time string
Tk_type int
Tk_state int
Tk_owner int
Tk_gateway_group int64
Tk_num_group int64
}
func AiSeatTaskGetById ¶
func AiSeatTaskGetById(id int) (*AiSeatTask, error)
func AiSeatTaskGetList ¶
func AiSeatTaskGetList(page, pageSize int, filters ...interface{}) ([]*AiSeatTask, int64)
座席
func AiTaskGetByName1 ¶
func AiTaskGetByName1(taskName string) (*AiSeatTask, error)
func (*AiSeatTask) Delete ¶
func (a *AiSeatTask) Delete() error
func (*AiSeatTask) TableName ¶
func (a *AiSeatTask) TableName() string
func (*AiSeatTask) Update ¶
func (a *AiSeatTask) Update(fields ...string) error
type AiServers ¶
func GetImServersList ¶
获取即时通讯 模板列表
type AiTask ¶
type AiTask struct {
Id int64
Tk_name string
Tk_level int
Tk_start_time string
Tk_end_time string
Tk_type int
Tk_state int
Tk_param1 int
Tk_owner int
Tk_desc string
Tk_out_number string
Tk_tpl_id int64
Tk_max_call_time int
Tk_gateway_group int64
Tk_num_group int64
Tk_work_start_time string
Tk_work_end_time string
Serverip string
Tk_call_interval int
Tk_last_finish_time string
Tk_is_auto_reset int
Tk_auto_reset_inteval int
}
func AiTaskGetById ¶
func AiTaskGetList ¶
func TaskIdName ¶
type AiTpl ¶
type AiTpl struct {
Id int64
Tpl_name string
Owner_id int
Tpl_desc string
Parent_id int64
Root_id int64
}
func GetImTplList ¶
获取即时通讯 模板列表
func GetImTplList1 ¶
获取即时通讯 模板列表
func TplGetAllList ¶
获取列表
func TplGetList ¶
获取列表
type Api ¶
type Api struct {
Id int
GroupId int
SourceName string
Status int
CreateId int
AuditId int
UpdateId int
CreateTime int64
UpdateTime int64
AuditTime int64
}
func ApiGetById ¶
func ApiGetByName ¶
func ApiGetList ¶
type ApiDetail ¶
type ApiDetail struct {
Id int
SourceId int
Method int
ApiName string
ApiUrl string
ProtocolType int
Result string
Example string
Detail string
Status int
CreateId int
AuditId int
UpdateId int
CreateTime int64
UpdateTime int64
AuditTime int64
}
func ApiDetailGetById ¶
type ApiDetails ¶
type ApiDetails struct {
Id int
SourceId int
Method int
ApiName string
ApiUrl string
ProtocolType int
Result string
Example string
Detail string
Status int
CreateId int
AuditId int
UpdateId int
CreateTime int64
UpdateTime int64
AuditTime int64
CreateName string
UpdateName string
AuditName string
}
func ApiDetailsGetById ¶
func ApiDetailsGetById(id int) ([]*ApiDetails, error)
type ApiParam ¶
type ApiParam struct {
Id int
DetailId int64
ApiKey string
ApiType string
ApiValue string
ApiDetail string
IsNull string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func ApiParamGetById ¶
type Auth ¶
type Auth struct {
Id int
AuthName string
AuthUrl string
UserId int
Pid int
Sort int
Icon string
Is_show int
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func AuthGetById ¶
func AuthGetList ¶
type CallGateWay ¶
type CallGateWay struct {
Id int64
Gateway_name string
Gateway_url string
Call_prefix string
Max_call int
Added_autodial bool
Effective_caller_id_number string
Gateway_type int
Register_number string
Fromuser string
}
func CheckCallGateway ¶
func CheckCallGateway(callGatewayId int64) (CallGateWay, error)
type CallGateway ¶
type CallRings ¶
func RingGetList ¶
查 找 彩铃列表
type Call_extension ¶
func SeatIsUser ¶
func SeatIsUser(loginName, password string) ([]Call_extension, bool)
type Call_ring ¶
func GetCallRingList ¶
type CcNumber ¶
type CcNumber struct {
Id int64
Group_id int64
Phone_number string
Called string //是否呼叫
Memo string //标注
Intentionality int //意向
Passed bool //是否跳过
Uuid string
Extension string
Phone_own string
Called_time string
}
func SeatNumberGetList ¶
获取号码列表
func SelectExtensionList ¶
type CcNumberGroup ¶
func (*CcNumberGroup) TableName ¶
func (a *CcNumberGroup) TableName() string
type CcNumberGroups ¶
type CcNumberGroups struct {
Id int64
Group_name string
Own_agent_group_id int64 //直属哪个座席组
Import_time string //导入时间
}
func SeatNumberGroupGetList ¶
func SeatNumberGroupGetList(page, pageSize int) ([]CcNumberGroups, int64)
获取号码组列表
type Code ¶
type Code struct {
Id int
Code string
Desc string
Detail string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func CodeGetById ¶
func CodeGetByName ¶
func CodeGetList ¶
type DurationModel ¶
func GetDoneNumberCounts ¶
func GetDoneNumberCounts(userId int) (int, DurationModel, error)
获取今日完成任务数量
type Env ¶
type Env struct {
Id int
EnvName string
EnvHost string
Detail string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func EnvGetById ¶
func EnvGetByName ¶
func EnvGetList ¶
type GateWay ¶
type GateWay struct {
Id int64
Gateway_name string
Gateway_group_id int64
Max_concurrent int
Gateway_url string
Gateway_state int
Gateway_auth string
Call_gateway_id int64
Prefix string
}
func GateWayGetById ¶
func GateWayGetByName ¶
func GateWayGetList ¶
func GatewayIdName ¶
type GateWayidAndName ¶
func GetCallGateway ¶
func GetCallGateway() ([]GateWayidAndName, error)
type GatewayGroup ¶
type GatewayGroup struct {
Id int64
Group_name string
Group_desc string
Group_user_id int
Group_type int
}
func GatewayGroupGetById ¶
func GatewayGroupGetById(id int) (*GatewayGroup, error)
func GatewayGroupGetByName ¶
func GatewayGroupGetByName(gateway_groupName string) (*GatewayGroup, error)
func GatewayGroupGetList ¶
func GatewayGroupGetList(page, pageSize int, filters ...interface{}) ([]*GatewayGroup, int64)
func GatewayGroupIdName ¶
func GatewayGroupIdName() ([]*GatewayGroup, error)
func GatewayGroupIdName1 ¶
func GatewayGroupIdName1(id int) ([]*GatewayGroup, error)
func (*GatewayGroup) Delete ¶
func (a *GatewayGroup) Delete() error
func (*GatewayGroup) TableName ¶
func (a *GatewayGroup) TableName() string
func (*GatewayGroup) Update ¶
func (a *GatewayGroup) Update(fields ...string) error
type Group ¶
type Group struct {
Id int
GroupName string
Detail string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func GroupGetById ¶
func GroupGetByName ¶
func GroupGetList ¶
type GroupMap ¶
type GroupMap struct {
Id int64
Group_id int64
Number_id int64
Has_called int
Param1 string
Param2 string
Param3 string
Param4 string
Param5 string
Param6 string
Param7 string
Param8 string
Param9 string
Param10 string
Param1_type string
Param2_type string
Param3_type string
Param4_type string
Param5_type string
Param6_type string
Param7_type string
Param8_type string
Param9_type string
Param10_type string
}
func AiNumbersMapGetById ¶
type GroupMap2 ¶
type GroupMap2 struct {
Group_id int64
Number string
Param1 string
Param2 string
Param3 string
Param4 string
Param5 string
Param6 string
Param7 string
Param8 string
Param9 string
Param10 string
Param1_type string
Param2_type string
Param3_type string
Param4_type string
Param5_type string
Param6_type string
Param7_type string
Param8_type string
Param9_type string
Param10_type string
}
type NumberGroup ¶
func NumberGroupGetById ¶
func NumberGroupGetById(id int) (*NumberGroup, error)
func NumberGroupGetByName ¶
func NumberGroupGetByName(group_name string, own_id int) (*NumberGroup, error)
func NumberGroupGetList ¶
func NumberGroupGetList(page, pageSize int, filters ...interface{}) ([]*NumberGroup, int64)
func NumberGroupIdName ¶
func NumberGroupIdName() ([]*NumberGroup, error)
func NumberGroupIdName1 ¶
func NumberGroupIdName1(id int) ([]*NumberGroup, error)
func (*NumberGroup) Delete ¶
func (a *NumberGroup) Delete() error
func (*NumberGroup) TableName ¶
func (a *NumberGroup) TableName() string
func (*NumberGroup) Update ¶
func (a *NumberGroup) Update(fields ...string) error
type NumberGroupMap ¶
type NumberGroupMap struct {
Id int64
Group_id int64
Number_id int64
Map_id int64
Has_called int
//NumberGroup *NumberGroup
//Numbers *AiNumbers
Group_name string
Dst_number string
Num_state int
Last_call_time string
Num_own string
Param1 string
Param2 string
Param3 string
Param4 string
Param5 string
Param6 string
Param7 string
Param8 string
Param9 string
Param10 string
}
func NumberGroupMapGetById ¶
func NumberGroupMapGetById(id int) (*NumberGroupMap, error)
func NumberGroupMapGetByName ¶
func NumberGroupMapGetByName(groupId string) (*NumberGroupMap, error)
func NumberGroupMapGetList ¶
func NumberGroupMapGetList(page, pageSize, gid int) ([]NumberGroupMap, int64)
type NumberThread ¶
func (*NumberThread) Decr ¶
func (n *NumberThread) Decr()
func (*NumberThread) WhenCanUse ¶
func (n *NumberThread) WhenCanUse() bool
一定要等着有可用的程协数量,防止数据库连接数过多,搞死系统
type Role ¶
type Role struct {
Id int
RoleName string
Detail string
Status int
CreateId int
UpdateId int
CreateTime int64
UpdateTime int64
}
func RoleGetById ¶
func RoleGetList ¶
type RoleAuth ¶
func RoleAuthGetById ¶
type RunTimeModel ¶
type RunTimeModel struct {
Id int64
Taskid int64
Call_phone string
Call_state int
Gateway_id int64
Call_time string
Answer_time string
Talk_crycle int
Call_id string
Tpl_id int64
Display_number string
Number_map_id int64
Mute string
Mismatching string
Mismatch_times int
Mute_times int
}
func (*RunTimeModel) TableName ¶
func (a *RunTimeModel) TableName() string
type SeatCdrModel ¶
type SeatCdrModel struct {
Id int64
A_uuid string
A_answertime string
A_calldate string
A_endtime string
A_duration int
A_billsec int
A_dispostion string
A_calleridnum string
A_dst string
A_calltype string
A_hangup_dispostion string
Record_file string
Memo string
Phone_own string
Intentionality int
}
func SearchSeatCdr ¶
func SearchSeatCdr(start, end, caller, timemax, timemin, userId string, page, pageSize, id int) ([]SeatCdrModel, int64, error)
获取子列表 获取列表
Source Files
¶
- admin.go
- ai_address_book.go
- ai_cdr.go
- ai_extension.go
- ai_flow_content.go
- ai_gateway.go
- ai_gateway_group.go
- ai_not_match.go
- ai_num_group_map.go
- ai_num_task_map.go
- ai_number_group.go
- ai_numbers.go
- ai_param.go
- ai_process.go
- ai_route.go
- ai_runtime.go
- ai_seat.go
- ai_servers.go
- ai_task.go
- ai_tpl.go
- api.go
- api_detail.go
- api_param.go
- auth.go
- auto_reset.go
- code.go
- env.go
- group.go
- init.go
- role.go
- role_auth.go
- seat_cdr.go