|
@@ -3,7 +3,6 @@ package wx_user
|
|
|
import (
|
|
|
"errors"
|
|
|
"hongze/hongze_yb/global"
|
|
|
- "hongze/hongze_yb/services/wechat"
|
|
|
"hongze/hongze_yb/utils"
|
|
|
)
|
|
|
|
|
@@ -42,8 +41,12 @@ func GetByUserIds(userIds []uint64) (list []*WxUser, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+type OpenIdList struct {
|
|
|
+ OpenID string
|
|
|
+ UserID int
|
|
|
+}
|
|
|
|
|
|
-func GetOpenIdList() (items []*wechat.OpenIdList, err error) {
|
|
|
+func GetOpenIdList() (items []*OpenIdList, err error) {
|
|
|
sql := `SELECT DISTINCT ur.open_id,wu.user_id FROM wx_user AS wu
|
|
|
INNER JOIN company AS c ON c.company_id = wu.company_id
|
|
|
INNER JOIN company_product AS d ON c.company_id=d.company_id
|