-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.go
136 lines (118 loc) · 4.33 KB
/
signup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package http
import (
"context"
"go-common/app/admin/main/up/model/signmodel"
"go-common/library/net/http/blademaster"
)
func signUpAuditLogs(c *blademaster.Context) {
httpQueryFunc(new(signmodel.SignOpSearchArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignUpAuditLogs(context, arg.(*signmodel.SignOpSearchArg))
},
"SignUpAuditLogs")(c)
}
func signAdd(c *blademaster.Context) {
httpPostFunc(new(signmodel.SignUpArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignAdd(context, arg.(*signmodel.SignUpArg))
},
"SignAdd")(c)
}
func signUpdate(c *blademaster.Context) {
httpPostFunc(new(signmodel.SignUpArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignUpdate(context, arg.(*signmodel.SignUpArg))
},
"SignUp")(c)
}
func violationAdd(c *blademaster.Context) {
httpPostFunc(new(signmodel.ViolationArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.ViolationAdd(context, arg.(*signmodel.ViolationArg))
},
"ViolationAdd")(c)
}
func violationRetract(c *blademaster.Context) {
httpPostFunc(new(signmodel.IDArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.ViolationRetract(context, arg.(*signmodel.IDArg))
},
"ViolationRetract")(c)
}
func violationList(c *blademaster.Context) {
httpQueryFunc(new(signmodel.PageArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.ViolationList(context, arg.(*signmodel.PageArg))
},
"ViolationList")(c)
}
func absenceAdd(c *blademaster.Context) {
httpPostFunc(new(signmodel.AbsenceArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.AbsenceAdd(context, arg.(*signmodel.AbsenceArg))
},
"AbsenceAdd")(c)
}
func absenceRetract(c *blademaster.Context) {
httpPostFunc(new(signmodel.IDArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.AbsenceRetract(context, arg.(*signmodel.IDArg))
},
"AbsenceRetract")(c)
}
func absenceList(c *blademaster.Context) {
httpQueryFunc(new(signmodel.PageArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.AbsenceList(context, arg.(*signmodel.PageArg))
},
"AbsenceList")(c)
}
func viewCheck(c *blademaster.Context) {
httpQueryFunc(new(signmodel.PowerCheckArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.ViewCheck(context, arg.(*signmodel.PowerCheckArg))
},
"ViewCheck")(c)
}
func signQuery(c *blademaster.Context) {
httpQueryFunc(new(signmodel.SignQueryArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignQuery(context, arg.(*signmodel.SignQueryArg))
},
"SignQuery")(c)
}
func signQueryID(c *blademaster.Context) {
httpQueryFunc(new(signmodel.SignIDArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignQueryID(context, arg.(*signmodel.SignIDArg))
},
"SignQueryID")(c)
}
func signPayComplete(c *blademaster.Context) {
httpPostFunc(new(signmodel.SignPayCompleteArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignPayComplete(context, arg.(*signmodel.SignPayCompleteArg))
},
"SignPayComplete")(c)
}
func signCheckExist(c *blademaster.Context) {
httpQueryFunc(new(signmodel.SignCheckExsitArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.SignCheckExist(context, arg.(*signmodel.SignCheckExsitArg))
},
"SignCheckExist")(c)
}
func countrys(c *blademaster.Context) {
httpQueryFunc(new(signmodel.CommonArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.Countrys(context, arg.(*signmodel.CommonArg))
},
"SignCheckExist")(c)
}
func tids(c *blademaster.Context) {
httpQueryFunc(new(signmodel.CommonArg),
func(context context.Context, arg interface{}) (res interface{}, err error) {
return Svc.Crmservice.Tids(context, arg.(*signmodel.CommonArg))
},
"SignCheckExist")(c)
}