@@ -6,57 +6,55 @@ import (
66 "gin-vue-admin/model/request"
77)
88
9- // @title CreateExaCustomer
10- // @description create a customer, 创建用户
11- // @param e model.ExaCustomer
12- // @auth (2020/04/05 20:22)
13- // @return err error
9+ //@author: [piexlmax](https://github.com/piexlmax)
10+ //@function: CreateExaCustomer
11+ //@description: 创建客户
12+ //@param: e model.ExaCustomer
13+ //@return: err error
1414
1515func CreateExaCustomer (e model.ExaCustomer ) (err error ) {
1616 err = global .GVA_DB .Create (& e ).Error
1717 return err
1818}
1919
20- // @title DeleteFileChunk
21- // @description delete a customer, 删除用户
22- // @auth (2020/04/05 20:22)
23- // @param e model.ExaCustomer
24- // @return error
20+ //@author: [piexlmax](https://github.com/piexlmax)
21+ //@function: DeleteFileChunk
22+ //@description: 删除客户
23+ //@param: e model.ExaCustomer
24+ //@return: err error
2525
2626func DeleteExaCustomer (e model.ExaCustomer ) (err error ) {
2727 err = global .GVA_DB .Delete (e ).Error
2828 return err
2929}
3030
31- // @title UpdateExaCustomer
32- // @description update a customer, 更新用户
33- // @param e *model.ExaCustomer
34- // @auth (2020/04/05 20:22)
35- // @return error
31+ //@author: [piexlmax](https://github.com/piexlmax)
32+ //@function: UpdateExaCustomer
33+ //@description: 更新客户
34+ //@param: e *model.ExaCustomer
35+ //@return: err error
3636
3737func UpdateExaCustomer (e * model.ExaCustomer ) (err error ) {
3838 err = global .GVA_DB .Save (e ).Error
3939 return err
4040}
4141
42- // @title GetExaCustomer
43- // @description get the info of a costumer , 获取用户信息
44- // @auth (2020/04/05 20:22)
45- // @param id uint
46- // @return error
47- // @return customer ExaCustomer
42+ //@author: [piexlmax](https://github.com/piexlmax)
43+ //@function: GetExaCustomer
44+ //@description: 获取客户信息
45+ //@param: id uint
46+ //@return: err error, customer model.ExaCustomer
4847
4948func GetExaCustomer (id uint ) (err error , customer model.ExaCustomer ) {
5049 err = global .GVA_DB .Where ("id = ?" , id ).First (& customer ).Error
5150 return
5251}
5352
54- // @title GetCustomerInfoList
55- // @description get customer list by pagination, 分页获取用户列表
56- // @auth (2020/04/05 20:22)
57- // @param sysUserAuthorityID string
58- // @param info PageInfo
59- // @return error
53+ //@author: [piexlmax](https://github.com/piexlmax)
54+ //@function: GetCustomerInfoList
55+ //@description: 分页获取客户列表
56+ //@param: sysUserAuthorityID string, info request.PageInfo
57+ //@return: err error, list interface{}, total int64
6058
6159func GetCustomerInfoList (sysUserAuthorityID string , info request.PageInfo ) (err error , list interface {}, total int64 ) {
6260 limit := info .PageSize
0 commit comments