5 changed files with 60 additions and 59 deletions
-
13src/config/settings.go
-
2src/main.go
-
54src/structs/send_struct.go
-
48src/structs/user_struct.go
-
2src/utils/whatsapp.go
@ -1,5 +1,12 @@ |
|||
package config |
|||
|
|||
const PathQrCode = "statics/images/qrcode" |
|||
const PathSendItems = "statics/images/senditems" |
|||
const DBName = "hydrogenWaCli.db" |
|||
type Browser string |
|||
|
|||
const ( |
|||
AppPort string = "3000" |
|||
|
|||
PathQrCode string = "statics/images/qrcode" |
|||
PathSendItems string = "statics/images/senditems" |
|||
|
|||
DBName string = "hydrogenWaCli.db" |
|||
) |
|||
@ -0,0 +1,48 @@ |
|||
package structs |
|||
|
|||
import "go.mau.fi/whatsmeow/types" |
|||
|
|||
type UserInfoRequest struct { |
|||
Phone string `json:"phone" query:"phone"` |
|||
} |
|||
|
|||
type UserInfoResponseDataDevice struct { |
|||
User string |
|||
Agent uint8 |
|||
Device string |
|||
Server string |
|||
AD bool |
|||
} |
|||
|
|||
type UserInfoResponseData struct { |
|||
VerifiedName string `json:"verified_name"` |
|||
Status string `json:"status"` |
|||
PictureID string `json:"picture_id"` |
|||
Devices []UserInfoResponseDataDevice `json:"devices"` |
|||
} |
|||
|
|||
type UserInfoResponse struct { |
|||
Data []UserInfoResponseData `json:"data"` |
|||
} |
|||
|
|||
type UserAvatarRequest struct { |
|||
Phone string `json:"phone" query:"phone"` |
|||
} |
|||
|
|||
type UserAvatarResponse struct { |
|||
URL string `json:"url"` |
|||
ID string `json:"id"` |
|||
Type string `json:"type"` |
|||
} |
|||
|
|||
type UserMyPrivacySettingResponse struct { |
|||
GroupAdd string `json:"group_add"` |
|||
LastSeen string `json:"last_seen"` |
|||
Status string `json:"status"` |
|||
Profile string `json:"profile"` |
|||
ReadReceipts string `json:"read_receipts"` |
|||
} |
|||
|
|||
type UserMyListGroupsResponse struct { |
|||
Data []types.GroupInfo `json:"data"` |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue