mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
503 B
13 lines
503 B
1 year ago
|
--------------------------------------------------------------------------------
|
||
|
-- authorization_manage sql dml
|
||
|
--------------------------------------------------------------------------------
|
||
|
|
||
|
-- name: BeFriendIds :many
|
||
|
SELECT user_id FROM p_contact WHERE friend_id=$1 AND status=2 AND is_del=0;
|
||
|
|
||
|
-- name: MyFriendSet :many
|
||
|
SELECT friend_id FROM p_contact WHERE user_id=$1 AND status=2 AND is_del=0;
|
||
|
|
||
|
-- name: IsFriend :one
|
||
|
SELECT status FROM p_contact WHERE user_id=$1 AND friend_id=$2 AND is_del=0;
|