|
@@ -23,6 +23,7 @@ type UserTrialApply struct {
|
|
OpUserName string `orm:"size(64)";description:"操作用户名称"`
|
|
OpUserName string `orm:"size(64)";description:"操作用户名称"`
|
|
CreateTime time.Time `description:"申请时间"`
|
|
CreateTime time.Time `description:"申请时间"`
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
|
|
+ MarkGroup string `description:"标记分组"`
|
|
}
|
|
}
|
|
|
|
|
|
type UserTrialApplyItem struct {
|
|
type UserTrialApplyItem struct {
|
|
@@ -43,20 +44,21 @@ type UserTrialApplyItem struct {
|
|
CreateTimeStr string `description:"申请时间字符串"`
|
|
CreateTimeStr string `description:"申请时间字符串"`
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
ModifyTimeStr string `description:"申请时间字符串"`
|
|
ModifyTimeStr string `description:"申请时间字符串"`
|
|
|
|
+ MarkGroup string `description:"标记分组"`
|
|
}
|
|
}
|
|
|
|
|
|
-//列表数据
|
|
|
|
|
|
+// 列表数据
|
|
type UserTrialApplyListResp struct {
|
|
type UserTrialApplyListResp struct {
|
|
List []*UserTrialApplyItem
|
|
List []*UserTrialApplyItem
|
|
Paging *paging.PagingItem `description:"分页数据"`
|
|
Paging *paging.PagingItem `description:"分页数据"`
|
|
}
|
|
}
|
|
|
|
|
|
-//确认申请
|
|
|
|
|
|
+// 确认申请
|
|
type UserTrialApplyConfirmReq struct {
|
|
type UserTrialApplyConfirmReq struct {
|
|
Id int `description:"Id"`
|
|
Id int `description:"Id"`
|
|
}
|
|
}
|
|
|
|
|
|
-//获取获取官网申请列表页数据的数据数
|
|
|
|
|
|
+// 获取获取官网申请列表页数据的数据数
|
|
func GetOfficialApplyUserListListCount(condition string, pars []interface{}) (count int, err error) {
|
|
func GetOfficialApplyUserListListCount(condition string, pars []interface{}) (count int, err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `SELECT
|
|
sql := `SELECT
|
|
@@ -70,7 +72,7 @@ func GetOfficialApplyUserListListCount(condition string, pars []interface{}) (co
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-//获取官网申请列表页数据
|
|
|
|
|
|
+// 获取官网申请列表页数据
|
|
func GetOfficialApplyUserListList(condition string, pars []interface{}, startSize, pageSize int) (items []*UserTrialApplyItem, err error) {
|
|
func GetOfficialApplyUserListList(condition string, pars []interface{}, startSize, pageSize int) (items []*UserTrialApplyItem, err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `SELECT * from user_trial_apply `
|
|
sql := `SELECT * from user_trial_apply `
|
|
@@ -94,14 +96,14 @@ func GetOfficialApplyUserListListExport(condition string, pars []interface{}) (i
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-//获取申请记录信息
|
|
|
|
|
|
+// 获取申请记录信息
|
|
func GetOfficialApplyUserById(id int) (item *UserTrialApply, err error) {
|
|
func GetOfficialApplyUserById(id int) (item *UserTrialApply, err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
err = o.Raw(`SELECT * from user_trial_apply where id = ?`, id).QueryRow(&item)
|
|
err = o.Raw(`SELECT * from user_trial_apply where id = ?`, id).QueryRow(&item)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-//确认申请记录
|
|
|
|
|
|
+// 确认申请记录
|
|
func ConfirmOfficialApplyUser(id int, opUserId int, opUserName string) (err error) {
|
|
func ConfirmOfficialApplyUser(id int, opUserId int, opUserName string) (err error) {
|
|
sql := ` UPDATE user_trial_apply
|
|
sql := ` UPDATE user_trial_apply
|
|
SET
|
|
SET
|